Skip to content

Commit

Permalink
fix relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
leendertvanwolfswinkel committed Nov 29, 2024
1 parent 614b19d commit 526ba27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions utils/threedi_result_aggregation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
from osgeo import osr


from constants import (
from .constants import (
AGGREGATION_VARIABLES,
NON_TS_REDUCING_KCU,
NP_OGR_DTYPES,
EXCHANGE_LEVEL_1D2D,
THRESHOLD_PRECISION,
)
from aggregation_classes import (
from .aggregation_classes import (
Aggregation,
AggregationSign,
AggregationMethod,
Expand All @@ -39,7 +39,7 @@
VT_NODE_HYBRID,
VT_PUMP
)
from threedigrid_ogr import threedigrid_to_ogr
from .threedigrid_ogr import threedigrid_to_ogr

warnings.filterwarnings("ignore")
ogr.UseExceptions()
Expand Down Expand Up @@ -353,8 +353,7 @@ def equal(values: np.array, threshold: Union[float, np.array], precision=THRESHO
"time_above_threshold": greater,
}

if start_time is None:
start_time = 0
start_time = start_time or 0

if aggregation.method.short_name == "sum":
raw_values_per_time_interval = np.multiply(timeseries.T, tintervals).T
Expand Down
2 changes: 1 addition & 1 deletion utils/threedi_result_aggregation/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from threedigrid.admin.utils import KCUDescriptor

# local
from aggregation_classes import (
from .aggregation_classes import (
AggregationVariableList,
AggregationSign,
AggregationMethod,
Expand Down

0 comments on commit 526ba27

Please sign in to comment.