Skip to content

Conversation

@kbressem
Copy link
Contributor

Avoids crashing of the function if ratios_[i] = 0 cannot be updated

Fixes #6121

Description

Adds additional if statement to check if warn is true, so that the following code can still be executed.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Avoids crashing of the function if `ratios_[i] = 0` cannot be updated
I, kbressem <kenobressem@gmail.com>, hereby add my Signed-off-by to this commit: f4992bd

Signed-off-by: kbressem <kenobressem@gmail.com>
@wyli
Copy link
Contributor

wyli commented Mar 10, 2023

/build

@kbressem kbressem marked this pull request as ready for review March 10, 2023 23:43
@wyli wyli enabled auto-merge (squash) March 11, 2023 00:07
@wyli
Copy link
Contributor

wyli commented Mar 11, 2023

/build

@wyli wyli merged commit d118aa7 into Project-MONAI:dev Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants