Skip to content

Commit c6e508c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bb12027 commit c6e508c

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

imap_processing/ialirt/l0/process_swapi.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,18 @@ def process_swapi_ialirt(
325325
)
326326

327327
# replace nans (resulting from geometric means that include fill values) with fill values
328-
avg_pseudo_proton_speed, avg_pseudo_proton_density, avg_pseudo_proton_temperature = np.nan_to_num((
328+
(
329329
avg_pseudo_proton_speed,
330330
avg_pseudo_proton_density,
331-
avg_pseudo_proton_temperature
332-
), nan=FILLVAL_FLOAT32)
331+
avg_pseudo_proton_temperature,
332+
) = np.nan_to_num(
333+
(
334+
avg_pseudo_proton_speed,
335+
avg_pseudo_proton_density,
336+
avg_pseudo_proton_temperature,
337+
),
338+
nan=FILLVAL_FLOAT32,
339+
)
333340

334341
swapi_data.append(
335342
_populate_instrument_header_items(met)

imap_processing/tests/ialirt/unit/test_process_swapi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ def test_process_swapi_ialirt(
182182
)
183183

184184

185-
186185
def test_count_rate():
187186
"""Use random realistic values to test for expected output of count_rate()."""
188187

0 commit comments

Comments
 (0)