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
csst-pipeline
csst_common
Commits
1424860c
Commit
1424860c
authored
Oct 04, 2022
by
BO ZHANG
🏀
Browse files
added CsstStatus
parent
31ec7fa6
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/status.py
0 → 100644
View file @
1424860c
"""
Identifier: KSC-SJ4-csst_common/status.py
Name: status.py
Description: CSST status
Author: Bo Zhang
Created: 2022-10-04
Modified-History:
2022-10-04, Bo Zhang, created
2022-10-04, Bo Zhang, added CsstStatus
"""
from
enum
import
IntEnum
class
CsstStatus
(
IntEnum
):
PERFECT
=
0
WARNING
=
1
ERROR
=
2
# status list to be completed
# def __repr__(self):
# return '<%s.%s>' % (self.__class__.__name__, self.name)
if
__name__
==
"__main__"
:
print
(
CsstStatus
)
print
(
CsstStatus
.
PROBLEMATIC
)
print
(
CsstStatus
(
1
))
print
(
CsstStatus
(
1
)
==
CsstStatus
.
PROBLEMATIC
)
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