Is your feature request related to a problem? Please describe.
The assert_scmdf_almost_equal function is a bit messier and harder to use than is necessary.
Describe the solution you'd like
We clean up the function. Immediate things to do:
- rename to
assert_scmrun_almost_equal
- check whether the
allow_unordered and check_ts_names arguments are still relevant. If they are, try to better capture what they do
- fix the type hints to refer to
BaseScmRun
- see if we can unify the paths through the function so they all use
pdt.assert_frame_equal and we can remove npt.assert_allclose (in theory, the pandas function also uses assert all close so this feels like it should be possible, we may have issues with the time point comparisons of course)
- add type hints throughout the entire module
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
This would be a breaking change, so would need appropriate deprecation warnings (probably over at least two minor releases)
Is your feature request related to a problem? Please describe.
The
assert_scmdf_almost_equalfunction is a bit messier and harder to use than is necessary.Describe the solution you'd like
We clean up the function. Immediate things to do:
assert_scmrun_almost_equalallow_unorderedandcheck_ts_namesarguments are still relevant. If they are, try to better capture what they doBaseScmRunpdt.assert_frame_equaland we can removenpt.assert_allclose(in theory, the pandas function also uses assert all close so this feels like it should be possible, we may have issues with the time point comparisons of course)Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
This would be a breaking change, so would need appropriate deprecation warnings (probably over at least two minor releases)