Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pnuu committed Aug 1, 2023
1 parent 3a5daba commit ca2ae23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyresample/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class BaseDefinition:

def __init__(self, lons=None, lats=None, nprocs=1):
"""Initialize BaseDefinition."""
if type(lons) != type(lats):
if type(lons) is not type(lats):
raise TypeError('lons and lats must be of same type')
elif lons is not None:
if not isinstance(lons, (np.ndarray, DataArray)):
Expand Down
2 changes: 1 addition & 1 deletion pyresample/kd_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ def get_sample_from_neighbour_info(self, data, fill_value=np.nan):
# verify that the dims are next to each other
first_dim_idx = data.dims.index(src_geo_dims[0])
num_dims = len(src_geo_dims)
assert (data.dims[first_dim_idx:first_dim_idx + num_dims] == data_geo_dims),\
assert (data.dims[first_dim_idx:first_dim_idx + num_dims] == data_geo_dims), \
"Data's geolocation dimensions are not consecutive."

# FIXME: Can't include coordinates whose dimensions depend on the geo
Expand Down

0 comments on commit ca2ae23

Please sign in to comment.