Skip to content

Commit

Permalink
MNT: Update code to remove warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Oct 21, 2024
1 parent 5a2ae3d commit 386e472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion act/qc/qc_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def create_qc_summary(

history_value = (
f"Quality control summary implemented by ACT-{version} at "
f"{datetime.datetime.utcnow().replace(microsecond=0)} UTC"
f"{datetime.datetime.now(datetime.timezone.utc).replace(microsecond=0)} UTC"
)

if 'history' in list(return_ds.attrs.keys()):
Expand Down
2 changes: 1 addition & 1 deletion act/utils/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def change_units(
KeyError,
pint.errors.DimensionalityError,
pint.errors.UndefinedUnitError,
np.core._exceptions.UFuncTypeError,
np._core._exceptions.UFuncTypeError,
):
if raise_error:
raise ValueError(
Expand Down

0 comments on commit 386e472

Please sign in to comment.