-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added a check for n dimensional field in point_columns #524
base: master
Are you sure you want to change the base?
Conversation
PR Description updated to latest commit (2016596) |
PR Review
Code feedback:
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot rely on self._point_columns
for this test. Instead we should use the shape of points for this check. Further details are best discussed in person.
Type
bug_fix
Description
point_columns
indiscretisedfield/line.py
to dynamically check the length against_point_columns
.point_columns
with a list length that matches the actual dimensions of the field, enhancing robustness.Changes walkthrough
line.py
Update validation logic in point_columns setter
discretisedfield/line.py
point_columns
to checkagainst the length of
_point_columns
instead of a fixed value.point_columns
is dynamicand adapts to the actual dimensions of the field.
closes #389