mad8-pandas
loading mad8 output with pandas
import pand8
df = pand8.read("TWISS_CL_T20.txt") # For example
# pandas stuff 😇
# Other bits...
# Fixing strangeness:
assert df.iloc[0].E == 0.0 # Wrong and annoying.
df = pand8.fix_initial_row_energy(df)
assert df.iloc[0].E != 0. # No longer wrong or annoying.
# Adding a few extra useful columns
import matplotlib.pyplot as plt
df = pand8.append_beam_size_columns(df, emitnx=1.4e-6, emitny=1.4e-6, espread_norm=1e-4)
df = pand8.append_twiss_gamma(df)
df.plot("SUML", "SIGMAX")
df.plot("SUML", "GAMX")
plt.show()
Release files for mad8-pandas 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mad8-pandas-1.1.1.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mad8_pandas-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / mad8-pandas-1.1.1.tar.gz
| Download URL | mad8-pandas-1.1.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
280ead02a4c6d9c623dc078d2696dde3e30b9d3ff7ee22021baf508be6a5ed5c
|
|
BLAKE2b-256 checksum How to use checksums |
46844059d754ab3d7827c8bb28ee1e711bf49a9ee2a10e49d9353efabd10f350
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / mad8_pandas-1.1.1-py3-none-any.whl
| Download URL | mad8_pandas-1.1.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad46f8b087f05b108c557d8db494f2dab740883032d1a6f5b26fb3a642c66741
|
|
BLAKE2b-256 checksum How to use checksums |
2091c971ec39afa923fa74681c44a2e7070fc661dcb7f63566e791c98bc91062
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|