Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fml40-reference-implementation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KWH40
fml40-reference-implementation
Commits
a5463fe0
Commit
a5463fe0
authored
3 years ago
by
Jiahang Chen
Browse files
Options
Downloads
Patches
Plain Diff
add switching stage
parent
dd70e6e1
No related branches found
No related tags found
No related merge requests found
Pipeline
#513159
passed
3 years ago
Stage: build_wheel
Stage: build_doc
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ml/dt_factory.py
+1
-0
1 addition, 0 deletions
ml/dt_factory.py
ml/ml40/features/properties/values/switching_stage.py
+47
-0
47 additions, 0 deletions
ml/ml40/features/properties/values/switching_stage.py
with
48 additions
and
0 deletions
ml/dt_factory.py
+
1
−
0
View file @
a5463fe0
...
@@ -83,6 +83,7 @@
...
@@ -83,6 +83,7 @@
from
ml.ml40.features.properties.values.personal_name
import
PersonalName
from
ml.ml40.features.properties.values.personal_name
import
PersonalName
from
ml.ml40.features.properties.values.rotational_speed
import
RotationalSpeed
from
ml.ml40.features.properties.values.rotational_speed
import
RotationalSpeed
from
ml.ml40.features.properties.values.route
import
Route
from
ml.ml40.features.properties.values.route
import
Route
from
ml.ml40.features.properties.values.switching_stage
import
SwitchingStage
from
ml.ml40.features.properties.values.temperature
import
Temperature
from
ml.ml40.features.properties.values.temperature
import
Temperature
from
ml.ml40.features.properties.values.time_slot
import
TimeSlot
from
ml.ml40.features.properties.values.time_slot
import
TimeSlot
from
ml.ml40.features.properties.values.weight
import
Weight
from
ml.ml40.features.properties.values.weight
import
Weight
...
...
This diff is collapsed.
Click to expand it.
ml/ml40/features/properties/values/switching_stage.py
0 → 100644
+
47
−
0
View file @
a5463fe0
from
ml.ml40.features.properties.values.value
import
Value
class
SwitchingStage
(
Value
):
def
__init__
(
self
,
name
=
""
,
identifier
=
""
):
super
().
__init__
(
name
=
name
,
identifier
=
identifier
)
self
.
__min_stage
=
None
self
.
__current_stage
=
None
self
.
__max_stage
=
None
self
.
__json_out
=
dict
()
@property
def
minStage
(
self
):
return
self
.
__min_stage
@minStage.setter
def
minStage
(
self
,
value
):
self
.
__min_stage
=
value
@property
def
currentStage
(
self
):
return
self
.
__current_stage
@currentStage.setter
def
currentStage
(
self
,
value
):
self
.
__current_stage
=
value
@property
def
maxStage
(
self
):
return
self
.
__max_stage
@maxStage.setter
def
maxStage
(
self
,
value
):
self
.
__max_stage
=
value
def
to_json
(
self
):
self
.
__json_out
=
super
().
to_json
()
if
self
.
minStage
is
not
None
:
self
.
__json_out
[
"
minStage
"
]
=
self
.
minStage
if
self
.
maxStage
is
not
None
:
self
.
__json_out
[
"
maxStage
"
]
=
self
.
maxStage
if
self
.
currentStage
is
not
None
:
self
.
__json_out
[
"
currentStage
"
]
=
self
.
currentStage
return
self
.
__json_out
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