File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 4040from astropy .coordinates import SkyCoord
4141import astropy .units as u
4242
43+ from asteroid_spinprops .ssolib import dataprep
4344from asteroid_spinprops .ssolib import modelfit
4445
4546import logging
@@ -525,16 +526,23 @@ def extract_ssoft_parameters(
525526 colname : [pdf [colname ].to_numpy ()] for colname in pdf .columns
526527 })
527528
529+ clean_data , _ = dataprep .errorbar_filtering (
530+ data = pdf_transposed , mlimit = 0.7928
531+ )
532+ clean_data , _ = dataprep .projection_filtering (data = clean_data )
533+ clean_data , _ = dataprep .iterative_filtering (data = clean_data )
534+
528535 # parameter estimation
529536 outdic = modelfit .get_fit_params (
530- pdf_transposed ,
537+ clean_data ,
531538 flavor = model_name ,
532539 shg1g2_constrained = True ,
533540 period_blind = True ,
534541 pole_blind = True ,
535542 alt_spin = False ,
536543 period_in = None ,
537544 terminator = False ,
545+ period_quality_flag = True ,
538546 )
539547
540548 # replace names inplace for the remaning computation
You can’t perform that action at this time.
0 commit comments