TNO Intern

Commit 0cc0d8b6 authored by Hen Brett's avatar Hen Brett 🐔
Browse files

fixing the pythermogis import structure

parent 1e24e213
Loading
Loading
Loading
Loading
+214 B (87.8 KiB)
Loading image diff...
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ import numpy as np
from jpype.types import *

from thermogis_classes.jvm_start import start_jvm
from thermogis_classes.utc_properties import instantiate_utc_properties_builder
from pythermogis import *


class ThermoGISDoubletBenchmark(TestCase):
+3 −7
Original line number Diff line number Diff line
import shutil
import timeit
from os import path
from pathlib import Path
from unittest.case import TestCase, skip
import shutil

import numpy as np
from pygridsio.pygridsio import read_grid

from thermogis_classes.doublet import calculate_doublet_performance
from pygridsio import read_grid
from pythermogis import *


class PyThermoGIS(TestCase):
+1 −4
Original line number Diff line number Diff line
from unittest.case import TestCase
from thermogis_classes.doublet import *
from thermogis_classes.utc_properties import *


class ReadMEExamples(TestCase):

@@ -41,7 +38,7 @@ class ReadMEExamples(TestCase):
        print(results)

    def test_example_4(self):
        # from pythermogis import calculate_doublet_performance, instantiate_utc_properties_builder
        from pythermogis import calculate_doublet_performance, instantiate_utc_properties_builder
        import xarray as xr

        input_data = xr.Dataset({
+1 −2
Original line number Diff line number Diff line
@@ -3,8 +3,7 @@ from pathlib import Path
from unittest import TestCase
import xarray as xr

from thermogis_classes.doublet import calculate_doublet_performance
from thermogis_classes.utc_properties import instantiate_utc_properties_from_xml
from pythermogis import *


class UTCBuilder(TestCase):