Skip to content

Commit

Permalink
Logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Mar 27, 2024
1 parent d20466c commit 91a08dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions swiftsimio/visualisation/power_spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ def render_to_deposit(
raise AttributeError(
f'Physical quantity "{project}" is not compatible with comoving coordinates!'
)
else:
if not quantity.compatible_with_physical():
raise AttributeError(
f'Comoving quantity "{project}" is not compatible with physical coordinates!'
)
else:
if not quantity.compatible_with_physical():
raise AttributeError(
f'Comoving quantity "{project}" is not compatible with physical coordinates!'
)

# Get the box size
box_size = data.metadata.boxsize
Expand Down

0 comments on commit 91a08dd

Please sign in to comment.