Skip to content

Commit

Permalink
removed unused helper
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Jun 3, 2024
1 parent 5fc9132 commit f276c06
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,33 +827,6 @@ def get_interface_alignment(info: dict) -> dict:
)


def configure_dataset_backends(
nwbfile, backend: Optional[str] = None, backend_configuration: Optional[dict] = None
) -> None:
from neuroconv.tools.nwb_helpers import (
configure_backend,
get_default_backend_configuration,
)

PROPS_TO_AVOID = ["full_shape"]

backend = backend or "hdf5"
backend_configuration = backend_configuration or get_default_backend_configuration(nwbfile=nwbfile, backend=backend)

for dataset_name, dataset_configuration in backend_configuration.items():
for key, value in dataset_configuration.items():

# Avoid setting compression options if unspecified
if key == "compression_options" and (value is None or len(value) == 0):
setattr(configuration.dataset_configurations[name], key, None)

# Avoid certain properties passed to the GUIDE
elif key not in PROPS_TO_AVOID:
setattr(configuration.dataset_configurations[name], key, value)

configure_backend(nwbfile=nwbfile, backend_configuration=backend_configuration)


def create_file(
info: dict,
log_url: Optional[str] = None,
Expand Down

0 comments on commit f276c06

Please sign in to comment.