bw_processing.utils

Functions

as_uncertainty_type(→ int)

check_name(→ None)

check_suffix(→ str)

Add suffix, if not already in path.

dictionary_formatter(→ tuple)

Format processed array row from dictionary input

load_bytes(→ Any)

resolve_dict_iterator(→ tuple)

Note that this function produces sorted arrays.

utc_now(→ datetime.datetime)

Get current datetime compatible with Py 3.8 to 3.12

Module Contents

bw_processing.utils.as_uncertainty_type(row: dict) int[source]
bw_processing.utils.check_name(name: str) None[source]
bw_processing.utils.check_suffix(path: str | pathlib.Path, suffix=str) str[source]

Add suffix, if not already in path.

bw_processing.utils.dictionary_formatter(row: dict) tuple[source]

Format processed array row from dictionary input

bw_processing.utils.load_bytes(obj: Any) Any[source]
bw_processing.utils.resolve_dict_iterator(iterator: Any, nrows: int = None) tuple[source]

Note that this function produces sorted arrays.

bw_processing.utils.utc_now() datetime.datetime[source]

Get current datetime compatible with Py 3.8 to 3.12