Skip to content

Commit

Permalink
FSI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter committed Oct 12, 2024
1 parent 84d60c5 commit 1ea6549
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/blox/DBS_Model_Blox_Adam_Brown.jl
Original file line number Diff line number Diff line change
Expand Up @@ -170,17 +170,15 @@ struct Striatum_FSI_Adam <: CompositeBlox
end
for i axes(connection_matrix, 2)
for j axes(connection_matrix, 1)
cij = connection_matrix[i, j]
cji = connection_matrix[j, i]

if iszero(cij.weight) && iszero(cij.g_weight)
if iszero(cji.weight) && iszero(cji.g_weight)
nothing
elseif iszero(cij.g_weight)
add_edge!(g, i, i, Dict(:weight=>cij.weight))
elseif iszero(cji.g_weight)
add_edge!(g, j, i, Dict(:weight=>cji.weight))
else
add_edge!(g, i, j, Dict(:weight=>cij.weight,
add_edge!(g, j, i, Dict(:weight=>cji.weight,
:gap => true,
:gap_weight => cij.g_weight))
:gap_weight => cji.g_weight))
end
end
end
Expand Down

0 comments on commit 1ea6549

Please sign in to comment.