Improved retrieval of existing reagents.

This commit is contained in:
Landon Wark
2023-02-08 12:06:11 -06:00
parent 963ac7d4a4
commit c3db706e7c
8 changed files with 249 additions and 40 deletions

View File

@@ -92,6 +92,9 @@ class SheetParser(object):
def _parse_reagents(df:pd.DataFrame) -> None:
for ii, row in df.iterrows():
# skip positive control
if ii == 11:
continue
logger.debug(f"Running reagent parse for {row[1]} with type {type(row[1])} and value: {row[2]} with type {type(row[2])}")
try:
check = not np.isnan(row[1])
@@ -162,7 +165,7 @@ class SheetParser(object):
check = True
if not isinstance(row[5], float) and check:
# must be prefixed with 'lot_' to be recognized by gui
output_key = re.sub(r"\d{1,3}%", "", row[0].replace(' ', '_').lower())
output_key = re.sub(r"\d{1,3}%", "", row[0].lower().strip().replace(' ', '_'))
try:
output_var = row[5].upper()
except AttributeError: