OpenSourceBrain / geppetto-osb

An OSB extension for Geppetto
http://www.opensourcebrain.org
3 stars 1 forks source link

More info on run (sim versions/processors/runtime) returned (AWS & NSG) #21

Open pgleeson opened 7 years ago

pgleeson commented 7 years ago

A text/json file should be saved when a simulation completes with info on the simulator/run time etc. These values should eventually be accessible to the end user on OSB.

pgleeson commented 6 years ago

Implemented in current version of jNeuroML for jnml & jnml_neuron. See https://github.com/NeuroML/NeuroML2/blob/development/LEMSexamples/LEMS_NML2_Ex5_DetCell.xml#L11

When attribute 'reportFile' is added to a LEMS file:

 <Target component="sim1" reportFile="report.txt"/>

it saves details of the simulation in that file, e.g.

# Report of running simulation with NEURON -- VERSION 7.5 master (6b4c19f) 2017-09-25
SimulationFile=/home/padraig/NeuroML2/LEMSexamples/LEMS_NML2_Ex5_DetCell_nrn.py
PythonVersion=2.7.12 (default, Dec  4 2017, 14:50:18)  [GCC 5.4.0 20160609]
SimulatorVersion=NEURON -- VERSION 7.5 master (6b4c19f) 2017-09-25
RealSimulationTime=0.0825700759888
SimulationSaveTime=0.11411190033

Geppetto could add that attr to the generated LEMS (jNeuroML needs to be updated on target server) and then checks for report.txt, and if present, (some of) the info to the user (e.g. by clicking on the green circle; add hint to tooltip that pops up on completion)

mattearnshaw commented 6 years ago

working with neuron at https://github.com/openworm/org.geppetto.frontend/commit/c440170dd229e87aa1bbb318424e64e5947b0dce https://github.com/openworm/org.geppetto.simulator.external/commit/d429454ff53c531afab47432be11175412287378 https://github.com/openworm/org.geppetto.model.neuroml/commit/c1e4174868949bc2682db65b72a59e6ba07c70cc

but change needed to JNeuroMLWriter because target string is hardcoded in Utils.extractLemsSimulationXml

pgleeson commented 4 years ago

This is live, but not very accessible... There is a file report.txt included with the simulation results which can be downloaded here:

Screenshot 2020-03-25 at 11 32 31

which gives details of the simulator, version, etc.

Screenshot 2020-03-25 at 11 34 30