forked from enviPath/enviPy
Import Export cycle of probs
This commit is contained in:
@@ -214,6 +214,7 @@ class EdgeExportSchema(RefEdgeExportSchema):
|
||||
start_nodes: List[RefNodeExportSchema]
|
||||
end_nodes: List[RefNodeExportSchema]
|
||||
scenarios: List[RefScenarioExportSchema]
|
||||
kv: Optional[dict]
|
||||
|
||||
|
||||
class PathwayExportSchema(RefPathwayExportSchema):
|
||||
@@ -623,6 +624,7 @@ class PackageImporter:
|
||||
new_e.description = e.description
|
||||
new_e.aliases = e.aliases
|
||||
new_e.edge_label = self._cache[e.edge_label.uuid]
|
||||
new_e.kv = e.kv
|
||||
new_e.save()
|
||||
|
||||
for sn in e.start_nodes:
|
||||
|
||||
Reference in New Issue
Block a user