Skip to content

Commit

Permalink
* Make row headers mandatory in the quality_controls.csv
Browse files Browse the repository at this point in the history
  • Loading branch information
madhavmk committed Dec 5, 2023
1 parent cda9e8c commit ef7df34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gnatss/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def load_quality_control(qc_files: List[str], time_scale="tt") -> pd.DataFrame:

if qc_files:
qc_dfs = [

Check warning on line 368 in src/gnatss/loaders.py

View check run for this annotation

Codecov / codecov/patch

src/gnatss/loaders.py#L367-L368

Added lines #L367 - L368 were not covered by tests
pd.read_csv(qc_file, header=None, names=csv_columns).reset_index(drop=True)
pd.read_csv(qc_file, header=0, names=csv_columns).reset_index(drop=True)
for qc_file in qc_files
]
qc_df = (

Check warning on line 372 in src/gnatss/loaders.py

View check run for this annotation

Codecov / codecov/patch

src/gnatss/loaders.py#L372

Added line #L372 was not covered by tests
Expand Down
3 changes: 2 additions & 1 deletion tests/data/2022/NCL1/quality_control.csv
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
2022-07-28T12:30:00,2022-07-28T16:40:00
starttime,endtime,notes
2022-07-28T12:30:00,2022-07-28T16:40:00,

0 comments on commit ef7df34

Please sign in to comment.