-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(preprocessing): parse dates into date ranges to correctly represent incomplete dates #3263
Conversation
preprocessing/nextclade/src/loculus_preprocessing/processing_functions.py
Outdated
Show resolved
Hide resolved
preprocessing/nextclade/src/loculus_preprocessing/processing_functions.py
Show resolved
Hide resolved
preprocessing/nextclade/src/loculus_preprocessing/processing_functions.py
Outdated
Show resolved
Hide resolved
preprocessing/nextclade/src/loculus_preprocessing/processing_functions.py
Outdated
Show resolved
Hide resolved
preprocessing/nextclade/src/loculus_preprocessing/processing_functions.py
Outdated
Show resolved
Hide resolved
preprocessing/nextclade/src/loculus_preprocessing/processing_functions.py
Outdated
Show resolved
Hide resolved
preprocessing/nextclade/src/loculus_preprocessing/processing_functions.py
Outdated
Show resolved
Hide resolved
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.
I added some test fixes - could you take a look and merge - then Im happy to approve :-)
preprocessing/nextclade/src/loculus_preprocessing/processing_functions.py
Show resolved
Hide resolved
preprocessing/nextclade/src/loculus_preprocessing/processing_functions.py
Outdated
Show resolved
Hide resolved
preprocessing/nextclade/src/loculus_preprocessing/processing_functions.py
Show resolved
Hide resolved
preprocessing/nextclade/src/loculus_preprocessing/processing_functions.py
Outdated
Show resolved
Hide resolved
Thanks for the reviews @fhennig and @anna-parker - have a look again, should be better now! |
…unctions.py Co-authored-by: Felix Hennig <[email protected]>
* fix tests * remove unused case * Add a test failure description --------- Co-authored-by: Cornelius Roemer <[email protected]>
8e2365b
to
04ec4c7
Compare
thx for the changes! Having a look now 👀 |
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.
Thx, good work!
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.
Looks great to me - would be great to also add the option to parse input ranges, but we can add that in a follow up PR :-)
docs/src/content/docs/for-administrators/existing-preprocessing-pipelines.md
Show resolved
Hide resolved
preprocessing/nextclade/src/loculus_preprocessing/processing_functions.py
Outdated
Show resolved
Hide resolved
…unctions.py Co-authored-by: Anna (Anya) Parker <[email protected]>
Discussed on Slack: https://loculus.slack.com/archives/C05G172HL6L/p1732110859357449
preview URL: https://date-ranges.loculus.org
Summary
sampleCollectionDate
be of type string and of formYYYY
orYYYY-MM
orYYYY-MM-DD
(instead of type date withYYYY-MM-DD
and MM and DD forced to 01 if missing)sampleCollectionDateRangeLower
andsampleCollectionDateRangeUpper
Screenshot
PR Checklist