-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ORCA-175] Add CsvUpdater
and update_csv
command
#39
Conversation
✅ Linked to Story ORCA-175 · As an output, return the input manifest but with dcqc_status column for ease of use |
CsvUpdater
and update_csv
command
Codecov Report
@@ Coverage Diff @@
## main #39 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 22 23 +1
Lines 1090 1143 +53
Branches 126 189 +63
=========================================
+ Hits 1090 1143 +53
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This is my initial feedback - will review more tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 @BWMac Nice work! I'm going to pre-approve, but please add the missing test case for when there is no status.
This PR follows on from #38 and implements a
CsvUpdater
class (and needed tests) which will be used to update the input CSV file for the DCQC run with a new column indicating theSuiteStatus
for each file following processing. It also adds a new CLI commandupdate_csv
which will apply this new class to make the needed changes. The logic for updating CSV files is agnostic to single/multi-target QC runs, and uses the file URL as an ID to evaluate all suites generated against each individual target file. Necessary example filesinput.csv
,output.csv
, andsuites.json
are also added totests/data
.suite_abc.py
is also updated to include aget_status
method for accessing theSuiteStatus
from outside of the class.edit: I am marking this as ready for review after successfully testing these changes in
nf-dcqc
.