Commit 4941405
committed
Fix three malformed error messages
Adjacent string literals concatenate in Python, and in two places the
join produces text the author clearly did not intend:
monai/networks/utils.py:443 pixelunshuffle()
"...divisible by factor 2. , spatial shape is: [7, 8]"
The second literal opens with ", " while the first already closed
with ". ", so the rendered message carries a stray ". ,".
monai/inferers/inferer.py:1776 LatentDiffusionInferer.__init__()
"...autoencoder_latent_shape must be Noneand vice versa."
No trailing space on the first literal, so two words run together.
The third is a plain typo in the same family, a missing comma in a list
of valid options, appearing in both the raised message and the docstring
that documents it:
monai/metrics/utils.py:104,144 do_metric_reduction()
'[..., "mean_channel", "sum_channel" "none"].'
Every sibling message in monai/losses/ writes this list fully
comma-separated.
All three are user-visible text only; no behaviour changes.
Signed-off-by: Hans Johnson <hans-johnson@uiowa.edu>1 parent c1240a2 commit 4941405
3 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1773 | 1773 | | |
1774 | 1774 | | |
1775 | 1775 | | |
1776 | | - | |
| 1776 | + | |
1777 | 1777 | | |
1778 | 1778 | | |
1779 | 1779 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
0 commit comments