bmtk
bmtk copied to clipboard
save_nodes fails to overwrite (nodes file already open)
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 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.