Skip to content

Commit

Permalink
The code now runs!
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Nov 1, 2024
1 parent 43aef92 commit d54c760
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion snudda/synaptic_fitting/neuron_set.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"baseline_voltage": -0.08,
"holding_current": 4.569500333673204e-10
}
}
}
3 changes: 2 additions & 1 deletion snudda/synaptic_fitting/optimiseFullOnlyOne.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ fi
ipcluster start --profile=$IPYTHON_PROFILE --ip=127.0.0.1&
sleep 20

python3 optimise_synapses_full.py ../data/synapses/example_data/10_MSN12_GBZ_CC_H20.json --synapseParameters ../data/synapses/example_data/M1LH-contra_dSPN.json --compile
echo "Increase nTrials from 2 to a higher number for a proper optimisation"
python3 optimise_synapses_full.py ../data/synapses/example_data/10_MSN12_GBZ_CC_H20.json --synapseParameters ../data/synapses/example_data/M1LH-contra_dSPN.json --compile --nTrials 2

ipcluster stop

Expand Down
3 changes: 2 additions & 1 deletion snudda/synaptic_fitting/optimise_synapses_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -1406,6 +1406,7 @@ def plot_debug_pars(self):
parser.add_argument("--compile", action="store_true", help="Compile NEURON modules")

parser.add_argument("--data", help="Snudda data directory")
parser.add_argument("--nTrials", help="Number of trials", default=2)

args = parser.parse_args()

Expand Down Expand Up @@ -1479,4 +1480,4 @@ def plot_debug_pars(self):

sys.exit(0)

ly.parallel_optimise_single_cell(n_trials=2)
ly.parallel_optimise_single_cell(n_trials=args.nTrials)

0 comments on commit d54c760

Please sign in to comment.