From a6cbfe2fbcaa8208a43704100e85c6c9b25f895a Mon Sep 17 00:00:00 2001 From: Camilo Diaz Date: Thu, 25 Jan 2024 16:57:49 -0500 Subject: [PATCH] patching the file before process starts --- .github/workflows/test-B01_SL_load_single_file.yml | 12 ++++++------ .../ICEsat2_SI_tools/angle_optimizer.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-B01_SL_load_single_file.yml b/.github/workflows/test-B01_SL_load_single_file.yml index 9c328532..8066a0ba 100644 --- a/.github/workflows/test-B01_SL_load_single_file.yml +++ b/.github/workflows/test-B01_SL_load_single_file.yml @@ -23,6 +23,12 @@ jobs: run: pip install . - name: List dependencies run: pip list + - name: path minimize function to avoid crahs on CI + run: | + git apply angle_optimizer.patch -v + - name: print angle_optimzer pathed file + run: | + cat src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py - name: first step B01_SL_load_single_file run: python src/icesat2_tracks/analysis_db/B01_SL_load_single_file.py 20190502052058_05180312_005_01 SH_testSLsinglefile2 True - name: second step make_spectra @@ -31,11 +37,5 @@ jobs: run: python src/icesat2_tracks/analysis_db/B03_plot_spectra_ov.py SH_20190502_05180312 SH_testSLsinglefile2 True - name: fourth step IOWAGA thredds run: python src/icesat2_tracks/analysis_db/A02c_IOWAGA_thredds_prior.py SH_20190502_05180312 SH_testSLsinglefile2 True - # - name: path minimize function to avoid crahs on CI - # run: | - # git apply angle_optimizer.patch -v - # - name: print angle_optimzer pathed file - # run: | - # cat src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py - name: Fifth step B04_angle run: python src/icesat2_tracks/analysis_db/B04_angle.py SH_20190502_05180312 SH_testSLsinglefile2 True diff --git a/src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py b/src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py index 014be176..fa167fcc 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 @@ 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,nan_policy='omit' , **kargs) + nwalkers=self.nwalkers, steps=steps, pos= self.seeds, **kargs) if verbose: print(self.LM.report_fit(self.fitter)) print('results at self.fitter')