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

Adjust raw file structure #92

Merged
merged 3 commits into from
Sep 29, 2024
Merged

Adjust raw file structure #92

merged 3 commits into from
Sep 29, 2024

Conversation

CodyCBakerPhD
Copy link
Member

@CodyCBakerPhD CodyCBakerPhD commented Sep 29, 2024

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

@CodyCBakerPhD CodyCBakerPhD self-assigned this Sep 29, 2024
Comment on lines +35 to +39
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"
Copy link
Member Author

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

Comment on lines +52 to +55
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
)
Copy link
Member Author

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

@CodyCBakerPhD CodyCBakerPhD linked an issue Sep 29, 2024 that may be closed by this pull request
@CodyCBakerPhD CodyCBakerPhD changed the title Adjust raw video Adjust raw file structure Sep 29, 2024
@CodyCBakerPhD CodyCBakerPhD merged commit b886fba into main Sep 29, 2024
7 checks passed
@CodyCBakerPhD CodyCBakerPhD deleted the adjust_raw_only branch September 29, 2024 17:03
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.

CN/IBL TODO: discuss raw vs. processed separation
1 participant