Skip to content

Instantly share code, notes, and snippets.

@opotowsky
Created May 2, 2016 17:14
Show Gist options
  • Save opotowsky/28a6761ed4ac97b2c555f962cbb95ab3 to your computer and use it in GitHub Desktop.
Save opotowsky/28a6761ed4ac97b2c555f962cbb95ab3 to your computer and use it in GitHub Desktop.
Cym failing with Growth Region
opy_eats_macaron ~/cyclus/testing $ cymetric test_gr.sqlite -e "from cymetric import cycamore_root_metrics; print(AgentState_cycamore_GrowthRegionInfo[:])"
/home/opy/.local/lib/python2.7/site-packages/cymetric/metrics.py:10: QAWarning: pyne.data is not yet QA compliant.
from pyne import data
/home/opy/.local/lib/python2.7/site-packages/cymetric/metrics.py:11: QAWarning: pyne.material is not yet QA compliant.
import pyne.enrichment as enr
/home/opy/.local/lib/python2.7/site-packages/cymetric/metrics.py:11: QAWarning: pyne.enrichment is not yet QA compliant.
import pyne.enrichment as enr
Traceback (most recent call last):
File "/home/opy/.local/bin/cymetric", line 4, in <module>
main()
File "/home/opy/.local/lib/python2.7/site-packages/cymetric/main.py", line 36, in main
exec_code(ns.exec_code, db, write=ns.write)
File "/home/opy/.local/lib/python2.7/site-packages/cymetric/execution.py", line 217, in exec_code
exec(code, glb, loc)
File "<string>", line 1, in <module>
File "/home/opy/.local/lib/python2.7/site-packages/cymetric/execution.py", line 134, in __getitem__
return self.evaler.eval(self.name, conds=conds)
File "/home/opy/.local/lib/python2.7/site-packages/cymetric/evaluator.py", line 59, in eval
raw = m(series=series, conds=conds, known_tables=self.known_tables)
File "/home/opy/.local/lib/python2.7/site-packages/cymetric/root_metrics.py", line 34, in __call__
return self.db.query(self.name, conds=conds)
File "cymetric/cyclus.pyx", line 159, in cymetric.cyclus._FullBackend.query (/home/opy/cyclus/cymetric/build/cymetric/cyclus.cxx:2827)
File "cymetric/typesystem.pyx", line 2825, in cymetric.typesystem.db_to_py (/home/opy/cyclus/cymetric/build/cymetric/typesystem.cxx:25585)
TypeError: dbtype 164 could not be found while converting to Python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment