Skip to content

Commit

Permalink
Merge pull request #1009 from zssherman/warnings_fixes
Browse files Browse the repository at this point in the history
STY: Fixes for PEP8 warnings.
  • Loading branch information
zssherman authored Sep 9, 2021
2 parents 416696f + 9ac01bc commit 40e1978
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyart/core/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def to_xarray(self):
'y' : (['y'], y),
'x' : (['x'], x)})
for meta in list(self.fields[field].keys()):
if meta is not 'data':
if meta != 'data':
data.attrs.update({meta: self.fields[field][meta]})

ds[field] = data
Expand Down
2 changes: 1 addition & 1 deletion pyart/correct/attenuation.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def get_mask_fzl(radar, fzl=None, doc=None, min_temp=0., max_h_iso0=0.,
warn('Freezing level height not specified. ' +
'Using default '+str(fzl)+' [m]')
end_gate_arr = np.zeros(radar.nrays, dtype='int32')
mask_fzl = np.zeros((radar.nrays, radar.ngates), dtype=np.bool)
mask_fzl = np.zeros((radar.nrays, radar.ngates), dtype=np.bool_)
for sweep in range(radar.nsweeps):
end_gate, start_ray, end_ray = (
det_process_range(radar, sweep, fzl, doc=doc))
Expand Down

0 comments on commit 40e1978

Please sign in to comment.