From 386e472662746cbee24e9d0684f5ea7d0593595f Mon Sep 17 00:00:00 2001 From: zssherman Date: Mon, 21 Oct 2024 14:24:42 -0500 Subject: [PATCH] MNT: Update code to remove warnings. --- act/qc/qc_summary.py | 2 +- act/utils/data_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/act/qc/qc_summary.py b/act/qc/qc_summary.py index d96375abff..97c5f98674 100644 --- a/act/qc/qc_summary.py +++ b/act/qc/qc_summary.py @@ -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()): diff --git a/act/utils/data_utils.py b/act/utils/data_utils.py index d8c98d10b2..7b968c27f4 100644 --- a/act/utils/data_utils.py +++ b/act/utils/data_utils.py @@ -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(