From 8f97869817d1efc4592513f9ffda7f1a520c1ba0 Mon Sep 17 00:00:00 2001 From: Erin Sheldon Date: Wed, 4 Oct 2023 08:30:56 -0400 Subject: [PATCH] satisfy the flake8 Note sure why this wasn't failing before --- ngmix/observation.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ngmix/observation.py b/ngmix/observation.py index f4653fae..e21b5806 100644 --- a/ngmix/observation.py +++ b/ngmix/observation.py @@ -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 @@ -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): @@ -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) @@ -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)