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
Issue 443 uniform partition #444
Conversation
>>> part.cell_boundary_vecs | ||
(array([ 0. , 0.5, 1. ]), array([ 1.5 , 1.75, 2. ])) | ||
""" | ||
# np.size(None) = 1 |
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.
nitpicking: # np.size(None) == 1
Functionality i great, but I'm not sure that this should be separate from Regarding |
17118d9
to
1f6a7ee
Compare
Done with all the comments and rebased. Waiting for Travis to be happy. Now the functionality is merged into |
cell_sides=None, nodes_on_bdry=False): | ||
"""Return a partition with equally sized cells. | ||
|
||
This function offers more flexibility over `uniform_partition` in |
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.
Old comment. Should be updated with call syntax.
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.
Oops
Great changes, some minor comments then we should be fine. |
Missclick on close... |
Instead of always expecting begin, end and num_nodes, now cell_sides can be given in addition, and one of the first three parameters can be left out instead. This can be done per axis.
1f6a7ee
to
024552f
Compare
Fixed the old stuff, will merge after tests have run. |
Implements
uniform_partition_options
as mentioned in #443. The name is sub-optimal but quite clearly, the function should be separate fromuniform_partition
.Closes #443