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

Bugfix in business_day_dif #620

Merged
merged 2 commits into from
Jan 5, 2023
Merged

Bugfix in business_day_dif #620

merged 2 commits into from
Jan 5, 2023

Conversation

Magnus167
Copy link
Member

Python Datetime's/Pandas' isocalender() represents a date in the form (Year, Week number, Week day). One of the calculations was using an a deprecated form of getting the year for the calculations. Updating the code to use pd.DatetimeIndex.isocalender() fixed the issue. Important point to remember is that the isocalender() functionality must NOT be confused with isoformat().

@Magnus167 Magnus167 requested a review from Ksteeds January 5, 2023 14:29
@Magnus167 Magnus167 self-assigned this Jan 5, 2023
@codecov-commenter
Copy link

Codecov Report

Base: 59.11% // Head: 59.09% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (b1a0c33) compared to base (8445e43).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #620      +/-   ##
===========================================
- Coverage    59.11%   59.09%   -0.03%     
===========================================
  Files           28       28              
  Lines         2950     2948       -2     
===========================================
- Hits          1744     1742       -2     
  Misses        1206     1206              
Impacted Files Coverage Δ
macrosynergy/management/check_availability.py 50.00% <100.00%> (-1.79%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Ksteeds Ksteeds merged commit 9c8fb24 into develop Jan 5, 2023
@Magnus167 Magnus167 deleted the bugfix/mgmt_bus_day_dif branch January 5, 2023 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants