Browse Source

added common index columns sets

xmlparsing
Holger Frey 3 years ago
parent
commit
e165648123
  1. 2
      sensospot_data/__init__.py
  2. 15
      sensospot_data/columns.py

2
sensospot_data/__init__.py

@ -83,7 +83,7 @@ def _parse_one_folder(source, outfile, quiet): @@ -83,7 +83,7 @@ def _parse_one_folder(source, outfile, quiet):
def _parse_recursive(source, outfile, quiet):
"""parses all folder one level down and collects the data"""
"""parses all folders one level down and collects the data"""
child_outfile = DEFAULT_OUTPUT_FILENAME
source_path = Path(source)
folders = (i for i in source_path.iterdir() if i.is_dir())

15
sensospot_data/columns.py

@ -80,3 +80,18 @@ RAW_DATA_NUMERIC_COLUMNS = { @@ -80,3 +80,18 @@ RAW_DATA_NUMERIC_COLUMNS = {
RAW_DATA_BKG_SUM,
RAW_DATA_SPOT_SUM,
}
# common indexes
INDEX_COLUMNS_WELL = (
META_DATA_ANALYSIS_NAME,
META_DATA_WELL_NAME,
META_DATA_WELL_ROW,
)
INDEX_COLUMNS_POS = (
META_DATA_ANALYSIS_NAME,
META_DATA_WELL_NAME,
META_DATA_WELL_ROW,
RAW_DATA_POS_ID,
)

Loading…
Cancel
Save