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
tomotools
tomoscan
Commits
492285e8
Commit
492285e8
authored
Jul 10, 2020
by
Tomas Farago
Browse files
[unit system] add"um" alias
parent
181c0ff0
Pipeline
#29403
passed with stages
in 3 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/unitsystem/metricsystem.py
View file @
492285e8
...
...
@@ -105,7 +105,7 @@ class MetricSystem(_Enum):
return
MetricSystem
.
CENTIMETER
elif
value
.
lower
()
in
(
'mm'
,
'millimeter'
):
return
MetricSystem
.
MILLIMETER
elif
value
.
lower
()
in
(
'micrometer'
):
elif
value
.
lower
()
in
(
'um'
,
'micrometer'
):
return
MetricSystem
.
MICROMETER
elif
value
.
lower
()
in
(
'nm'
,
'nanometer'
):
return
MetricSystem
.
NANOMETER
...
...
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