Skip to content

Commit

Permalink
Remove min max attributes for compute_MVBS (#1380)
Browse files Browse the repository at this point in the history
* remove min max attributes

* remove second actual_range calculation
  • Loading branch information
ctuguinay authored Sep 3, 2024
1 parent 3378133 commit d5732de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions echopype/commongrid/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,6 @@ def compute_MVBS(
"binning_mode": "physical units",
"range_meter_interval": str(range_bin) + "m",
"ping_time_interval": ping_time_bin,
"actual_range": [
round(float(ds_MVBS["Sv"].min().values), 2),
round(float(ds_MVBS["Sv"].max().values), 2),
],
}
)

Expand Down
4 changes: 0 additions & 4 deletions echopype/commongrid/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,6 @@ def _set_var_attrs(da, long_name, units, round_digits, standard_name=None):
da.attrs = {
"long_name": long_name,
"units": units,
"actual_range": [
round(float(da.min().values), round_digits),
round(float(da.max().values), round_digits),
],
}
if standard_name:
da.attrs["standard_name"] = standard_name
Expand Down

0 comments on commit d5732de

Please sign in to comment.