Skip to content

Commit

Permalink
adding debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Oct 23, 2023
1 parent 005fd58 commit bab251a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snudda/neurons/neuron_morphology_extended.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ def dendrite_input_locations(self, synapse_density_str, rng, num_locations,
syn_idx = rng.choice(a=dend_idx, size=num_locations, replace=True,
p=expected_synapses[dend_idx] / expected_sum)
except:
print(f"dend_idx={dend_idx}\n"
f"num_locations={num_locations}\n"
f"p={expected_synapses[dend_idx] / expected_sum}")
import traceback
self.write_log(traceback.format_exc(), is_error=True)
import pdb
Expand Down

0 comments on commit bab251a

Please sign in to comment.