Skip to content

Commit

Permalink
Merge pull request #146 from chrishavlin/clean_grid_gen
Browse files Browse the repository at this point in the history
simplify complex index
  • Loading branch information
chrishavlin committed Aug 28, 2024
2 parents 90b6352 + 295356d commit 36d697b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/yt_napari/_model_ingestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 36d697b

Please sign in to comment.