nuctransportdb.generate_id
Attributes
Functions
Generate the NTD 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 property directory. |
Module Contents
- nuctransportdb.generate_id.ntd_namespace()[source]
Generate the NTD namespace UUID.
- Returns:
The NTD namespace UUID.
- Return type:
- nuctransportdb.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:
- nuctransportdb.generate_id.normalize_str(val)[source]
Normalize function for splitting and sorting strings.
- nuctransportdb.generate_id.flatten_entry_dict(property_entry, nuclide_name)[source]
Flatten the entry dictionary.
- nuctransportdb.generate_id.get_entry_str(property_entry, nuclide_name)[source]
Function for combining all entry fields into a single string.