|
|
|
@ -13,10 +13,10 @@ from .columns import (
@@ -13,10 +13,10 @@ from .columns import (
|
|
|
|
|
COL_NAME_POS_ID, |
|
|
|
|
COL_NAME_WELL_ROW, |
|
|
|
|
COL_NAME_SPOT_FOUND, |
|
|
|
|
RAW_DATA_COLUMN_SET, |
|
|
|
|
COL_NAME_EXPOSURE_ID, |
|
|
|
|
COL_NAME_WELL_COLUMN, |
|
|
|
|
COL_NAME_SPOT_DIAMETER, |
|
|
|
|
RAW_DATA_COLUMN_SET |
|
|
|
|
) |
|
|
|
|
from .parameters import add_optional_measurement_parameters |
|
|
|
|
|
|
|
|
@ -80,7 +80,7 @@ def _extract_measurement_info(data_file):
@@ -80,7 +80,7 @@ def _extract_measurement_info(data_file):
|
|
|
|
|
|
|
|
|
|
def _cleanup_data_columns(data_frame): |
|
|
|
|
""" renames some data columns for consistency and drops unused columns """ |
|
|
|
|
renamed = data_frame.rename(columns=COLUMNS_RENAME_MAP) |
|
|
|
|
renamed = data_frame.rename(columns=COLUMNS_RENAME_MAP) |
|
|
|
|
surplus_columns = set(renamed.columns) - RAW_DATA_COLUMN_SET |
|
|
|
|
return renamed.drop(columns=surplus_columns) |
|
|
|
|
|
|
|
|
|