Source code for pyleecan.Methods.GUI_Option.Unit.get_m_name
# -*- coding: utf-8 -*-
[docs]def get_m_name(self):
"""Return the name of the length unit ([m] by default)
Parameters
----------
self : Unit
A Unit object
Returns
-------
unit_name: str
Name of the current unit
"""
if self.unit_m == 1:
return "mm"
else:
return "m"