Skip to content

Commit

Permalink
fix issues with decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
freemansw1 committed Mar 13, 2024
1 parent e3c1414 commit 3bc47ca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tobac/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ def calculate_areas_2Dlatlon(_2Dlat_coord, _2Dlon_coord):
return area


@decorators.xarray_to_iris
@decorators.xarray_to_iris()
def calculate_area(features, mask, method_area=None):
"""Calculate the area of the segments for each feature.
Expand Down
2 changes: 1 addition & 1 deletion tobac/feature_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ def feature_detection_multithreshold_timestep(
return features_thresholds


@decorators.xarray_to_iris
@decorators.xarray_to_iris()
def feature_detection_multithreshold(
field_in: iris.cube.Cube,
dxy: float = None,
Expand Down
4 changes: 2 additions & 2 deletions tobac/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def segmentation_2D(
)


@decorators.xarray_to_iris
@decorators.xarray_to_iris()
def segmentation_timestep(
field_in: iris.cube.Cube,
features_in: pd.DataFrame,
Expand Down Expand Up @@ -1117,7 +1117,7 @@ def check_add_unseeded_across_bdrys(
return markers_out


@decorators.xarray_to_iris
@decorators.xarray_to_iris()
def segmentation(
features: pd.DataFrame,
field: iris.cube.Cube,
Expand Down
2 changes: 1 addition & 1 deletion tobac/utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def get_bounding_box(x, buffer=1):
return bbox


@decorators.xarray_to_iris
@decorators.xarray_to_iris()
def get_spacings(
field_in, grid_spacing=None, time_spacing=None, average_method="arithmetic"
):
Expand Down

0 comments on commit 3bc47ca

Please sign in to comment.