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

Change ophys.ImagingPlane fields excitation_lambda and imaging_rate from str to float #136

Closed
bendichter opened this issue Mar 31, 2018 · 5 comments · Fixed by NeurodataWithoutBorders/pynwb#697
Assignees
Milestone

Comments

@bendichter
Copy link
Contributor

bendichter commented Mar 31, 2018

dtype: text

Is there a reason why these are stored as strings? It seems more sensible to store them as floats.

@bendichter bendichter changed the title Change excitation_lambda field of ophys.ImagingPlane from float to str Change excitation_lambda field of ophys.ImagingPlane from str to float Mar 31, 2018
@bendichter bendichter changed the title Change excitation_lambda field of ophys.ImagingPlane from str to float Change ophys.ImagingPlane fields excitation_lambda and imaging_rate from str to float Mar 31, 2018
@ajtritt
Copy link
Member

ajtritt commented Apr 1, 2018

This got carried over from 1.x, but I agree, a float or a double would make more sense.

@elyall
Copy link

elyall commented Apr 26, 2018

Also in all other classes, the sampling rate parameter is referred to as "rate". So I'd suggest changing the parameter's name ("imaging_rate" -> "rate") and the data type (str -> float).

@elyall
Copy link

elyall commented Apr 26, 2018

Alternatively, ImagingPlane's sampling rate parameter is redundant and can be removed altogether since all Series data tied to an ImagingPlane have to have their own rate/timestamps specified.

@bendichter
Copy link
Contributor Author

@oruebel @ajtritt how do you guys feel about removing imaging_rate from ImagingPlane as @elyall suggests? Might that cause issues I am not seeing?

@oruebel
Copy link
Contributor

oruebel commented Sep 12, 2018

This is fixed in NeurodataWithoutBorders/pynwb#612

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment