Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
6886e0d6
Commit
6886e0d6
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Oops forgot to add a setter method for image metadata. Related fix in
DicomImage
parent
78ca0151
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/data/dicom.py
+1
-1
1 addition, 1 deletion
fsl/data/dicom.py
fsl/data/image.py
+7
-0
7 additions, 0 deletions
fsl/data/image.py
with
8 additions
and
1 deletion
fsl/data/dicom.py
+
1
−
1
View file @
6886e0d6
...
@@ -67,7 +67,7 @@ class DicomImage(fslimage.Image):
...
@@ -67,7 +67,7 @@ class DicomImage(fslimage.Image):
if
metadata
is
not
None
:
if
metadata
is
not
None
:
for
k
,
v
in
metadata
.
items
():
for
k
,
v
in
metadata
.
items
():
self
.
add
Meta
(
k
,
v
)
self
.
set
Meta
(
k
,
v
)
@property
@property
...
...
This diff is collapsed.
Click to expand it.
fsl/data/image.py
+
7
−
0
View file @
6886e0d6
...
@@ -174,6 +174,7 @@ class Nifti(notifier.Notifier):
...
@@ -174,6 +174,7 @@ class Nifti(notifier.Notifier):
metaValues
metaValues
metaItems
metaItems
getMeta
getMeta
setMeta
**Notification**
**Notification**
...
@@ -713,6 +714,12 @@ class Nifti(notifier.Notifier):
...
@@ -713,6 +714,12 @@ class Nifti(notifier.Notifier):
return
self
.
__meta
.
get
(
*
args
,
**
kwargs
)
return
self
.
__meta
.
get
(
*
args
,
**
kwargs
)
def
setMeta
(
self
,
*
args
,
**
kwargs
):
"""
Add some metadata with the specified key (``dict.__setitem__``).
"""
self
.
__meta
.
__setitem__
(
*
args
,
**
kwargs
)
class
Image
(
Nifti
):
class
Image
(
Nifti
):
"""
Class which represents a NIFTI image. Internally, the image is
"""
Class which represents a NIFTI image. Internally, the image is
loaded/stored using a :mod:`nibabel.nifti1.Nifti1Image` or
loaded/stored using a :mod:`nibabel.nifti1.Nifti1Image` or
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment