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

Validate configuration parameters before starting the pipeline (e.g. capture_f5_dir) #64

Open
kdoroschak opened this issue Oct 1, 2020 · 0 comments
Milestone

Comments

@kdoroschak
Copy link
Member

] # TODO : Verify exists; don't create (handle earlier)
n_per_file = config["output"]["captures_per_f5"]
if f5_subsection_start is None:
f5_subsection_start = 0
if not os.path.exists(save_location):
raise IOError(f"Path to capture file location does not exist: {save_location}")
raw_signals, context, run_id, sampling_rate = _prep_capture_windows(
bulk_f5_fname,
f5_subsection_start,
f5_subsection_end,
voltage_t,
signal_t,
good_channels,
open_channel_prior_mean,
)
logger.debug("Loading up the bag with signals.")
bag = db.from_sequence(raw_signals, npartitions=64)
capture_map = bag.map(
find_captures_dask_wrapper,
terminal_capture_only=terminal_capture_only,
filters=filters,
delay=delay,
end_tol=end_tol,
)
logger.info("Beginning segmentation.")

@kdoroschak kdoroschak added this to the 1.0.0 milestone Feb 1, 2021
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

No branches or pull requests

1 participant