From 295356d515d25d12e76e9400ec705784403837a8 Mon Sep 17 00:00:00 2001 From: chavlin Date: Wed, 28 Aug 2024 09:26:41 -0500 Subject: [PATCH] simplify complex index --- src/yt_napari/_model_ingestor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/yt_napari/_model_ingestor.py b/src/yt_napari/_model_ingestor.py index 06d7ec5..2ae50c8 100644 --- a/src/yt_napari/_model_ingestor.py +++ b/src/yt_napari/_model_ingestor.py @@ -47,9 +47,9 @@ def _get_covering_grid( def _get_region_frb(ds, LE, RE, res): frb = ds.r[ - LE[0] : RE[0] : complex(0, res[0]), # noqa: E203 - LE[1] : RE[1] : complex(0, res[1]), # noqa: E203 - LE[2] : RE[2] : complex(0, res[2]), # noqa: E203 + LE[0] : RE[0] : res[0] * 1j, # noqa: E203 + LE[1] : RE[1] : res[1] * 1j, # noqa: E203 + LE[2] : RE[2] : res[2] * 1j, # noqa: E203 ] return frb