Skip to content

Commit

Permalink
renamed and removed
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Mar 21, 2022
1 parent 4e150d5 commit 3287166
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ coverage.xml
*.cover
.hypothesis/
.pytest_cache/
gin_test_config_local.json
# *.json
gin_test_config.json
*.json

# Translations
*.mo
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ for `ophys` data.


### Test configuration file
Once the data is downloaded to your system, you must manually modify the [config file](https://github.com/catalystneuro/nwb-conversion-tools/blob/main/tests/test_on_data/gin_test_config.json) located in `./tests/test_on_data/gin_test_config.json` so its corresponding `LOCAL_PATH` key points to the correct folder on your system that contains the dataset folder (e.g., `ephy_testing_data` for testing `ecephys`). The code will automatically detect that the tests are being run locally, so all you need to do ensure the path is correct to your specific system.
Once the data is downloaded to your system, you must manually modify the [config file](https://github.com/catalystneuro/nwb-conversion-tools/blob/solve_gin_test_config_tracking/base_gin_test_config.json) located in `./tests/test_on_data/gin_test_config.json` so its corresponding `LOCAL_PATH` key points to the correct folder on your system that contains the dataset folder (e.g., `ephy_testing_data` for testing `ecephys`). The code will automatically detect that the tests are being run locally, so all you need to do ensure the path is correct to your specific system.

The output of these tests is, by default, stored in a temporary directory that is then cleaned after the tests finish running. To examine these files for quality assessment purposes, set the flag `SAVE_OUTPUTS=true` in the same `gin_test_config.json` file mentioned in the last paragraph and modify the variable `OUTPUT_PATH` in the respective test if necessary.
File renamed without changes.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
extras_require = dict(full=full_dependencies, test=testing_suite_dependencies)

# Create a local folder for gin data tests configuration
gin_config_file_base = "./tests/test_on_data/gin_test_config.json"
gin_config_file_local = "./tests/test_on_data/gin_test_config_local.json"
gin_config_file_base = "./base_gin_test_config.json"
gin_config_file_local = "./tests/test_on_data/gin_test_config.json"
copy(src=gin_config_file_base, dst=gin_config_file_local)

setup(
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 @@ -12,7 +12,7 @@
from nwb_conversion_tools.utils import load_dict_from_file

# Load the configuration for the data tests
test_config_dict = load_dict_from_file(Path(__file__).parent / "gin_test_config_local.json")
test_config_dict = load_dict_from_file(Path(__file__).parent / "gin_test_config.json")
print(test_config_dict)

# GIN dataset: https://gin.g-node.org/NeuralEnsemble/ephy_testing_data
Expand Down
2 changes: 1 addition & 1 deletion tests/test_on_data/test_gin_ecephys.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@


# Load the configuration for the data tests
test_config_dict = load_dict_from_file(Path(__file__).parent / "gin_test_config_local.json")
test_config_dict = load_dict_from_file(Path(__file__).parent / "gin_test_config.json")

# GIN dataset: https://gin.g-node.org/NeuralEnsemble/ephy_testing_data
if os.getenv("CI"):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_on_data/test_gin_ophys.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


# Load the configuration for the data tests
test_config_dict = load_dict_from_file(Path(__file__).parent / "gin_test_config_local.json")
test_config_dict = load_dict_from_file(Path(__file__).parent / "gin_test_config.json")

# GIN dataset: https://gin.g-node.org/CatalystNeuro/ophys_testing_data
if os.getenv("CI"):
Expand Down

0 comments on commit 3287166

Please sign in to comment.