Closed ojeda-e closed 3 years ago
From what you're writing it looks to me that an IndexError is raised but that the message is not the one you were expecting.
On Jul 17, 2021, at 3:57 PM, Oliver Beckstein @.***> wrote:
From what you're writing it looks to me that an IndexError is raised but that the message is not the one you were expecting.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Sorry, I should have been tired when this happened. Never mind. Can I close this? (Sorry, unintentionally close this)
After adding PBC/coordinate wrapping and while testing the exception in line 76-77 of
surface.py
, I noticedIndexError
is not raised. Issue identified by the messageAssertionError: Regex pattern 'index is out of bounds' does not match 'index 3 is out of bounds for axis 0 with size 3'.
If the exception is not raised, should be removed. However, there must be some sort of
IndexError
orValueError
raising to notify the user there is a potential loss of information by lack of sampling.To fix this issue: