in robogym/robot/utils/measurement_units.py [0:0]
def shortname(self):
if self == MeasurementUnit.RADIANS:
return "rad"
elif self == MeasurementUnit.DEGREES:
return "deg"
elif self == MeasurementUnit.METERS:
return "m"
elif self == MeasurementUnit.MILLIMETERS:
return "mm"
elif self == MeasurementUnit.SECONDS:
return "s"
elif self == MeasurementUnit.MILLISECONDS:
return "ms"
raise RuntimeError(f"Shortname for '{self}' is not specified")