Skip to content

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

@jihyunbak

Description

@jihyunbak

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions