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
9fcbf22b
Commit
9fcbf22b
authored
1 year ago
by
Danilo Ferreira de Lima
Browse files
Options
Downloads
Patches
Plain Diff
Switched staticmethod with classmethod.
parent
09722588
No related branches found
No related tags found
1 merge request
!26
Added example for SCS.
Pipeline
#132015
passed
1 year ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pes_to_spec/config.py
+4
-4
4 additions, 4 deletions
pes_to_spec/config.py
with
4 additions
and
4 deletions
pes_to_spec/config.py
+
4
−
4
View file @
9fcbf22b
...
...
@@ -36,8 +36,8 @@ class VSConfig(object):
self
.
pressure_tol
=
deepcopy
(
other
.
pressure_tol
)
self
.
gas
=
deepcopy
(
other
.
gas
)
@
static
method
def
load
(
proposalNumber
:
int
,
runNumbers
:
Union
[
int
,
List
[
int
]])
->
'
VSConfig
'
:
@
class
method
def
load
(
cls
,
proposalNumber
:
int
,
runNumbers
:
Union
[
int
,
List
[
int
]])
->
'
VSConfig
'
:
"""
Receives an extra-data run and outputs the configuration.
"""
...
...
@@ -150,8 +150,8 @@ class VSConfig(object):
out
[
k
]
=
[
v
]
return
pd
.
DataFrame
(
out
)
@
static
method
def
from_dict
(
data
:
Dict
[
str
,
Union
[
float
,
str
]],
tolerance
:
Dict
[
str
,
Union
[
float
,
str
]]
=
None
)
->
'
VSConfig
'
:
@
class
method
def
from_dict
(
cls
,
data
:
Dict
[
str
,
Union
[
float
,
str
]],
tolerance
:
Dict
[
str
,
Union
[
float
,
str
]]
=
None
)
->
'
VSConfig
'
:
"""
Build from dictionary.
"""
...
...
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