-
Notifications
You must be signed in to change notification settings - Fork 4
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
Adjust raw file structure #92
Conversation
ap_1_file_path = probe_1_source_folder_path / "Noise4Sam_g0_imec0/Noise4Sam_g0_t0.imec0.ap.bin" | ||
ap_2_file_path = probe_2_source_folder_path / "5-19-2022-CI0_g0_imec0/5-19-2022-CI0_g0_t0.imec0.ap.bin" | ||
|
||
lf_1_file_path = probe_1_source_folder_path / "Noise4Sam_g0_imec0/Noise4Sam_g0_t0.imec0.lf.bin" | ||
lf_2_file_path = probe_2_source_folder_path / "5-19-2022-CI0_g0_imec0/5-19-2022-CI0_g0_t0.imec0.lf.bin" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grg2rsr I'm just emulating what I can with local SpikeGLX files here. Adjust as needed for your actual conversion
if self.one.list_datasets(eid=self.session, filename=f"raw_video_data/*{self.camera_name}*"): | ||
original_video_file_path = self.one.load_dataset( | ||
id=self.session, dataset=f"raw_video_data/*{self.camera_name}*", download_only=True | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grg2rsr Of course, I'm still using the ONE API to handle file downloads and whatnot
If your server has the files locally you may want/need to refactor this appropriately for that case
Writes raw-only files with combined AP/LF/Video
Further splitting might be useful down the road
Vast simplification over the original conversion, by directly spitting out in DANDI compatible format