-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch angle_optimizer to avoid CI crash on step5 test
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py b/src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py | ||
index fa167fc..014be17 100644 | ||
--- a/src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py | ||
+++ b/src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py | ||
@@ -208,7 +208,7 @@ class sample_with_mcmc: | ||
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') |