diff --git a/chandra_aca/aca_image.py b/chandra_aca/aca_image.py index 2fef721..4565212 100644 --- a/chandra_aca/aca_image.py +++ b/chandra_aca/aca_image.py @@ -43,7 +43,6 @@ def _operator_factory(operator, inplace=False): inplace_op = op if inplace else getattr(np.ndarray, "__i{}__".format(operator)) def _operator(self, other): - if isinstance(other, ACAImage) and (other._aca_coords or self._aca_coords): # If inplace then work on the original self, else use a copy out = self if inplace else self.copy() @@ -61,7 +60,6 @@ def _operator(self, other): other.col0 + sz_c1 - self.col0, ] ): - dr = other.row0 - self.row0 dc = other.col0 - self.col0 @@ -133,7 +131,6 @@ def aca(self): return obj def __new__(cls, *args, **kwargs): - meta = kwargs.pop("meta", {}) # Set default row0 and col0 to 0 (if not already in meta), and @@ -462,7 +459,6 @@ def flicker_update(self, dt, use_numba=True): self._flicker_update_vectorized(dt) def _flicker_update_vectorized(self, dt): - self.flicker_times[self.flicker_mask_vals] -= dt # When flicker_times < 0 that means a flicker occurs diff --git a/chandra_aca/tests/test_maude_decom.py b/chandra_aca/tests/test_maude_decom.py index 48428d3..2481f37 100755 --- a/chandra_aca/tests/test_maude_decom.py +++ b/chandra_aca/tests/test_maude_decom.py @@ -632,7 +632,6 @@ def test_dynbgd_decom(): raw_frames[key], combine=True, start=start, stop=stop ) for slot in range(8): - assert np.all( partial_packets[key][ "TIME", "VCDUCTR", "IMGTYPE", "BGDTYP", "PIXTLM" diff --git a/chandra_aca/transform.py b/chandra_aca/transform.py index 370d4e2..24a121e 100644 --- a/chandra_aca/transform.py +++ b/chandra_aca/transform.py @@ -212,7 +212,6 @@ def yagzag_to_pixels(yang, zang, allow_bad=False, pix_zero_loc="edge"): def _poly_convert(y, z, coeffs, t_aca=None): - # Convert to avoid overflow errors with the polys on int32 y = np.asarray(y, dtype=np.float64) z = np.asarray(z, dtype=np.float64)