pyontutils
pyontutils copied to clipboard
neurondm compiled location
Will not work at all for system installs. Need some other way to deal with this. This will be tricky to configure.
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-9-5b95e28b2e2a> in <module>
1 # write a python file that has the same name as the file in cell 1
2 # but with python safe separators and a .py extension
----> 3 config.write_python()
/tmp/release-testing/neurondm-0.1.0/neurondm/core.py in write_python(self)
657 def write_python(self):
658 # FIXME hack, will write other configs if call after graphbase has switched
--> 659 graphBase.write_python()
660
661 def load_existing(self):
/tmp/release-testing/neurondm-0.1.0/neurondm/core.py in write_python()
1091 # the python before potentially opening (and thus erasing) the
1092 # original file from which some of the code was sourced
-> 1093 with open(graphBase.filename_python(), 'wt') as f:
1094 f.write(python)
1095
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/neurondm/compiled/neuron_lang_notebook.py'
The solution is to completely decouple the core representation from the serialization step, so that the core doesn't need to know anything about it. We might consider exploring namespace packages so that users don't have to create new modules, but can somehow add to the neurondm.compiled namespace as needed.