pyOPALTools issueshttps://gitlab.psi.ch/OPAL/pyOPALTools/-/issues2021-06-10T17:18:13+02:00https://gitlab.psi.ch/OPAL/pyOPALTools/-/issues/100Undulator output parser + example2021-06-10T17:18:13+02:00snuverink_jjochem.snuverink@psi.chUndulator output parser + exampleAs discussed in the OPAL developer meeting, it would be nice to also parse and analyse the Undulator output file.
@albajacas_a has an example that can be started from. I can help with the implementation in pyOPALTools.As discussed in the OPAL developer meeting, it would be nice to also parse and analyse the Undulator output file.
@albajacas_a has an example that can be started from. I can help with the implementation in pyOPALTools.snuverink_jjochem.snuverink@psi.chalbajacas_aarnau.albajacas@psi.chsnuverink_jjochem.snuverink@psi.chhttps://gitlab.psi.ch/OPAL/pyOPALTools/-/issues/44Parse input distributions2019-08-06T09:46:38+02:00ext-neveu_nParse input distributionsI'd like to add a small distribution reader, something like this:
```
> def emitted_dist(filename, names=['x', 'px','y','py','t','pz']):
> '''Read in particle distribution used
> in OPAL-T simulation. Used to describe the ...I'd like to add a small distribution reader, something like this:
```
> def emitted_dist(filename, names=['x', 'px','y','py','t','pz']):
> '''Read in particle distribution used
> in OPAL-T simulation. Used to describe the
> beam distribution as it leaves the cathode.'''
>
> dist = {}
> data = np.loadtxt(filename, skiprows=1)
> for i,name in enumerate(names):
> dist[name] = data[:,i]
>
> return dist
```
However, the tools have gotten a lot more advanced since the last time I pushed anything.
Not sure this fits the current style, or where to add it.
New parser file for distributions?
Maybe this already exists and I missed it?https://gitlab.psi.ch/OPAL/pyOPALTools/-/issues/31Field Output Files2020-06-03T08:56:13+02:00snuverink_jjochem.snuverink@psi.chField Output Files[Field output files](https://gitlab.psi.ch/OPAL/Manual-2.1/wikis/field-output) are not yet supported.[Field output files](https://gitlab.psi.ch/OPAL/Manual-2.1/wikis/field-output) are not yet supported.