Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Dec 10, 2024
1 parent 5bf5fdd commit fa4a25d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snudda/utils/swap_to_degenerated_morphologies.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@ def find_morpology(self, neuron_id):
# Pick one of the key pairs
idx = np.random.randint(low=0, high=len(possible_keys))
new_param_key, new_morph_key, new_morph_name = possible_keys[idx]
new_morph_name = snudda_simplify_path(os.path.join(new_neuron_path, "morphology", new_morph_name),
self.new_snudda_data_dir)

# We also need parameter_id and morphology_id
parameter_id = np.where([x == new_param_key for x in new_meta_info.keys()])[0][0]
Expand Down

0 comments on commit fa4a25d

Please sign in to comment.