From 89de888216da9b8684c71f25c4b5f7fafe737e7d Mon Sep 17 00:00:00 2001 From: perezgonzalez-irene <iregon@noc.ac.uk> Date: Tue, 11 Feb 2020 08:47:43 +0000 Subject: [PATCH] Changed supported_file_formats to supported_data_models --- properties.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/properties.py b/properties.py index 8e6e034..4ec4c79 100644 --- a/properties.py +++ b/properties.py @@ -12,7 +12,7 @@ import pandas as pd # Supported formats, sources and internal data models ------------------------- schema_path = os.path.join(os.path.dirname(__file__),'schemas','lib') -supported_file_formats = [ os.path.basename(x).split(".")[0] for x in glob.glob(schema_path + '/*/*.json') if os.path.basename(x).split(".")[0] == os.path.dirname(x).split("/")[-1]] +supported_data_models = [ os.path.basename(x).split(".")[0] for x in glob.glob(schema_path + '/*/*.json') if os.path.basename(x).split(".")[0] == os.path.dirname(x).split("/")[-1]] supported_sources = [pd.io.parsers.TextFileReader, io.StringIO] # Data types ------------------------------------------------------------------ @@ -37,12 +37,12 @@ data_type_conversion_args = {} for dtype in numeric_types: data_type_conversion_args[dtype] = ['scale','offset'] data_type_conversion_args['str'] = ['disable_white_strip'] -data_type_conversion_args['object'] = ['disable_white_strip'] +data_type_conversion_args['object'] = ['disable_white_strip'] data_type_conversion_args['key'] = ['disable_white_strip'] -data_type_conversion_args['datetime'] = ['datetime_format'] +data_type_conversion_args['datetime'] = ['datetime_format'] # Misc ------------------------------------------------------------------------ tol = 1E-10 dummy_level = 'SECTION__' # Length of reports in initial read -MAX_FULL_REPORT_WIDTH = 100000 \ No newline at end of file +MAX_FULL_REPORT_WIDTH = 100000 -- GitLab