Skip to content

Commit cc0c48e

Browse files
dirac basis comments
1 parent 803850c commit cc0c48e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/aspire/basis/dirac.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,14 @@ def _evaluate_t(self, x):
6767
`self.count` and whose remaining dimensions correspond to
6868
higher dimensions of `v`.
6969
"""
70-
import pdb
71-
72-
pdb.set_trace()
70+
# flip indexing axis to the end of the shape, i.e. (n, L, L) -> (L, L, n)
7371
x = m_reshape(x.asnumpy(), new_shape=self.ndim * (self.nres,) + (x.shape[0],))
7472
x, sz_roll = unroll_dim(x, self.ndim + 1)
7573
x = m_reshape(x, new_shape=(self._sz_prod,) + x.shape[self.ndim :])
7674
v = np.zeros(shape=(self.count,) + x.shape[1:], dtype=self.dtype)
7775
v = x[self._mask, ...]
7876
v = roll_dim(v, sz_roll)
79-
77+
# returns a (_sz_prod,) array for one image, (_sz_prod, n) for n images
8078
return np.squeeze(v)
8179

8280
def expand(self, x):

0 commit comments

Comments
 (0)