Skip to content
Snippets Groups Projects
Commit 9fcbf22b authored by Danilo Ferreira de Lima's avatar Danilo Ferreira de Lima
Browse files

Switched staticmethod with classmethod.

parent 09722588
No related branches found
No related tags found
1 merge request!26Added example for SCS.
Pipeline #132015 passed
......@@ -36,8 +36,8 @@ class VSConfig(object):
self.pressure_tol = deepcopy(other.pressure_tol)
self.gas = deepcopy(other.gas)
@staticmethod
def load(proposalNumber: int, runNumbers: Union[int, List[int]]) -> 'VSConfig':
@classmethod
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)
@staticmethod
def from_dict(data: Dict[str, Union[float, str]], tolerance: Dict[str, Union[float, str]]=None) -> 'VSConfig':
@classmethod
def from_dict(cls, data: Dict[str, Union[float, str]], tolerance: Dict[str, Union[float, str]]=None) -> 'VSConfig':
"""
Build from dictionary.
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment