Skip to content

Commit

Permalink
fix arbor tests with latest arbor version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaquier Aurélien Tristan committed Aug 20, 2024
1 parent aff67f8 commit 3c887d7
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 19 deletions.
2 changes: 2 additions & 0 deletions bluepyopt/ephys/morphologies.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ def load(morpho_filename, replace_axon):
morpho = arbor.load_component(morpho_filename).component
elif morpho_suffix == '.swc':
morpho = arbor.load_swc_arbor(morpho_filename)
# turn loaded_morphology into morphology type
morpho = arbor.morphology(morpho.segment_tree)
elif morpho_suffix == '.asc':
morpho = arbor.load_asc(morpho_filename).morphology
else:
Expand Down
2 changes: 1 addition & 1 deletion bluepyopt/ephys/templates/acc/decor_acc_template.jinja2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(arbor-component
(meta-data (version "0.1-dev"))
(meta-data (version "0.9-dev"))
(decor
{%- for mech, params in global_mechs.items() %}
{%- if mech is not none %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(arbor-component
(meta-data (version "0.1-dev"))
(meta-data (version "0.9-dev"))
(label-dict
{%- for loc, label in label_dict.items() %}
{{ label.defn }}
Expand Down
2 changes: 1 addition & 1 deletion bluepyopt/tests/test_ephys/test_create_acc.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def run_short_sim(cable_cell):
arb_cell_model.properties.catalogue.extend(arbor.bbp_catalogue(), "BBP::")

# Run a very short simulation to test mechanism instantiation
arb_cell_model.run(tfinal=0.1)
arb_cell_model.run(tfinal=0.1 *arbor.units.ms)


@pytest.mark.unit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(arbor-component
(meta-data (version "0.1-dev"))
(meta-data (version "0.9-dev"))
(decor
(default (gSKv3_1bar_SKv3_1 65))
(paint (region "soma") (gSKv3_1bar_SKv3_1 65))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(arbor-component
(meta-data (version "0.1-dev"))
(meta-data (version "0.9-dev"))
(label-dict
(region-def "all" (all))
(region-def "apic" (tag 4))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(arbor-component
(meta-data
(version "0.1-dev"))
(version "0.9-dev"))
(morphology
(branch 0 -1
(segment 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(arbor-component
(meta-data (version "0.1-dev"))
(meta-data (version "0.9-dev"))
(decor
(paint (region "soma") (membrane-capacitance 0.01))
(paint (region "soma") (density (mechanism "default::pas")))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(arbor-component
(meta-data (version "0.1-dev"))
(meta-data (version "0.9-dev"))
(label-dict
(region-def "all" (all))
(region-def "soma" (tag 1))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(arbor-component
(meta-data
(version "0.1-dev"))
(version "0.9-dev"))
(morphology
(branch 0 -1
(segment 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(arbor-component
(meta-data
(version "0.1-dev"))
(version "0.9-dev"))
(morphology
(branch 0 -1
(segment 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(arbor-component
(meta-data (version "0.1-dev"))
(meta-data (version "0.9-dev"))
(decor
(default (membrane-potential -65))
(default (temperature-kelvin 307.14999999999998))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(arbor-component
(meta-data (version "0.1-dev"))
(meta-data (version "0.9-dev"))
(label-dict
(region-def "all" (all))
(region-def "soma" (tag 1))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(arbor-component
(meta-data (version "0.1-dev"))
(meta-data (version "0.9-dev"))
(decor
(default (membrane-potential -65))
(default (temperature-kelvin 307.14999999999998))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(arbor-component
(meta-data
(version "0.1-dev"))
(version "0.9-dev"))
(morphology
(branch 0 -1
(segment 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(arbor-component
(meta-data (version "0.1-dev"))
(meta-data (version "0.9-dev"))
(decor
(paint (region "soma") (membrane-capacitance 0.01))
(paint (region "soma") (density (mechanism "default::hh" ("gnabar" 0.10299326453483033) ("gkbar" 0.027124836082684685))))))
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(arbor-component
(meta-data (version "0.1-dev"))
(meta-data (version "0.9-dev"))
(label-dict
(region-def "all" (all))
(region-def "soma" (tag 1))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(arbor-component
(meta-data
(version "0.1-dev"))
(version "0.9-dev"))
(morphology
(branch 0 -1
(segment 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(arbor-component
(meta-data (version "0.1-dev"))
(meta-data (version "0.9-dev"))
(meta-data (info "test-decor"))
(decor
{%- for mech, params in global_mechs.items() %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(arbor-component
(meta-data (version "0.1-dev"))
(meta-data (version "0.9-dev"))
(meta-data (info "test-label-dict"))
(label-dict
{%- for loc, label in label_dict.items() %}{# this is a comment #}
Expand Down

0 comments on commit 3c887d7

Please sign in to comment.