Skip to content

Commit

Permalink
Fixed mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Oct 23, 2023
1 parent cc638a8 commit bdaf814
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions snudda/place/place.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,11 @@ def avoid_edges_parallel(self):
neuron_random_seed[neuron.neuron_id],
volume_id, mesh_file))

bend_morph_path = os.path.join(self.network_path, "modified_morphologies")

if not os.path.isdir(bend_morph_path):
os.mkdir(bend_morph_path)

if self.d_view is None:
# Make sure we use the same random seeds if we run in serial, as would have been used in parallel

Expand Down Expand Up @@ -627,9 +632,6 @@ def avoid_edges_helper(bend_neuron_info, network_path):
bend_morph = dict()
bend_morph_path = os.path.join(network_path, "modified_morphologies")

if not os.path.isdir(bend_morph_path):
os.mkdir(bend_morph_path)

modified_morphologies = []

for neuron_id, neuron_name, swc_filename, position, rotation, random_seed, volume_id, mesh_file \
Expand Down

0 comments on commit bdaf814

Please sign in to comment.