Code: Select all
h.load_file('Cell_Scnn1a.hoc')
cell_hoc = h.Cell_Scnn1a('/morphologies', 'Scnn1a_473845048_m.swc')
Code: Select all
h.load_file("mview.hoc")
mv = h.ModelView(0)
mv_xml = h.ModelViewXML(mv)
export_filepath = os.path.join('.', 'test.nml')
mv_xml.exportNeuroML(export_filepath, 2)
Code: Select all
bld = h.CellBuild(0)
mng = h.CellManage(bld)
f = h.File()
f.wopen('test.hoc')
mng.toplevel = 1 // i tried toplevel=0 as well
mng.pr(f)
Code: Select all
proc celldef() {
topol()
subsets()
geom()
biophys()
geom_nseg()
}
proc topol() { local i
basic_shape()
}
proc basic_shape() {
}
objref all
proc subsets() { local i
objref all
all = new SectionList()
}
proc geom() {
}
proc geom_nseg() {
}
proc biophys() {
}
celldef()