obspy.core.event.magnitude.Magnitude.__str__

Magnitude.__str__(force_one_line=False)

Fairly extensive in an attempt to cover several use cases. It is always possible to change it in the child class.