Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pes_to_spec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Machine Learning projects.
pes_to_spec
Commits
6d1dd9e4
Commit
6d1dd9e4
authored
1 year ago
by
Danilo Ferreira de Lima
Browse files
Options
Downloads
Patches
Plain Diff
Created VS configuration.
parent
b3dfd841
No related branches found
No related tags found
1 merge request
!26
Added example for SCS.
Pipeline
#131761
passed
1 year ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pes_to_spec/config.py
+3
-3
3 additions, 3 deletions
pes_to_spec/config.py
with
3 additions
and
3 deletions
pes_to_spec/config.py
+
3
−
3
View file @
6d1dd9e4
...
...
@@ -66,7 +66,7 @@ class VSConfig(object):
if
m
is
not
None
and
len
(
m
.
groups
())
>=
1
:
name
=
m
.
groups
()[
0
]
out
.
voltage_mean
[
name
]
=
run
[
VSConfig
.
voltage_source
,
f
"
{
name
}
.value
"
].
ndarray
().
mean
()
out
.
voltage_std
[
name
]
=
run
[
VSConfg
uration
.
voltage_source
,
f
"
{
name
}
.value
"
].
ndarray
().
std
()
out
.
voltage_std
[
name
]
=
run
[
VSConf
i
g
.
voltage_source
,
f
"
{
name
}
.value
"
].
ndarray
().
std
()
for
gas
in
VSConfig
.
gas_sources
:
# check if this gas source is interlocked
...
...
@@ -90,7 +90,7 @@ class VSConfig(object):
errors
+=
[
f
"
Multiple gas active during the data:
{
self
.
gas_active
}
.
"
]
return
errors
def
__sub__
(
self
,
other
:
VSConfig
)
->
VSConfig
:
def
__sub__
(
self
,
other
:
'
VSConfig
'
)
->
'
VSConfig
'
:
"""
Take difference between two configuratons.
"""
...
...
@@ -101,7 +101,7 @@ class VSConfig(object):
diff
.
gas_active
=
set
(
self
.
gas_active
).
difference
(
set
(
other
.
gas_active
))
return
diff
def
__eq__
(
self
,
other
)
->
bool
:
def
__eq__
(
self
,
other
:
'
VSConfig
'
)
->
bool
:
"""
Check if two configurations match.
"""
...
...
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