Commit 7966db36 authored by Georgios Dagkakis's avatar Georgios Dagkakis

deepcopy variables

parent 22151603
...@@ -45,7 +45,9 @@ class AllocationManagement(ObjectInterruption): ...@@ -45,7 +45,9 @@ class AllocationManagement(ObjectInterruption):
def readData(self): def readData(self):
G.CapacityDict=self.argumentDict['capacity'] G.CapacityDict=self.argumentDict['capacity']
G.CurrentCapacityDict=dict(G.CapacityDict) import copy
G.CurrentCapacityDict=copy.deepcopy(G.CapacityDict)
print G.CurrentCapacityDict
G.RouteDict=self.argumentDict['MAList'] G.RouteDict=self.argumentDict['MAList']
G.TargetPPOS=self.argumentDict['currentPPOS']['id'] G.TargetPPOS=self.argumentDict['currentPPOS']['id']
G.TargetPPOSqty=self.argumentDict['currentPPOS']['quantity'] G.TargetPPOSqty=self.argumentDict['currentPPOS']['quantity']
......
...@@ -51,8 +51,9 @@ class FutureDemandCreator(): ...@@ -51,8 +51,9 @@ class FutureDemandCreator():
G.PPOSLateness.append(0) G.PPOSLateness.append(0)
G.PPOSEarliness.append(0) G.PPOSEarliness.append(0)
G.currentCapacity = G.Capacity import copy
G.currentCapacity = copy.deepcopy(G.Capacity)
print G.currentCapacity
# PPOS initial disaggregation profile # PPOS initial disaggregation profile
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment