Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ def __init__(self, named_file_contents: NamedFileContents) -> None:
def _read_xlsx(self, named_file_contents: NamedFileContents) -> None:
df = read_excel(named_file_contents.contents, header=None, engine="calamine")

# Detect format: PharmSpec uses col1=":" with value in col2,
# HIAC Run Counter uses col1=": value" (colon+value merged).
is_pharmspec = df[1].str.strip().eq(":").any() if 1 in df.columns else False
if not is_pharmspec:
self._parse_hiac_run_counter_format(df)
return

"""
Find the data in the raw dataframe. We identify the boundary of the data
by finding the index first row which contains the word 'Particle' and ending right before
Expand Down
Loading