From a224c194165d3e75709f4c167844b8fa840055e4 Mon Sep 17 00:00:00 2001 From: jrob93 Date: Thu, 6 Jun 2024 15:52:17 +0100 Subject: [PATCH] update PhaseCurve parameter names --- src/adler/adler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/adler/adler.py b/src/adler/adler.py index 2987cc6..4cbca5d 100644 --- a/src/adler/adler.py +++ b/src/adler/adler.py @@ -100,8 +100,8 @@ def runAdler(cli_args): # initial simple phase curve filter model with fixed G12 pc = PhaseCurve( - abs_mag=sso.H * u.mag, - phase_param=0.62, + H=sso.H * u.mag, + phase_parameter_1=0.62, model_name="HG12_Pen16", ) @@ -168,15 +168,15 @@ def runAdler(cli_args): # if sum(obs_mask) < N_pc_fit: # # use an assumed value of G12 until more data is available - # pc_fit = PhaseCurve(abs_mag=sso.H * u.mag, phase_param=0.62, model_name="HG12_Pen16") + # pc_fit = PhaseCurve(H=sso.H * u.mag, phase_parameter_1=0.62, model_name="HG12_Pen16") # else: # # do a simple HG12_Pen16 fit to the past data # pc_fit = pc.FitModel(alpha[obs_mask], red_mag[obs_mask], mag_err[obs_mask]) # pc_fit = pc.InitModelSbpy(pc_fit) # print(pc_fit) - # print(pc_fit.abs_mag) - # print(pc_fit.phase_param) + # print(pc_fit.H) + # print(pc_fit.phase_parameter_1) # # now check if the new observations are outlying # alpha_new = alpha[~obs_mask]