Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes in restrict and in_interval #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gviejo
Copy link

@gviejo gviejo commented Dec 13, 2018

Hello
The first change is the same as the issue I opened.
The second change is because in restrict, .iloc doesn't accept anything else than an int.
For exemple if I have a TsdFrame such as:

frame = nts.TsdFrame(t = times, d = data, columns = ['angle', 'xpos', 'ypos'])

and I cut it to take only the angle:

angle = frame['angle']

and try to restrict it:

angle.restrict(epoch)

in restrict:

s = tsd_r.iloc[:, col]

will bug because col is 'angle' and not 0.
Since Tsd is a one dimensional dataset, it can be assumed it's always the first column.

Best

Guillaume

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant