From 85b344d13441ff11a9ea016820342ad187683675 Mon Sep 17 00:00:00 2001 From: Jan Kieseler Date: Tue, 10 Sep 2024 09:06:13 +0200 Subject: [PATCH] tools and fixes --- bind/.gitignore | 3 ++- bind/G4Calo.py | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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