This PR changes the output of get_grid_{x,y,z} to return unique coordinate values. Currently, the length of the output array is equal to get_grid_size, which is the product of the values of get_grid_shape. However, for uniform_rectilinear grids, we'd expect the array sizes to match the shape of the a given dimension, rather than the entire space.
@jduckerOWP
Changes
Changes get_grid_{x,y,z} to apply np.unique to grid coordinates if grid_type is 'gridded'.
Checklist
[X] PR has an informative and human-readable title
[X] Changes are limited to a single goal (no scope creep)
[X] Code can be automatically merged (no conflicts)
[X] Code follows project standards (link if applicable)
[X] Passes all existing automated tests
[X] Any change in functionality is tested
[X] New functions are documented (with a description, list of inputs, and expected output)
[X] Placeholder code is flagged / future todos are captured in comments
[X] Visually tested in supported browsers and devices (see checklist below :point_down:)
[X] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
[X] Reviewers requested with the Reviewers tool :arrow_right:
This PR changes the output of
get_grid_{x,y,z}
to return unique coordinate values. Currently, the length of the output array is equal toget_grid_size
, which is the product of the values ofget_grid_shape
. However, for uniform_rectilinear grids, we'd expect the array sizes to match the shape of the a given dimension, rather than the entire space.@jduckerOWP
Changes
get_grid_{x,y,z}
to applynp.unique
to grid coordinates if grid_type is 'gridded'.Checklist