Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Python: VisibleDeprecationWarnings in loadContinuous() #34

Closed
e-matteson opened this issue Oct 17, 2016 · 0 comments
Closed

Python: VisibleDeprecationWarnings in loadContinuous() #34

e-matteson opened this issue Oct 17, 2016 · 0 comments

Comments

@e-matteson
Copy link
Contributor

e-matteson commented Oct 17, 2016

The loadContinuous() function in OpenEphys.py produces several VisibleDeprecationWarnings, for two reasons.

The first (lines 128, 129, 130) is because the constants defined around line 30 are floats instead of integers. This can be fixed by wrapping them in int().

The second (line 157) is because N is an array ([1024]) instead of an integer (1024), because np.fromfile() returns an array even when asked for a single value (line 147).

I'll submit a pull request with what I assume are the correct fixes.

e-matteson added a commit to e-matteson/analysis-tools that referenced this issue Oct 17, 2016
e-matteson added a commit to e-matteson/analysis-tools that referenced this issue Oct 17, 2016
Non-integers were being used as indices. See issue open-ephys#34.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant