Skip to content
Snippets Groups Projects
Commit 1e099555 authored by mjbonifa's avatar mjbonifa
Browse files

(refactor) Changed codes to concepts directory for alignment with OMOP. Closes #52

parent a4172529
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ import shutil ...@@ -5,7 +5,7 @@ import shutil
import logging import logging
from pathlib import Path from pathlib import Path
from acmc import trud, omop, main, logging_config as lc from acmc import trud, omop, main, phen, logging_config as lc
# setup logging # setup logging
lc.setup_logger() lc.setup_logger()
...@@ -71,7 +71,7 @@ def test_phen_workflow(tmp_dir, monkeypatch, caplog, config_file): ...@@ -71,7 +71,7 @@ def test_phen_workflow(tmp_dir, monkeypatch, caplog, config_file):
with caplog.at_level(logging.DEBUG): with caplog.at_level(logging.DEBUG):
# validate phenotype # validate phenotype
# copy examples across # copy examples across
shutil.rmtree(phen_path / "codes") shutil.rmtree(phen_path / phen.CONCEPTS_DIR)
ex_path = Path("./examples").resolve() ex_path = Path("./examples").resolve()
for item in ex_path.iterdir(): for item in ex_path.iterdir():
source = ex_path / item.name source = ex_path / item.name
...@@ -182,7 +182,7 @@ def test_diff(tmp_dir, monkeypatch, caplog): ...@@ -182,7 +182,7 @@ def test_diff(tmp_dir, monkeypatch, caplog):
main.main() main.main()
# copy example codes # copy example codes
shutil.rmtree(phen_path / "codes") shutil.rmtree(phen_path / phen.CONCEPTS_DIR)
ex_path = Path("./examples").resolve() ex_path = Path("./examples").resolve()
for item in ex_path.iterdir(): for item in ex_path.iterdir():
source = ex_path / item.name source = ex_path / item.name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment