There are some situations in which we may want to slice time in terms of an integer (or long). For example, dtype-next's date time has a function long-temporal-field that converts datetime datatypes to longs.
Solution
Just check to see if the to/from keys are ints, and if so pass the key through without any conversion.
How to test
Check the logic of the new test added [here]().
Run the test.
Also in this PR
Some of the tests were broken because I'd not been using ds-equal (silly oversight).
I fixed the tests and removed ds-equal because dataset equality now seems to have been fixed.
Problem
There are some situations in which we may want to slice time in terms of an integer (or long). For example, dtype-next's date time has a function
long-temporal-field
that converts datetime datatypes to longs.Solution
Just check to see if the
to/from
keys are ints, and if so pass the key through without any conversion.How to test
Also in this PR
ds-equal
(silly oversight).ds-equal
because dataset equality now seems to have been fixed.