locan.locan_io.locdata.utilities.convert_property_names#
- locan.locan_io.locdata.utilities.convert_property_names(properties, property_mapping=None)[source]#
Convert property names to standard locan property names if a mapping is provided. Otherwise, leave the property name as is and throw a warning.
- Parameters:
properties (
Iterable
[str
]) – Properties to be convertedproperty_mapping (
UnionType
[dict
[str
,str
],Iterable
[dict
[str
,str
]],None
]) – Mappings between other property names and locan property names
- Returns:
Converted property names
- Return type:
list[str]