From 91a08ddd7124451b1b91ea44bafe00a4bde29fa2 Mon Sep 17 00:00:00 2001 From: Josh Borrow Date: Wed, 27 Mar 2024 13:37:18 +0000 Subject: [PATCH] Logic fix --- swiftsimio/visualisation/power_spectrum.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/swiftsimio/visualisation/power_spectrum.py b/swiftsimio/visualisation/power_spectrum.py index f3f33138..c4f1edf7 100644 --- a/swiftsimio/visualisation/power_spectrum.py +++ b/swiftsimio/visualisation/power_spectrum.py @@ -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