End to end demonstration of how to create, run and download simulation results using the Lexset management API.
import lexsetAPI as lexsettoken ="user token"#your tokenSimulationConfig ="config.yaml"numberOfImages =1#The number of data points you want your simulation to generateuserID =999#your user IDnodes =1#The number GPU nodes you want to use to run this simulationsimulationName ="test mutiple nodes"simulationDescription ="test five nodes API job"randomSeed =1mySimulation = lexset.simulation(token,SimulationConfig,numberOfImages,userID,nodes,simulationName,simulationDescription,randomSeed)mySimulation.createSimulation()print("Your dataset ID")print(mySimulation.dataID)#get your dataset IDprint("Your simulation ID")print(mySimulation.simID)#get your Simulation IDmySimulation.startSimulation()while mySimulation.isComplete ==False: mySimulation.getStatus()print("simulation running") mySimulation.getProgress()else:print("simulation is done!") mySimulation.downloadData()