TNO Intern

Commit fab89ca8 authored by Zanne Korevaar's avatar Zanne Korevaar
Browse files

Merge branch '14-update-test-path-handling' into 'main'

Resolve "update test path handling"

Closes #14

See merge request !15
parents c23a55e5 d5aa8d5f
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "geoloop"
version = "1.0.1"
version = "1.0.2"
description = "This is a Python package for simulation of (deep) vertical Borehole Heat Exchanger (BHE) systems"
authors = [
    { name = "Zanne Korevaar", email = "zanne.korevaar@tno.nl" },
+0 −12
Original line number Diff line number Diff line
from pathlib import Path

repo_path = Path(__file__).parent.parent.parent

# Test directories
test_dir = repo_path / "test"
tests_input_path = test_dir / "input"
test_output_path = test_dir / "output"

# Resources directory
resources_path = repo_path / "resources"

# Dictionary of units for various parameters in the model.
units_dict = {
    "Q_b": "W",

test/paths.py

0 → 100644
+6 −0
Original line number Diff line number Diff line
from pathlib import Path

# Test directories
test_dir = Path(__file__).parent
tests_input_path = test_dir / "input"
test_output_path = test_dir / "output"
 No newline at end of file
+2 −1
Original line number Diff line number Diff line
@@ -4,10 +4,11 @@ from pathlib import Path
import numpy as np
import xarray as xr

from paths import test_dir, tests_input_path

from geoloop.configuration import SingleRunConfig, LithologyConfig, load_nested_config
from geoloop.utils.helpers import save_singlerun_results
from geoloop.bin.SingleRunSim import SingleRun
from geoloop.constants import test_dir, tests_input_path
from geoloop.geoloopcore.b2g import B2G
from geoloop.lithology.process_lithology import ProcessLithologyToThermalConductivity

+2 −1
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@ from pathlib import Path
import numpy as np
import xarray as xr

from paths import test_dir, tests_input_path

from geoloop.configuration import SingleRunConfig, load_nested_config, LithologyConfig, StochasticRunConfig
from geoloop.utils.helpers import (
    save_MCrun_results,
@@ -11,7 +13,6 @@ from geoloop.utils.helpers import (
)
from geoloop.utils.RunManager import run_models
from geoloop.bin.SingleRunSim import SingleRun
from geoloop.constants import test_dir, tests_input_path
from geoloop.geoloopcore.b2g_ana import B2G_ana
from geoloop.lithology.process_lithology import ProcessLithologyToThermalConductivity

Loading