From f0c1aea2b33e0c9383af71a57e44f40ff0468401 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins <jrollins@finestructure.net> Date: Tue, 28 Aug 2018 21:13:35 -0700 Subject: [PATCH] permute arguments to noise_calc, for consistency with all other functions All noise calculation functions in pygwinc take the arguments (freq, ifo) in that order. It's annoying that for some reason this one is different. --- gwinc/gwinc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gwinc/gwinc.py b/gwinc/gwinc.py index 7780e49d..eb6ba82e 100644 --- a/gwinc/gwinc.py +++ b/gwinc/gwinc.py @@ -9,7 +9,7 @@ from . import noise from .plot import plot_noise -def noise_calc(ifo, f): +def noise_calc(f, ifo): """Calculate all IFO noises and return as dict Assumes ifo has already been run through precompIFO(). @@ -105,7 +105,7 @@ def gwinc(freq, ifoin, source=None, plot=False, PRfixed=True): pass #warning(['Thermal lensing limits input power to ' num2str(pbs/prfactor, 3) ' W']); - noises = noise_calc(ifo, freq) + noises = noise_calc(freq, ifo) #TODO decide if all this below this should remain, since it is already inside of __main__ -- GitLab