Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 5835c771 authored by hartmann_m's avatar hartmann_m
Browse files

Update filegen.py

parent e89aa5ed
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,8 @@ import numpy as np ...@@ -3,6 +3,8 @@ import numpy as np
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import pandas as pd import pandas as pd
# ?np.zeros # ?np.zeros
rot_radius = 13 rot_radius = 13
...@@ -37,7 +39,7 @@ plt.xlabel('${radius\ [mm]}$',size=11) ...@@ -37,7 +39,7 @@ plt.xlabel('${radius\ [mm]}$',size=11)
plt.ylabel('$norm.\ beam\ intensity$',size=11) plt.ylabel('$norm.\ beam\ intensity$',size=11)
plt.title('Sliced beam distribution') plt.title('Sliced beam distribution')
np.savetxt("flattened.csv", particles, delimiter=",") np.savetxt("flattened.csv", particles, delimiter=" ")
df = pd.read_csv('flattened.csv', sep=" ", header=None) df = pd.read_csv('flattened.csv', sep=" ", header=None)
df.columns = ["x", "y", "z", "xp","yp","zp"] df.columns = ["x", "y", "z", "xp","yp","zp"]
df['x'] = df['x'].div(10) df['x'] = df['x'].div(10)
......
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