Skip to content

Commit

Permalink
Add TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodar01 committed Dec 10, 2024
1 parent cdd890a commit fe4521d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
]
MANUAL_INTENSITY_LABEL = "Maximum intensity"

# TODO - 4955: Revise help text for NamesAndTypes
RESCALING_HELP_TEXT = """\
This option determines how the image intensity should be rescaled from
0.0 – 1.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def __init__(
:type pathname:
:param filename: Filename of file or last chunk of URL
:type filename:
:param rescale:
:type rescale:
:param rescale: Whether to do metadata-based rescale (True), type-based rescale (False), or manual rescale (float)
:type rescale: boolean or float
:param series:
:type series:
:param index:
Expand Down Expand Up @@ -359,6 +359,7 @@ def __set_image(self):
stack.append(img)
img = numpy.dstack(stack)
if isinstance(self.rescale, float):
# TODO - 4955: careful here with casting
# Apply a manual rescale
img = img.astype(numpy.float32) / self.rescale
self.__image = Image(
Expand Down

0 comments on commit fe4521d

Please sign in to comment.