Skip to content

Error in writing new simulation to file #63

Description

@xinyuewu21

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions