det-lab / xia

A library for python-based analysis of XIA data
MIT License
1 stars 0 forks source link

Kernel crashing when trying to load .b00 files #4

Open maraMaraschino opened 1 month ago

maraMaraschino commented 1 month ago

I'm trying to create an awkward-array focused code for doing XIA analysis using xia_analysis_awkward. The third cell in the code, which is trying to load a file using the libpixie4e.so reader consistently kills the kernel and forces a restart.

def load_file():
    # Comment out the one not being tested
    #awkward_array = xia.load("../data/LaBr_Na22coinc_attn8_500fast_0148/LaBr_Na22coinc_attn8_500fast_0148_small.b00")
    awkward_array = xia.load("../data/StilbeneAmCs_500_0253/StilbeneAmCs_500_0253_xxsmall.b00")

tracer = trace.Trace(trace=True, count=False)
try:
    tracer.run('load_file()')
except Exception as e:
    print("An error occurred:", e)

I made a script to pull an arbitrary number of events, and used it to generate six smaller .b00 files (three StilBeneAmCs and three LaBr_Na22 with 5000, 100, and 3 events - append _small, _xsmall, _xxsmall to the filename to access each one respectively) to aid with testing this problem, but so far all six of them reproduce the same result. With the tracer, only _small and _xsmall print out a trace, while xxsmall just goes straight to crashing the kernel. But I haven't really been able to use the trace results to figure out exactly what the problem is or how to fix it.