Skip to content

Commit

Permalink
satisfy the flake8
Browse files Browse the repository at this point in the history
Note sure why this wasn't failing before
  • Loading branch information
esheldon committed Oct 4, 2023
1 parent 4dbca02 commit 8f97869
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ngmix/observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,9 @@ def set_ormask(self, ormask):
ormask = np.ascontiguousarray(ormask)
assert len(ormask.shape) == 2, "ormask must be 2d"

assert (ormask.shape == image.shape),\
assert (ormask.shape == image.shape), (
"image and ormask must be same shape"
)

self._ormask = ormask

Expand Down Expand Up @@ -1006,8 +1007,9 @@ def append(self, obs_list):
An ObsList. An AssertionError will be raised if `obs_list` is not
an `ngmix.ObsList`.
"""
assert isinstance(obs_list, ObsList),\
assert isinstance(obs_list, ObsList), (
'obs_list should be of type ObsList'
)
super(MultiBandObsList, self).append(obs_list)

def get_s2n(self):
Expand Down Expand Up @@ -1092,8 +1094,9 @@ def __setitem__(self, index, obs_list):
"""
over-riding this for type safety
"""
assert isinstance(obs_list, ObsList),\
assert isinstance(obs_list, ObsList), (
'obs_list should be of type ObsList'
)
super(MultiBandObsList, self).__setitem__(index, obs_list)


Expand Down Expand Up @@ -1306,8 +1309,9 @@ def __setitem__(self, index, kobs):
"""
over-riding this for type safety
"""
assert isinstance(kobs, KObservation),\
assert isinstance(kobs, KObservation), (
'kobs should be of type KObservation'
)
super(KObsList, self).__setitem__(index, kobs)


Expand Down

0 comments on commit 8f97869

Please sign in to comment.