Skip to content

Commit

Permalink
Merge pull request #914 from zssherman/aliteral_fix
Browse files Browse the repository at this point in the history
MNT: New warnings on literals, and a fix for said warnings.
  • Loading branch information
zssherman authored Mar 23, 2020
2 parents ea26713 + 7fb28b3 commit f4cb0bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyart/aux_io/kazr_spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _get_spectra(xrobj, time):
len(xrobj.speclength.values)))
the_spectra_locs[np.isnan(the_spectra_locs)] = -9999.0
for i, locs in enumerate(the_spectra_locs):
if locs is not -9999.0:
if locs != -9999.0:
the_spectra_loc[i, :] = xrobj.spectra.values[int(locs), :]
else:
the_spectra_loc[i, :] = np.nan*np.ones(len(
Expand Down
4 changes: 2 additions & 2 deletions pyart/correct/phase_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def get_phidp_unf(radar, ncp_lev=0.4, rhohv_lev=0.6, debug=False, ncpts=20,
# print x_ma.mask
c = 1 # also do nothing
x_ma.mask = True
if 'nowrap' is not None:
if nowrap is not None:
# Start the unfolding a bit later in order to avoid false
# jumps based on clutter
unwrapped = copy.deepcopy(x_ma)
Expand Down Expand Up @@ -1428,7 +1428,7 @@ def get_phidp_unf_gf(radar, gatefilter, debug=False, ncpts=2, sys_phase=None,
except AttributeError:
c = 1 # also do nothing
x_ma.mask = True
if 'nowrap' is not None:
if nowrap is not None:
# Start the unfolding a bit later in order to avoid false
# jumps based on clutter
unwrapped = copy.deepcopy(x_ma)
Expand Down

0 comments on commit f4cb0bd

Please sign in to comment.