Closed EmmaTintinger closed 9 months ago
Hi @EmmaTintinger, thanks for reporting this issue!
As part of a larger rewrite of the event rate calculation in SNEWPY v1.4 we’ve stopped including unweighted event rates in the output table; in part to make the output tables cleaner and smaller, and in part because the unweighted data is unphysical anyway and was only used for debugging.
Unless you have any use cases we haven’t been thinking about, where you actually need these unweighted numbers, I would suggest we just remove the unweighted
case from this demo notebook.
Error: KeyError: 'Collated_Analytic3Species_demo_wc100kt30prct_events_smeared_unweighted.dat'
Location: AnalyticFluence cell [5]
Error trace:
KeyError Traceback (most recent call last) Input In [5], in <cell line: 1>() 1 for smear in ["smeared", "unsmeared"]: 2 for weight in ["weighted", "unweighted"]: ----> 3 energy = tables['Collated'+outfile+''+detector+'events'+smear+''+weight+'.dat']['data'][0]*1000. 4 nc = tables['Collated'+outfile+'_'+detector+'events'+smear+''+weight+'.dat']['data'][1] 5 escattering = tables['Collated'+outfile+'_'+detector+'events'+smear+'_'+weight+'.dat']['data'][2]
KeyError: 'Collated_Analytic3Species_demo_wc100kt30prct_events_smeared_unweighted.dat'