From 931f6388a56242cfc82a967276c4846fb01e21bb Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Tue, 16 Feb 2021 15:21:09 +0100 Subject: [PATCH] made get_measurement_parameters() an api function --- sensospot_data/parameters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sensospot_data/parameters.py b/sensospot_data/parameters.py index d83f693..ee9e182 100644 --- a/sensospot_data/parameters.py +++ b/sensospot_data/parameters.py @@ -48,7 +48,7 @@ def _parse_measurement_params(params_file): return result -def _get_measurement_params(folder): +def get_measurement_params(folder): """ returns measurement parameters """ params_file = _search_measurement_params_file(folder) if params_file is not None: @@ -72,7 +72,7 @@ def add_optional_measurement_parameters(data_frame, folder): """ adds measurement params to the data frame, if they could be parsed """ data_frame[COL_NAME_PARAMETERS_CHANNEL] = numpy.nan data_frame[COL_NAME_PARAMETERS_TIME] = numpy.nan - params = _get_measurement_params(folder) + params = get_measurement_params(folder) if params: available_exposures = set(data_frame[COL_NAME_EXPOSURE_ID].unique()) if available_exposures == set(params.keys()):