fix segfault, cleanup and resize

This commit is contained in:
Erik Fröjdh
2023-05-24 11:42:28 +02:00
parent 0846799f28
commit 2f1925b8aa
4 changed files with 33 additions and 23 deletions

10
test.py
View File

@@ -2,7 +2,13 @@ from creader import ClusterFileReader
import numpy as np
maxph=100000000
maxph=100
from pathlib import Path
fpath = Path('/Users/erik/data/clusters/beam_En700eV_-40deg_300V_10us_d0_f0_100.clust')
# r = ClusterFileReader("/mnt/moench_data/Moench_LGAD_SIM_Nov22/moenchLGAD202211/clustW17new/beam_En800eV_-40deg_300V_10us_d0_f5_0.clust")
r = ClusterFileReader(fpath.as_posix())
r = ClusterFileReader("/mnt/moench_data/Moench_LGAD_SIM_Nov22/moenchLGAD202211/clustW17new/beam_En800eV_-40deg_300V_10us_d0_f5_0.clust")
a=r.read(maxph)
print(a[::100000])
# print(a[::100000])