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

regular timestamps calculated #109

Closed
bendichter opened this issue Apr 18, 2024 · 5 comments · Fixed by #110
Closed

regular timestamps calculated #109

bendichter opened this issue Apr 18, 2024 · 5 comments · Fixed by #110

Comments

@bendichter
Copy link

timestamps = H5DataIO(np.arange(raw_keypoints.shape[0]) / SAMPLING_RATE, compression=True)

@pauladkisson why are we computing the timestamps here? Seems like we should be using starting time and sampling rate

@bendichter
Copy link
Author

Also, more importantly, is this the first stream? I couldn't find any logic to synchronize this with other streams in the conversion code.

@pauladkisson
Copy link
Member

Yes, this should be using starting time and sampling rate -- looks like a mistake made in all the confusion of temporal alignment.

We ended up adding the raw fiber photometry response data without temporal alignment, but with a comment warning that the raw data was not aligned. This is because the datta lab was unable to come up with the alignment information that we needed. All the other data streams (processed photometry, keypoints, moseq-extract output, etc.) are already aligned.

@bendichter
Copy link
Author

ok got it, thanks!

@CodyCBakerPhD
Copy link
Member

@pauladkisson did you want to regenerate the files with starting time + rate or just accept the less efficient timestamps and close the issue?

@pauladkisson
Copy link
Member

I can go ahead and regenerate the files, it should be an easy fix.

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 a pull request may close this issue.

3 participants