Skip to content

Commit

Permalink
debug full
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Jul 21, 2022
1 parent 68a41a5 commit d09aee6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def run_conversion_from_yaml(
global_data_interfaces = specification.get("data_interfaces")
nwb_conversion_tools = import_module(
name=".",
package="nwb_conversion_tools", # relative import, but named and referenced as if it were absolute
package="neuroconv", # relative import, but named and referenced as if it were absolute
)
file_counter = 0
for experiment in specification["experiments"].values():
Expand Down
6 changes: 3 additions & 3 deletions tests/test_on_data/test_gin_icephys.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
from pathlib import Path
from datetime import datetime

import neo
import pytest
import numpy.testing as npt
from pynwb import NWBHDF5IO

from neuroconv import NWBConverter, AbfInterface
from neuroconv.utils import load_dict_from_file
from neuroconv.tools.neo import get_number_of_segments, get_number_of_electrodes

try:
from parameterized import parameterized, param
Expand Down Expand Up @@ -67,8 +67,8 @@ def test_convert_abf_to_nwb(self, data_interface, interface_kwargs):
from neo import AxonIO

neo_reader = AxonIO(filename=interface_kwargs["file_paths"][0])
n_segments = neo.get_number_of_segments(neo_reader, block=0)
n_electrodes = neo.get_number_of_electrodes(neo_reader)
n_segments = get_number_of_segments(neo_reader, block=0)
n_electrodes = get_number_of_electrodes(neo_reader)

nwbfile_path = str(self.savedir / f"{data_interface.__name__}.nwb")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_on_data/test_yaml_conversion_specification.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TestYAMLConversionSpecification(TestCase):
def test_validate_example_specification(self):
path_to_test_yml_files = Path(__file__).parent / "conversion_specifications"
yaml_file_path = path_to_test_yml_files / "GIN_conversion_specification.yml"
schema_folder = path_to_test_yml_files.parent.parent.parent / "src" / "nwb_conversion_tools" / "schemas"
schema_folder = path_to_test_yml_files.parent.parent.parent / "src" / "neuroconv" / "schemas"
specification_schema = load_dict_from_file(
file_path=schema_folder / "yaml_conversion_specification_schema.json"
)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_on_data/test_yaml_conversion_specification_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_run_conversion_from_yaml_cli(self):
yaml_file_path = path_to_test_yml_files / "GIN_conversion_specification.yml"
deploy_process(
command=(
f"nwbct-run-conversion {yaml_file_path} "
f"neuroconv {yaml_file_path} "
f"--data-folder-path {DATA_PATH} --output-folder-path {self.test_folder} --overwrite"
)
)
Expand Down Expand Up @@ -55,7 +55,7 @@ def test_run_conversion_from_yaml_default_nwbfile_name(self):
yaml_file_path = path_to_test_yml_files / "GIN_conversion_specification_missing_nwbfile_names.yml"
deploy_process(
command=(
f"nwbct-run-conversion {yaml_file_path} "
f"neuroconv {yaml_file_path} "
f"--data-folder-path {DATA_PATH} --output-folder-path {self.test_folder} --overwrite"
)
)
Expand Down

0 comments on commit d09aee6

Please sign in to comment.