reader accept Path obj

This commit is contained in:
Erik Frojdh
2023-06-02 09:26:12 +02:00
parent 96452488bf
commit 81ccef6e35
3 changed files with 35 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ except:
fname = "Moench_LGAD_SIM_Nov22/moenchLGAD202211/clustW17new/beam_En800eV_-40deg_300V_10us_d0_f5_0.clust"
r = ClusterFileReader((base/fname).as_posix())
r = ClusterFileReader(base/fname)
hist1 = bh.Histogram(bh.axis.Regular(40, -2, 2**14))
i = 0
while (cl:=r.read(100000)).size: