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

Python Elements: .to_dict() #853

Open
ax3l opened this issue Feb 20, 2025 · 0 comments
Open

Python Elements: .to_dict() #853

ax3l opened this issue Feb 20, 2025 · 0 comments
Assignees
Labels
component: elements Elements/external fields component: python Python bindings enhancement New feature or request

Comments

@ax3l
Copy link
Member

ax3l commented Feb 20, 2025

It would be nice if we can quickly/easily serialize our Python elements by exposing all their properties as a dictionary, e.g., via a .to_dict() method.

That way, one can procedurally generate lattices and then export their properties for checks/re-generation.

(We will get serialization/deserialization "for free" once we have PALS implemented via https://github.com/campa-consortium/pals-python.)

@ax3l ax3l added component: elements Elements/external fields component: python Python bindings enhancement New feature or request labels Feb 20, 2025
@ax3l ax3l added this to the Advanced Methods (SciDAC-5) milestone Feb 20, 2025
@ax3l ax3l self-assigned this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: elements Elements/external fields component: python Python bindings enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant