Closed marscher closed 3 months ago
2 188 tests ±0 2 187 :white_check_mark: +1 2m 45s :stopwatch: -20s 1 suites ±0 1 :zzz: ±0 1 files ±0 0 :x: - 1
Results for commit 2e6c519c. ± Comparison against base commit 82b79b17.
:recycle: This comment has been updated with latest results.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 96.48%. Comparing base (
1750f5d
) to head (2e6c519
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks for the fixes @marscher !
what is the minimum pandas version required for this? Does it work with 1.5.x still?
what is the minimum pandas version required for this? Does it work with 1.5.x still?
I've added some backward compatibility code for reading old unit suffixes. Currently it only replaces the (used by weldx schema examples) suffix for seconds "S". I am not aware of any other units used in the past by weldx. To ensure we can still load old files with the new version, we should probably complete this list.
Sorry I misinterpreted your question. I did not check, if it works with old Pandas versions. Is this a requirement or can we just pin a minimum version?
I've tested pandas-1.5 with Python-3.11 locally and all tests pass.
The CI failures are unrelated to my changes. I think this one is ready to go.
I've tested pandas-1.5 with Python-3.11 locally and all tests pass.
If you tested it with 1.5 I am fine with pinning minimum pandas version >=1.5. 😊 I will update the CI to test for that later as well
Changes
Pandas 2.2 deprecated the unit argument of the Timedeltaindex constructor and suggests to use pandas.totimedelta function instaed. This PR changes this as suggested.
Related Issues
properly fixes #909
Checks
CHANGELOG.md
tests/