-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
The patch.select method allows one to select a single sample when samples==True in which case the argument must be an int. However, when using a numpy int the method raises an error.
Example
import dascore as dc
import numpy as np
patch = dc.get_example_patch()
sub1 = patch.select(time=0, samples=True) # works fine
sub2 = patch.select(time=np.int64(0), samples=True) # raises AssertionErrorExpected behavior
Both python ints and numpy ints should work.
Versions
- OS [e.g. Ubuntu 20.04]:
- DASCore Version [e.g. 0.0.5]:
- Python Version [e.g. 3.10]:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working