Skip to content

Commit

Permalink
FIX: Update data utils and plot_qc to fix issues with new environment.
Browse files Browse the repository at this point in the history
zssherman committed Oct 21, 2024
1 parent 184aaf0 commit e6fcf96
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions act/utils/data_utils.py
Original file line number Diff line number Diff line change
@@ -112,6 +112,7 @@ def change_units(
self._ds[var_name].attrs = attrs
except (
KeyError,
TypeError,
pint.errors.DimensionalityError,
pint.errors.UndefinedUnitError,
np._core._exceptions.UFuncTypeError,
2 changes: 1 addition & 1 deletion docs/source/_static/act-theme.css
Original file line number Diff line number Diff line change
@@ -46,4 +46,4 @@ div[class^="highlight"] a {

.bd-sidebar-secondary div {
border-left: none;
}
}
2 changes: 1 addition & 1 deletion examples/qc/plot_qc_example.py
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@
diff = np.diff(data)
max_difference = 0.04
data = np.ma.masked_greater(diff, max_difference)
index = np.where(data.mask is True)[0]
index = np.where(data.mask == True)[0]
result = ds.qcfilter.add_test(
var_name,
index=index,

0 comments on commit e6fcf96

Please sign in to comment.