IAP GITLAB

Skip to content
Snippets Groups Projects
Commit cd79920f authored by Alan Coleman's avatar Alan Coleman
Browse files

python formatting

parent 02ecccd9
No related branches found
No related tags found
1 merge request!604"Need for writing first interaction information"
......@@ -53,7 +53,7 @@ The example scripts require additional dependencies that can be installed.
pip install argparse matplotlib particle
```
Examples are can be run like this:
Examples can be run like this:
```shell
python examples/shower_profile.py --input-dir <path-to-C8-output>
......
......@@ -32,8 +32,8 @@ def plot_avg_profile(dat, part, ax):
nshower = len(dat.shower.unique()) # number of showers in output dir
max_dX = np.max(dat["X"])
h = np.histogram(
dat.X,
bins=np.linspace(0, max_dX, len(dat["X"]) - 1),
dat.X,
bins=np.linspace(0, max_dX, len(dat["X"]) - 1),
weights=dat[part] * 1 / float(nshower),
)
ax.plot(h[1][:-1], h[0], label=part)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment