Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
nxtomomill
Commits
33fa0a94
Commit
33fa0a94
authored
May 10, 2022
by
Henri Payno
Browse files
_get_electric_current: improve doc
parent
92dc5d8a
Pipeline
#74471
passed with stages
in 3 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nxtomomill/converter/hdf5/acquisition/baseacquisition.py
View file @
33fa0a94
...
...
@@ -494,11 +494,12 @@ class BaseAcquisition:
except
(
ValueError
,
KeyError
):
pass
else
:
# handle
special case:
elec_current is
sometime a list and sometime a number...
# handle
case where
elec_current is
a scalar. Cast it to list before return
if
isinstance
(
elec_current
,
numpy
.
number
):
elec_current
=
[
elec_current
,
]
return
elec_current
,
unit
else
:
_logger
.
warning
(
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment