ChristopherMayes / openPMD-beamphysics

Tools for analyzing and viewing particle data in the openPMD standard, extension beamphysics.
https://christophermayes.github.io/openPMD-beamphysics/
Apache License 2.0
16 stars 15 forks source link

Output to parallel elegant format (binary) #11

Open nneveu opened 3 years ago

nneveu commented 3 years ago

Feature request: add an option that allows elegant_write() to dump a binary format that works in parallel elegant Something along the lines of what the pysdds module does:

import sdds pysdds = sdds.SDDS(0) pysdds.load(outfile) pysdds.mode = pysdds.SDDS_BINARY #to convert from ASCII to BINARY, need binary for pelegant pysdds.save(outfile)

sdds data module is needed from elegant page: https://www3.aps.anl.gov/forums/elegant/viewtopic.php?f=11&t=803&p=3292&hilit=sddsdatamodule#p3292

ken-lauer commented 5 days ago

The sdds Python module is now available on conda-forge as part of the elegant package. So perhaps we could address this request at some point (@ChristopherMayes?)