Skip to content

Commit

Permalink
Add warning about owmeta
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Jun 25, 2023
1 parent 82310f1 commit 5e97cfd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion c302/OpenWormReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ def get_cells_in_model(self, net):
def read_data(self, include_nonconnected_cells=False):
print_("Initialising OpenWormReader")

cell_names, pre, post, conns = self._read_connections('neuron')
try:
cell_names, pre, post, conns = self._read_connections('neuron')
except:
print('\nProblem loading connections via owmeta! The package is installed however. You may need to try running:'+
"\n\n owm bundle remote --user add ow 'https://raw.githubusercontent.com/openworm/owmeta-bundles/master/index.json'\n")

exit()

if include_nonconnected_cells:
return cell_names, conns
Expand Down

0 comments on commit 5e97cfd

Please sign in to comment.