From 9caca1f1d4a91bc2508b3e74846d09450975bba6 Mon Sep 17 00:00:00 2001 From: Arianna Renzini Date: Mon, 4 Mar 2024 03:48:17 -0800 Subject: [PATCH] isorting --- play.py | 14 +++++++------- population_O3.py | 20 ++++++++++---------- reweight_vs_calc.py | 18 +++++++++--------- training_omegas.py | 17 ++++++++--------- 4 files changed, 34 insertions(+), 35 deletions(-) diff --git a/play.py b/play.py index 1c9c5ef..e6ac94f 100644 --- a/play.py +++ b/play.py @@ -1,15 +1,15 @@ -from popstock.PopulationOmegaGW import PopulationOmegaGW -from gwpopulation.models.mass import SinglePeakSmoothedMassDistribution -from gwpopulation.models.redshift import MadauDickinsonRedshift +import json -import numpy as np import bilby +import matplotlib.pyplot as plt +import numpy as np import tqdm -import json - from bilby.core.prior import Interped -import matplotlib.pyplot as plt from bilby.core.utils import infer_args_from_function_except_n_args +from gwpopulation.models.mass import SinglePeakSmoothedMassDistribution +from gwpopulation.models.redshift import MadauDickinsonRedshift + +from popstock.PopulationOmegaGW import PopulationOmegaGW """ *** diff --git a/population_O3.py b/population_O3.py index 4d28f89..1ac42fe 100755 --- a/population_O3.py +++ b/population_O3.py @@ -18,24 +18,24 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. import sys -sys.path.append("/home/arianna.renzini/PROJECTS/popstock") -from popstock.PopulationOmegaGW import PopulationOmegaGW -from gwpopulation.models.mass import SinglePeakSmoothedMassDistribution -from gwpopulation.models.redshift import MadauDickinsonRedshift -from gwpopulation.utils import xp +sys.path.append("/home/arianna.renzini/PROJECTS/popstock") -import argparse -import numpy as np -import bilby -import tqdm +import argparse import json - import os from pathlib import Path +import bilby +import numpy as np +import tqdm from bilby.core.prior import Interped from bilby.core.utils import infer_args_from_function_except_n_args +from gwpopulation.models.mass import SinglePeakSmoothedMassDistribution +from gwpopulation.models.redshift import MadauDickinsonRedshift +from gwpopulation.utils import xp + +from popstock.PopulationOmegaGW import PopulationOmegaGW """ *** diff --git a/reweight_vs_calc.py b/reweight_vs_calc.py index 1bc1a51..5e68513 100755 --- a/reweight_vs_calc.py +++ b/reweight_vs_calc.py @@ -1,22 +1,22 @@ #!/bin/env python import sys -sys.path.append("/home/arianna.renzini/PROJECTS/popstock") -from popstock.PopulationOmegaGW import PopulationOmegaGW -from gwpopulation.models.mass import SinglePeakSmoothedMassDistribution -from gwpopulation.models.redshift import MadauDickinsonRedshift +sys.path.append("/home/arianna.renzini/PROJECTS/popstock") -import argparse -import numpy as np -import bilby -import tqdm +import argparse import json - import os from pathlib import Path +import bilby +import numpy as np +import tqdm from bilby.core.prior import Interped from bilby.core.utils import infer_args_from_function_except_n_args +from gwpopulation.models.mass import SinglePeakSmoothedMassDistribution +from gwpopulation.models.redshift import MadauDickinsonRedshift + +from popstock.PopulationOmegaGW import PopulationOmegaGW """ *** diff --git a/training_omegas.py b/training_omegas.py index 0937e0a..9b2e4a8 100755 --- a/training_omegas.py +++ b/training_omegas.py @@ -23,22 +23,21 @@ sys.path.append(os.getcwd()) -from popstock.PopulationOmegaGW import PopulationOmegaGW -from gwpopulation.models.mass import SinglePeakSmoothedMassDistribution -from gwpopulation.models.redshift import MadauDickinsonRedshift -from gwpopulation.utils import xp - import argparse -import numpy as np -import bilby -import tqdm import json - import os from pathlib import Path +import bilby +import numpy as np +import tqdm from bilby.core.prior import Interped from bilby.core.utils import infer_args_from_function_except_n_args +from gwpopulation.models.mass import SinglePeakSmoothedMassDistribution +from gwpopulation.models.redshift import MadauDickinsonRedshift +from gwpopulation.utils import xp + +from popstock.PopulationOmegaGW import PopulationOmegaGW """ ***