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

easy separate workflow for preprocessing and NWB building in RawToNWBBuilder #544

Open
jihyunbak opened this issue Nov 12, 2020 · 0 comments · May be fixed by #545
Open

easy separate workflow for preprocessing and NWB building in RawToNWBBuilder #544

jihyunbak opened this issue Nov 12, 2020 · 0 comments · May be fixed by #545

Comments

@jihyunbak
Copy link

jihyunbak commented Nov 12, 2020

Example workflow

Suppose that I am trying to build the NWB file from raw data, by constructing a RawToNWBBuilder object:

builder = RawToNWBBuilder(**all_my_kwargs)
builder.build_nwb()

The preprocessing runs successfully, but something goes wrong in the build phase. I want to be able to easily pick up from after the preprocessing using the existing RawToNWBBuilder object.

I know that I can create a NWBFileBuilder object myself, but it would be nice to get it easily from RawToNWBBuilder so that all configurations are preserved.

Expected behavior

Want something like this:

# nwb_builder is a NWBFileBuilder object
nwb_builder = builder.get_nwb_builder(date)

and/or

# this method would essentially call NWBFileBuilder.build()
# but passing all attributes of my existing RawToNWBBuilder instance.
builder.build_nwb_file()
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.

1 participant