bmtk icon indicating copy to clipboard operation
bmtk copied to clipboard

save_nodes fails to overwrite (nodes file already open)

Open tmchartrand opened this issue 6 years ago • 1 comments

When trying to modify and re-run a network interactively in ipython/jupyter, NetworkBuilder.save_nodes fails with the message (from h5py): IOError: Unable to create file (unable to truncate a file which is already open) It seems like the file is left open on loading the network when BioNetwork.from_config is called, maybe in SonataNodes.load()?. Not sure if that's intentional, or could be fixed?

tmchartrand avatar Oct 02 '18 17:10 tmchartrand

@tmchartrand I know this comment is old, but have you tried it recently? And are you running the network in parallel or series? If running in series, you need to remove the network folder before creating the network again.

latimerb avatar Jun 24 '20 19:06 latimerb