예제 #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)