Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michiel Cottaar
gyral_structure
Commits
3711b1cf
Commit
3711b1cf
authored
Mar 31, 2020
by
Michiel Cottaar
Browse files
BUG: surface charges should be negative
parent
afe125ea
Pipeline
#5181
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gyral_structure/scripts/gs_fit
View file @
3711b1cf
...
...
@@ -101,7 +101,9 @@ else:
radial
=
white_radial
density
=
white_density
no_dyads
=
args
.
wdensity
*
density
+
args
.
wradial
*
radial
+
args
.
wL2
*
L2
+
args
.
wsmoothness
*
smoothness
no_dyads
=
args
.
wdensity
*
density
+
args
.
wradial
*
radial
+
args
.
wL2
*
L2
if
args
.
wsmoothness
!=
0
:
no_dyads
=
no_dyads
+
args
.
wsmoothness
*
smoothness
with_dyads
=
no_dyads
+
args
.
wdyad
*
aligned
...
...
@@ -117,7 +119,7 @@ mm_max = ref_img.affine[:3, :3].dot(voxel_max) + ref_img.affine[:3, -1]
masked_pial
=
CorticalMesh
.
read
(
args
.
pial
)[
surf_mask
]
points_pial
=
masked_pial
.
vertices
[:,
masked_pial
.
faces
].
mean
(
1
).
T
charge_pial
=
target_density
charge_pial
=
-
target_density
charge_max
=
-
np
.
atleast_1d
(
charge_pial
.
sum
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment