Skip to content

Commit

Permalink
add nan_polocy to omit nans in fitting model function
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilo9999 committed Jan 25, 2024
1 parent 08feb9c commit f4d808e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def sample(self, fitting_args= None , method='emcee', steps=100, verbose= True,
fitting_args, fitting_kargs = self.fitting_args, self.fitting_kargs
self.fitter = self.LM.minimize(self.objective_func, self.params, method=method,
args=fitting_args, kws=fitting_kargs ,
nwalkers=self.nwalkers, steps=steps, pos= self.seeds, **kargs)
nwalkers=self.nwalkers, steps=steps, pos= self.seeds,nan_policy='omit' , **kargs)
if verbose:
print(self.LM.report_fit(self.fitter))
print('results at self.fitter')
Expand Down

0 comments on commit f4d808e

Please sign in to comment.