Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT: New warnings on literals, and a fix for said warnings. #914

Merged
merged 1 commit into from
Mar 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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