Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-imcflibs
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
imcf
python-imcflibs
Commits
d4d86e3d
Commit
d4d86e3d
authored
6 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Improve logging and exception message
parent
a0fd3339
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/imcflibs/imagej/bioformats.py
+2
-1
2 additions, 1 deletion
src/imcflibs/imagej/bioformats.py
with
2 additions
and
1 deletion
src/imcflibs/imagej/bioformats.py
+
2
−
1
View file @
d4d86e3d
...
...
@@ -55,6 +55,7 @@ def import_image(filename,
options
.
setId
(
filename
)
log
.
info
(
"
Reading [%s]
"
,
filename
)
orig_imps
=
BF
.
openImagePlus
(
options
)
log
.
debug
(
"
Opened [%s] %s
"
,
filename
,
type
(
orig_imps
))
return
orig_imps
...
...
@@ -78,7 +79,7 @@ def export(imp, filename, overwrite=False):
log
.
debug
(
"
Detected calibration unit: %s
"
,
unit
)
except
Exception
as
err
:
log
.
error
(
"
Unable to detect spatial unit: %s
"
,
err
)
raise
RuntimeError
(
"
Error detecting image calibration
!
"
)
raise
RuntimeError
(
"
Error detecting image calibration
: %s
"
%
err
)
if
unit
==
'
pixel
'
and
(
suffix
==
'
ics
'
or
suffix
==
'
ids
'
):
log
.
warn
(
"
Forcing unit to be
'
m
'
instead of
'
pixel
'
to avoid
"
"
Bio-Formats 6.0.x Exporter bug!
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment