Skip to content

Commit

Permalink
Remove model checker
Browse files Browse the repository at this point in the history
  • Loading branch information
leendertvanwolfswinkel committed Dec 23, 2024
1 parent 13ff965 commit 320abce
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
Dependency("alembic", "alembic", "==1.8.*", False),
Dependency("threedigrid", "threedigrid", "==2.2.*", False),
Dependency("threedi-schema", "threedi_schema", "==0.230.0.dev0", False),
Dependency("threedi-modelchecker", "threedi_modelchecker", "==2.14.1", False),
# Dependency("threedi-modelchecker", "threedi_modelchecker", "==2.14.1", False),
Dependency("threedidepth", "threedidepth", "==0.6.3", False),
Dependency("click", "click", ">=8.0", False),
Dependency("packaging", "packaging", "", False),
Expand Down
4 changes: 2 additions & 2 deletions processing/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
RastersToNetCDFAlgorithm,
)
from threedi_results_analysis.processing.schematisation_algorithms import (
CheckSchematisationAlgorithm,
# CheckSchematisationAlgorithm,
MigrateAlgorithm,
# ImportSufHydAlgorithm,
# GuessIndicatorAlgorithm,
Expand Down Expand Up @@ -47,7 +47,7 @@ def loadAlgorithms(self, *args, **kwargs):
self.addAlgorithm(ThreediDepthAlgorithm())
self.addAlgorithm(ThreediMaxDepthAlgorithm())
# self.addAlgorithm(DWFCalculatorAlgorithm())
self.addAlgorithm(CheckSchematisationAlgorithm())
# self.addAlgorithm(CheckSchematisationAlgorithm())
self.addAlgorithm(MigrateAlgorithm())
# self.addAlgorithm(ImportHydXAlgorithm())
self.addAlgorithm(ThreeDiConvertToGpkgAlgorithm())
Expand Down
28 changes: 14 additions & 14 deletions tests/test_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,20 @@ def test_install_dependencies(tmpdir):
dependencies.ensure_everything_installed()


def test_uninstall_dependency(tmpdir, monkeypatch):
python_path = os.getenv("PYTHONPATH", "")
new_python_path = f"{python_path}:{tmpdir}"
monkeypatch.setenv("PYTHONPATH", new_python_path)

small_dependencies = [
Dependency("threedi-modelchecker", "threedi_modelchecker", ">=1.0.0", False)
]
dependencies._install_dependencies(
small_dependencies, target_dir=tmpdir
)
dependencies._uninstall_dependency(small_dependencies[0])
for directory in os.listdir(tmpdir):
assert "threedi_modelchecker" not in directory
# def test_uninstall_dependency(tmpdir, monkeypatch):
# python_path = os.getenv("PYTHONPATH", "")
# new_python_path = f"{python_path}:{tmpdir}"
# monkeypatch.setenv("PYTHONPATH", new_python_path)

# small_dependencies = [
# Dependency("threedi-modelchecker", "threedi_modelchecker", ">=1.0.0", False)
# ]
# dependencies._install_dependencies(
# small_dependencies, target_dir=tmpdir
# )
# dependencies._uninstall_dependency(small_dependencies[0])
# for directory in os.listdir(tmpdir):
# assert "threedi_modelchecker" not in directory


def test_install_dependencies_with_error(tmpdir):
Expand Down

0 comments on commit 320abce

Please sign in to comment.