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

[WIP] Modified h5 reader for LASY #361

Open
wants to merge 4 commits into
base: development
Choose a base branch
from

Conversation

Paaaaarth
Copy link
Contributor

This pull request includes significant updates to the lasy package, particularly focusing on the handling of OpenPMD profiles and improvements to the create_grid function. The changes aim to enhance functionality and improve code clarity.

Updates to OpenPMD Profile Handling:

  • lasy/profiles/from_openpmd_profile.py: Removed the dependency on OpenPMDTimeSeries and replaced it with direct usage of openpmd_api. This change simplifies the process of reading laser field data from OpenPMD files.
  • lasy/profiles/from_openpmd_profile.py: Refactored the FromOpenPMDProfile class to remove unused parameters and streamline the initialization process. The class now directly reads data using openpmd_api and handles different field dimensions ('rt' and 'xyt').

Improvements to Utility Functions:

  • lasy/utils/laser_utils.py: Modified the create_grid function to use np.allclose instead of np.all for comparing grid axes. This change ensures that the comparisons are tolerant to small numerical differences, improving robustness.

@MaxThevenet
Copy link
Contributor

This is still WIP, right?
Can the issues addressed in #356 also be fixed as part of this PR?

@Paaaaarth
Copy link
Contributor Author

This is still WIP, right? Can the issues addressed in #356 also be fixed as part of this PR?

Yes It is still WIP. I would try to address the issues in #356 and incorporate the fixes within this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants