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
ae63bb07
Commit
ae63bb07
authored
May 23, 2022
by
Istvan N. Huszar, MD
Browse files
Fixed bad exception type.
parent
5490c4f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/mouse/slice_to_volume.py
View file @
ae63bb07
...
...
@@ -2051,7 +2051,7 @@ def match_volume_resolution(img, **kwargs):
import
imageio
try
:
ext
=
imageio
.
formats
[
ext
].
extensions
[
0
].
lstrip
(
"."
)
except
IndexError
:
except
KeyError
,
IndexError
:
ext
=
ts
.
TIMAGE_DEFAULT_SNAPSHOT_EXT
filename
=
os
.
path
.
join
(
p
.
general
.
outputdir
,
f
"
{
fn
}
_mrires.
{
ext
}
"
)
img
.
snapshot
(
filename
,
overwrite
=
True
)
...
...
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