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] openPMD: Group-Based Encoding #222

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lasy/profiles/from_openpmd_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class FromOpenPMDProfile(FromArrayProfile):
prefix : string
Prefix of the openPMD file from which the envelope is read.
Only used when envelope=True.
The provided iteration is read from <path>/<prefix>_%T.h5.
The provided iteration is read from <path>/<prefix>.h5.

theta : float or None, optional
Only used if the openPMD input is in thetaMode geometry.
Expand Down Expand Up @@ -102,7 +102,7 @@ def __init__(
grid, omg0 = field_to_envelope(grid, dim, phase_unwrap_nd)
array = grid.field[0]
else:
s = io.Series(path + "/" + prefix + "_%T.h5", io.Access.read_only)
s = io.Series(path + "/" + prefix + ".h5", io.Access.read_only)
it = s.iterations[iteration]
omg0 = it.meshes["laserEnvelope"].get_attribute("angularFrequency")
array = F
Expand Down
2 changes: 1 addition & 1 deletion lasy/utils/openpmd_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def write_to_openpmd_file(
array = grid.field

# Create file
series = io.Series("{}_%05T.{}".format(file_prefix, file_format), io.Access.create)
series = io.Series("{}.{}".format(file_prefix, file_format), io.Access.create)
series.set_software("lasy", lasy_version)

i = series.iterations[0]
Expand Down
Loading