smart_data_hub.generate_id
Attributes
Functions
Generate the SDH namespace UUID. |
|
|
helper function to convert a string or None to a list. |
|
Normalize function for splitting and sorting strings. |
|
Flatten the entry dictionary. |
|
Function for combining all entry fields into a single string. |
|
Check for missing ID and generate a unique ID for each data in the YAML file. |
Generate IDs for all YAML files in the rock_property directory |
Module Contents
- smart_data_hub.generate_id.sdh_namespace()[source]
Generate the SDH namespace UUID.
- Returns:
The SDH namespace UUID.
- Return type:
- smart_data_hub.generate_id.get_list_from_sequence(value)[source]
helper function to convert a string or None to a list.
- Parameters:
- Raises:
ValueError – if the input value is not a string, None, or a list.
- Returns:
the converted list.
- Return type:
- smart_data_hub.generate_id.normalize_str(val)[source]
Normalize function for splitting and sorting strings.
- smart_data_hub.generate_id.flatten_entry_dict(property_entry, property_name)[source]
Flatten the entry dictionary.
- smart_data_hub.generate_id.get_entry_str(property_entry, property_name)[source]
Function for combining all entry fields into a single string.