icecube / ASTERIA

A Supernova TEst Routine for IceCube Analysis
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

Error in writing new simulation to file #63

Open xinyuewu21 opened 2 years ago

xinyuewu21 commented 2 years ago

In the In[7] cell of the document notebook detector_response, an error appears.

The code is:

E_per_V_1kpc =  E_per_V * ccsn.progenitor_distance.to(u.kpc).value**2
try:
    io.save(conf, E_per_V_1kpc)
except FileExistsError as e:
    print(e)

The error is:

Found  None
Writing new simulation to file
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
tables/tableextension.pyx in tables.tableextension.get_nested_field_cache()

KeyError: 'default'

During handling of the above exception, another exception occurred:

KeyError                                  Traceback (most recent call last)
tables/utilsextension.pyx in tables.utilsextension.get_nested_field()

KeyError: 'default'

During handling of the above exception, another exception occurred:

KeyError                                  Traceback (most recent call last)
<ipython-input-7-329bea05f4ac> in <module>
      1 E_per_V_1kpc =  E_per_V * ccsn.progenitor_distance.to(u.kpc).value**2
      2 try:
----> 3     io.save(conf, E_per_V_1kpc)
      4 except FileExistsError as e:
      5     print(e)

/opt/anaconda3/lib/python3.8/site-packages/asteria-0.2.0.dev133-py3.8.egg/asteria/IO.py in save(config, result, force)
    253 
    254         row = grp_options.Hierarchy.row
--> 255         row[config.simulation.hierarchy] = True
    256         row.append()
    257         grp_options.Hierarchy.flush()

tables/tableextension.pyx in tables.tableextension.Row.__setitem__()

tables/tableextension.pyx in tables.tableextension.get_nested_field_cache()

tables/utilsextension.pyx in tables.utilsextension.get_nested_field()

KeyError: 'no such column: default'
xinyuewu21 commented 2 years ago

Running at git hash ec1024d