You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just noticed that the boolean indexing on Field objects is not working. See https://numpy.org/doc/stable/user/basics.indexing.html
This is generally undesired, because it breaks the regular axes, however capping values beyond a threshold would be good thing, like
File [~/.venv/py311/lib/python3.11/site-packages/postpic/datahandling.py:2312](http://localhost:8888/home/stephan/.venv/py311/lib/python3.11/site-packages/postpic/datahandling.py#line=2311), in Field._normalize_slices(self, key)
2310 key = (key,)
2311 if len(key) != self.dimensions:
-> 2312 raise IndexError("{}D Field requires a {}-tuple of slices as index"
2313 "".format(self.dimensions, self.dimensions))
2315 return tuple(ax._normalize_slice(sl) for ax, sl in zip(self.axes, key))
IndexError: 2D Field requires a 2-tuple of slices as index
postpic version 0.5+58.g315634f
The text was updated successfully, but these errors were encountered:
just noticed that the boolean indexing on Field objects is not working. See https://numpy.org/doc/stable/user/basics.indexing.html
This is generally undesired, because it breaks the regular axes, however capping values beyond a threshold would be good thing, like
currently terminate with an error:
postpic version 0.5+58.g315634f
The text was updated successfully, but these errors were encountered: