Skip to content
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

dates: Move date logic from utils to dates #923

Merged
merged 3 commits into from
May 24, 2022

Conversation

victorlin
Copy link
Member

Description of proposed changes

This PR moves date logic from utils into the new dates module introduced in 2b9ba06.

There is still augur/util_support/date_disambiguator.py but leaving that one for now.

Related issue(s)

N/A

Testing

Moved tests: 5644c30

@victorlin victorlin requested a review from a team May 13, 2022 21:53
@victorlin victorlin self-assigned this May 13, 2022
@codecov
Copy link

codecov bot commented May 13, 2022

Codecov Report

Merging #923 (d245c35) into master (c3d3250) will increase coverage by 0.01%.
The diff coverage is 75.43%.

@@            Coverage Diff             @@
##           master     #923      +/-   ##
==========================================
+ Coverage   34.59%   34.60%   +0.01%     
==========================================
  Files          42       42              
  Lines        6044     6045       +1     
  Branches     1549     1549              
==========================================
+ Hits         2091     2092       +1     
  Misses       3879     3879              
  Partials       74       74              
Impacted Files Coverage Δ
augur/utils.py 39.73% <ø> (-4.59%) ⬇️
augur/dates.py 82.05% <71.42%> (-17.95%) ⬇️
augur/filter.py 68.55% <100.00%> (ø)
augur/frequencies.py 10.25% <100.00%> (ø)
augur/parse.py 63.41% <100.00%> (+0.45%) ⬆️
augur/refine.py 5.88% <100.00%> (+0.50%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3d3250...d245c35. Read the comment docs.

@victorlin victorlin changed the title filter: Move date logic from utils to dates Move date logic from utils to dates May 16, 2022
@victorlin victorlin changed the title Move date logic from utils to dates dates: Move date logic from utils to dates May 16, 2022
Copy link
Contributor

@huddlej huddlej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, @victorlin!

@victorlin victorlin merged commit ea89ece into nextstrain:master May 24, 2022
@victorlin victorlin deleted the filter/consolidate-date-logic branch May 24, 2022 16:37
@victorlin victorlin added this to the Major release 16.0.0 milestone Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants