We should employ pattern matching here, instead of conditional statements.
for e.g variable_patterns = {"repeatability":"mf_repeatability", "variability":"mf_variability", ...} and loop and break for match. This will ensure we are increasing readability and scalability in future if required, whilst not repeating.
We should employ pattern matching here, instead of conditional statements. for e.g variable_patterns = {"repeatability":"mf_repeatability", "variability":"mf_variability", ...} and loop and break for match. This will ensure we are increasing readability and scalability in future if required, whilst not repeating.
_Originally posted by @SutarPrasad in https://github.com/openghg/openghg/pull/1130#discussion_r1778363830_