Skip to content

Commit

Permalink
Merge pull request #55 from vincelhx/branchTest
Browse files Browse the repository at this point in the history
handle NaN incidences
  • Loading branch information
agrouaze authored Sep 13, 2023
2 parents e766f13 + 93afe64 commit 8615d87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xsarsea/windspeed/windspeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def __invert_from_model_1d(inc_1d, sigma0_co_db_1d, sigma0_cr_db_1d, dsig_cr_1d,
if np.isnan(one_inc):
out_co[i] = np.nan
out_cr[i] = np.nan
return None
continue

if not np.isnan(one_sigma0_co_db):
# copol inversion available
Expand Down Expand Up @@ -243,7 +243,7 @@ def __invert_from_model_1d(inc_1d, sigma0_co_db_1d, sigma0_cr_db_1d, dsig_cr_1d,

# build a vectorized function from __invert_from_gmf_scalar
debug = sys.gettrace()
# debug = True # force pure python
# debug = True # force pure python
# debug = False # force numba.guvectorize
if debug:
logger.debug('using __invert_from_model_1d in pure python mode (debug)')
Expand Down

0 comments on commit 8615d87

Please sign in to comment.