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
f30087b6
Commit
f30087b6
authored
Feb 03, 2021
by
payno
Browse files
[MetricSystem] fix typo: missing enum in "from_value" function
parent
b606abf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/unitsystem/metricsystem.py
View file @
f30087b6
...
...
@@ -98,7 +98,7 @@ class MetricSystem(_Enum):
if
isinstance
(
value
,
str
):
return
cls
.
from_str
(
value
=
value
)
else
:
_Enum
.
from_value
(
value
=
value
)
return
_Enum
.
from_value
(
value
=
value
)
@
classmethod
def
from_str
(
cls
,
value
:
str
):
...
...
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