Method summary
- __init__(self)
- get_family_format_from_file(self, filename = None)
- get_family_members_from_file(self, filename = None)
- get_family_name(self, name)
- get_family_ranges_from_file(self, filename = None)
- get_inverse_family_name(self, unit_name)
- get_inverse_unit_name(self, unit_name)
- get_unit_families_from_file(self, filename = None)
- get_unit_systems(self)
Methods
- __init__(self)
Initialize UnitDB object
- get_family_format_from_file(self, filename = None)
Retrieves a list of formatting parameters from a file.
Parameters
- filename:
- full path and name of spec file for formats
- get_family_members_from_file(self, filename = None)
Retrieves a list of family names and member lists from a file.
Parameters
- filename:
- full path and name of spec file for member names
- get_family_name(self, name)
- get_family_ranges_from_file(self, filename = None)
Retrieves a list of left/right range parameters from a file.
Parameters
- filename:
- full path and name of spec file for ranges
- get_inverse_family_name(self, unit_name)
- get_inverse_unit_name(self, unit_name)
Returns the "default" name to use for inverted logs.
This assumes that the first name in the alias list is the "primary" family name, i.e., the one to use at the app level.
- get_unit_families_from_file(self, filename = None)
Retrieves a list of family names and member lists from a file.
Parameters
- filepath:
- full path and name of spec file for member names
- get_unit_systems(self)