Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Dec 21, 2023
1 parent 8a0b922 commit d78b121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mne/source_estimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,7 @@ def save_as_surface(self, fname, src, *, scale=1, scale_rr=1e3):
darrays = list()
darrays.append(
nib.gifti.gifti.GiftiDataArray(
data=s["rr"] * scale_rr,
data=(s["rr"] * scale_rr).astype(np.float32),
intent="NIFTI_INTENT_POINTSET",
datatype="NIFTI_TYPE_FLOAT32",
)
Expand All @@ -1628,7 +1628,7 @@ def save_as_surface(self, fname, src, *, scale=1, scale_rr=1e3):
# Make the topology DataArray
darrays.append(
nib.gifti.gifti.GiftiDataArray(
data=s["tris"],
data=s["tris"].astype(np.int32),
intent="NIFTI_INTENT_TRIANGLE",
datatype="NIFTI_TYPE_INT32",
)
Expand Down

0 comments on commit d78b121

Please sign in to comment.