From 30cbc4ae66924002fa9c2ddae211c7be69df0cad Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Tue, 14 May 2024 11:11:57 +0000 Subject: [PATCH] [pre-commit.ci lite] apply automatic fixes --- src/adler/adler.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/adler/adler.py b/src/adler/adler.py index bdd8062..6829d9e 100644 --- a/src/adler/adler.py +++ b/src/adler/adler.py @@ -23,16 +23,15 @@ def runAdler(cli_args): logger.info("Calculating phase curves...") # now let's do some phase curves! - N_pc_fit = 5 # minimum number of data points to fit phase curve + N_pc_fit = 5 # minimum number of data points to fit phase curve # # operate on each filter in turn for filt in planetoid.filter_list: - print("fit {} filter data".format(filt)) - + # get the filter SSObject metadata sso = planetoid.SSObject_in_filter(filt) - + # get the LSST phase curve filter model pc = PhaseCurve( abs_mag=sso.H * u.mag, @@ -41,7 +40,7 @@ def runAdler(cli_args): ) print(pc) print(pc.abs_mag, pc.phase_param) - + # get the filter observations obs = planetoid.observations_in_filter(filt) alpha = obs.phaseAngle * u.deg @@ -56,16 +55,13 @@ def runAdler(cli_args): print("number of past obs = {}".format(sum(obs_mask))) print("number of tonight's obs = {}".format(sum(~obs_mask))) - if sum(obs_mask)