From 66a0b64eb6ec520c3bad8c8a88f94aea7b3af1e7 Mon Sep 17 00:00:00 2001 From: Daralynn Rhode Date: Tue, 6 Aug 2024 09:47:33 -0600 Subject: [PATCH] pre-commit passing --- imap_processing/swe/l1a/swe_science.py | 2 +- imap_processing/ultra/l1b/lookup_utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/imap_processing/swe/l1a/swe_science.py b/imap_processing/swe/l1a/swe_science.py index cd67d355c..50ee4cfdf 100644 --- a/imap_processing/swe/l1a/swe_science.py +++ b/imap_processing/swe/l1a/swe_science.py @@ -133,7 +133,7 @@ def swe_science(decom_data: list, data_version: str) -> xr.Dataset: # where 1260 = 180 x 7 CEMs # Take the "raw_counts" indices/counts mapping from # decompression_table and then reshape the return - uncompress_data_ndarray: np.ndarray = np.take(decompression_table, raw_counts) + uncompress_data_ndarray: np.ndarray = np.take(decompression_table, raw_counts) uncompress_data = uncompress_data_ndarray.reshape(180, 7) # Save raw counts data as well raw_counts = raw_counts.reshape(180, 7) diff --git a/imap_processing/ultra/l1b/lookup_utils.py b/imap_processing/ultra/l1b/lookup_utils.py index b60865e56..d490a2c2b 100644 --- a/imap_processing/ultra/l1b/lookup_utils.py +++ b/imap_processing/ultra/l1b/lookup_utils.py @@ -158,5 +158,5 @@ def get_image_params(image: str) -> np.float64: value : np.float64 Image parameter value from the CSV file. """ - value : np.float64 = _IMAGE_PARAMS_DF[image].values[0] - return value \ No newline at end of file + value: np.float64 = _IMAGE_PARAMS_DF[image].values[0] + return value