Skip to content
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

FRQ: generalize utils.mesh_to_coords to 3D #50

Open
kay-ro opened this issue Aug 1, 2024 · 0 comments
Open

FRQ: generalize utils.mesh_to_coords to 3D #50

kay-ro opened this issue Aug 1, 2024 · 0 comments
Labels
module: utils new feature New feature release: minor Issues that need to be addressed in a minor release status: to do Issues that someone needs to work on

Comments

@kay-ro
Copy link
Member

kay-ro commented Aug 1, 2024

Proposed new feature or change:

Currently utils.mesh_to_coords() only works with two dimensions. For 3d simulations it would be useful to handle other numbers of dimensions as well.

Here is a first idea of how to generalize the function, where g=[x,y,z] is a multi-dimensional array. It should still be necessary to give x, y and z separately instead of just one array g.

positions = np.array([a.ravel() for a in g]).T
@kay-ro kay-ro added new feature New feature release: minor Issues that need to be addressed in a minor release status: to do Issues that someone needs to work on module: utils labels Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: utils new feature New feature release: minor Issues that need to be addressed in a minor release status: to do Issues that someone needs to work on
Projects
None yet
Development

No branches or pull requests

1 participant