コード例 #1
0
ファイル: Sim.py プロジェクト: synth2014/SimMyIdea
def writeModel(fileName: str):
    global model
    # Start creating the JSON directly from runtime model
    strJSON = Serializer.toJSON(model)
コード例 #2
0
ファイル: Sim.py プロジェクト: synth2014/SimMyIdea
def loadModel(fileName: str):
    """ Read the model from disk """
    global model
    model = Serializer.fromJSON(fileName)