diff --git a/bind/.gitignore b/bind/.gitignore index e443899..9f2e149 100644 --- a/bind/.gitignore +++ b/bind/.gitignore @@ -1 +1,2 @@ -minicalo.cpython-38-x86_64-linux-gnu.so \ No newline at end of file +minicalo.cpython-38-x86_64-linux-gnu.so +tmp_test* \ No newline at end of file diff --git a/bind/G4Calo.py b/bind/G4Calo.py index 4534b1d..53b7edf 100644 --- a/bind/G4Calo.py +++ b/bind/G4Calo.py @@ -397,4 +397,9 @@ def display_event(gd : GeometryDescriptor, if renderer is not None: fig.show(renderer=renderer) else: - fig.show() \ No newline at end of file + fig.show() + + + +def to_numpy(df_column): + return np.array(df_column.tolist()) \ No newline at end of file