We should enforce the inputs are ints when select(samples=True). Right now a cryptic error is raised.
Example
import dascore as dc
patch = dc.get_example_patch()
sub = patch.select(time=0, samples=True) # works fine
sub = patch.select(time=0.0, samples=True) # raises an assertion error.
Expected behavior
We should probably just raise a nicer error message when non-ints are used in patch.select when sample=True, similar to using non-ints for numpy array indices.
Description
We should enforce the inputs are ints when
select(samples=True)
. Right now a cryptic error is raised.Example
Expected behavior
We should probably just raise a nicer error message when non-ints are used in
patch.select
whensample=True
, similar to using non-ints for numpy array indices.Versions