Skip to content

Commit a60403e

Browse files
committed
Fix odd comment placement
1 parent 3901bd8 commit a60403e

File tree

1 file changed

+7
-7
lines changed
  • jwst/clean_flicker_noise

1 file changed

+7
-7
lines changed

jwst/clean_flicker_noise/lib.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,9 @@ def __init__(
447447
)
448448
self.data[np.isinf(self.data)] = np.nan # Restore NaNs
449449

450-
bdpx[np.logical_not(self.mask)] = (
451-
0 # We don't need to worry about non-background pixels
452-
)
450+
# We don't need to worry about non-background pixels
451+
bdpx[np.logical_not(self.mask)] = 0
452+
453453
# Also flag 4 nearest neighbors
454454
bdpx = (
455455
bdpx
@@ -536,10 +536,10 @@ def fit(self, return_fit=False, weight_fit=False):
536536

537537
# NSClean's weighting requires the Moore-Penrose inverse of A = P*B.
538538
# $A^+ = (A^H A)^{-1} A^H$
539-
_a = (
540-
p_matrix.reshape((-1, 1)) * basis
541-
) # P is diagonal. Hadamard product is most RAM efficient
542-
_a_h = np.conjugate(_a.transpose()) # Hermitian transpose of A
539+
# P is diagonal. Hadamard product is most RAM efficient
540+
_a = p_matrix.reshape((-1, 1)) * basis
541+
# Hermitian transpose of A
542+
_a_h = np.conjugate(_a.transpose())
543543
pinv_pb = np.matmul(np.linalg.inv(np.matmul(_a_h, _a)), _a_h)
544544

545545
else:

0 commit comments

Comments
 (0)