Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Nov 24, 2024
1 parent 62e566f commit 9e7d0d5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Empty file modified examples/parallel/KTH_PDC/input_tuning/purge_bad.sh
100644 → 100755
Empty file.
12 changes: 12 additions & 0 deletions examples/parallel/KTH_PDC/input_tuning/purge_bad_ver.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
python purge_bad_parameters.py networks/verify_input_dspn_cortical networks/verify_input_dspn_cortical/figures/_bad/ --snudda_data /home/hjorth/HBP/BasalGangliaData/data/


python purge_bad_parameters.py networks/verify_input_dspn_thalamic networks/verify_input_dspn_thalamic/figures/_bad/ --snudda_data /home/hjorth/HBP/BasalGangliaData/data/


python purge_bad_parameters.py networks/verify_input_ispn_cortical networks/verify_input_ispn_cortical/figures/_bad/ --snudda_data /home/hjorth/HBP/BasalGangliaData/data/


python purge_bad_parameters.py networks/verify_input_ispn_thalamic networks/verify_input_ispn_thalamic/figures/_bad/ --snudda_data /home/hjorth/HBP/BasalGangliaData/data/


6 changes: 3 additions & 3 deletions snudda/input/input_tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def update_meta(self, input_config_info, overwrite=True, set_frequency=None):
print(f"Parameter key {parameter_key}, morphology key {morphology_key} not found in {meta_file} -- was it manually removed?")
continue

print(f"Writing {parameter_key = }, {morphology_key = }")
# print(f"Writing {parameter_key = }, {morphology_key = }")
if overwrite:
meta_data[parameter_key][morphology_key]["input"] = new_config
else:
Expand Down Expand Up @@ -890,8 +890,8 @@ def plot_depolarisation_blocked_neurons(self, freq_bin=10):
plt.xlabel("Time (ms)")
plt.ylabel("Voltage (mV)")

fig_path = os.path.join(self.network_path, "figures",
f"Bad-trace-{neuron_type}-{full_param_key}-{full_morph_key}.png")
fig_path = os.path.join(self.network_path, "figures", "_bad",
f"{full_morph_key}-{full_param_key}-{neuron_type}-BAD-trace.png")

if not os.path.exists(os.path.dirname(fig_path)):
os.mkdir(os.path.dirname(fig_path))
Expand Down

0 comments on commit 9e7d0d5

Please sign in to comment.