Skip to content
Snippets Groups Projects
Commit cc63015e authored by Stefano Borini's avatar Stefano Borini
Browse files

Removed residue from_json methods

parent e8e9b289
No related branches found
No related tags found
1 merge request!29Extract io layer to writer/reader class
......@@ -8,12 +8,3 @@ class CSVExtractorModel(BaseDataSourceModel):
row = Int()
column = Int()
cuba_type = String()
@classmethod
def from_json(cls, json_data):
return cls(
filename=json_data["filename"],
row=json_data["row"],
column=json_data["column"],
cuba_type=json_data["cuba_type"]
)
......@@ -5,7 +5,3 @@ from force_bdss.api import BaseMCOModel
class DakotaModel(BaseMCOModel):
value_types = List(String)
@classmethod
def from_json(cls, model_data):
return cls(value_types=model_data["value_types"])
......@@ -9,3 +9,4 @@ class BaseKPICalculatorModel(ABCHasStrictTraits):
def __init__(self, bundle, *args, **kwargs):
self.bundle = bundle
super(BaseKPICalculatorModel, self).__init__(*args, **kwargs)
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