ERROR: ValueError: operands could not be broadcast together with shapes (3,) (2,) [enlib.enmap]
Traceback (most recent call last):
File "tests/slice.py", line 9, in <module>
smap = imap.submap(sbox)
File "/astro/u/msyriac/repos/enlib/enmap.py", line 126, in submap
ibox = self.subinds(box, inclusive)
File "/astro/u/msyriac/repos/enlib/enmap.py", line 150, in subinds
ibox[:,1] = np.minimum(ibox[:,1],self.shape[-2:])
ValueError: operands could not be broadcast together with shapes (3,) (2,)
I can't seem to be able to do a simple submap selection
results in
This bug seems to have been introduced with this commit: https://github.com/amaurea/enlib/commit/d1b91bed9e0d4fb9ec2053e43a578de7cab5e8a0
If I don't do the
cap=True
bit I get the expected behaviour.