Skip to content

Commit

Permalink
Minor edits of spectralDCM.jl
Browse files Browse the repository at this point in the history
Hijacking this PR to fix minor printing issue in spectral DCM tutorial. Thank you :)
  • Loading branch information
david-hofmann authored Oct 8, 2024
1 parent 89143ad commit f1b16f2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/src/tutorials/spectralDCM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ using ModelingToolkit
# This needs to be represented by the way we define the edges.
nr = 3 # number of regions
g = MetaDiGraph()
regions = [] # list of neural mass blocks to then connect them to each other with an adjacency matrix

# Now add the different blocks to each region and connect the blocks within each region:
for i = 1:nr
region = LinearNeuralMass(;name=Symbol("r$(i)₊lm"))
Expand Down Expand Up @@ -113,8 +111,6 @@ fig
# This procedure is similar to before with the difference that we will define global parameters and use tags such as [tunable=false/true] to define which parameters we will want to estimate.
# Note that parameters are tunable by default.
g = MetaDiGraph()
regions = []; # list of neural mass blocks to then connect them to each other with an adjacency matrix

# The following parameters are shared accross regions, which is why we define them here.
@parameters lnκ=0.0 [tunable=false] lnϵ=0.0 [tunable=false] lnτ=0.0 [tunable=false] # lnκ: decay parameter for hemodynamics; lnϵ: ratio of intra- to extra-vascular components, lnτ: transit time scale
@parameters C=1/16 [tunable=false] # note that C=1/16 is taken from SPM12 and stabilizes the balloon model simulation. See also comment above.
Expand Down

0 comments on commit f1b16f2

Please sign in to comment.