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
Istvan N. Huszar, MD
tirl
Commits
064a841b
Commit
064a841b
authored
Apr 02, 2020
by
inhuszar
Browse files
Normalisation now changes data type.
parent
98ec0de1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tirl/timage.py
View file @
064a841b
...
...
@@ -2164,7 +2164,7 @@ class TImage(TField):
"""
# TODO: This is not compatible with HDD arrays.
self
.
_data
.
data
=
self
.
_data
.
data
/
self
.
_data
.
data
.
max
()
self
.
dtype
=
self
.
_data
.
data
.
dtype
#
self.dtype = self._data.data.dtype
def
set_resolution
(
self
,
*
resolution
,
unit
=
"au"
):
"""
...
...
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