Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in writing new simulation to file #63

Open
xinyuewu21 opened this issue Jan 25, 2022 · 1 comment
Open

Error in writing new simulation to file #63

xinyuewu21 opened this issue Jan 25, 2022 · 1 comment

Comments

@xinyuewu21
Copy link

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
Copy link
Author

Running at git hash ec1024d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant