Skip to content

Commit

Permalink
assert header fits to table
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Mar 5, 2024
1 parent 2b9c8f9 commit 91f86ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/analysis/test_analysis_nanopore.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ def build_run_properties() -> dict:
data = StringIO(parameter_string_table)

# Read data, trimming whitespace
df = pd.read_csv(data, names=col_names, sep=r"\s+")
df = pd.read_csv(data, header=None, sep=r"\s+")
assert len(df.columns) == len(col_names)
df.columns = col_names

# Replace nan(s) with None(s)
df = df.replace(np.nan, None)
Expand Down

0 comments on commit 91f86ce

Please sign in to comment.