Skip to content
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

ZMT zurich med tech

  1. Home
  2. Sim4Life
  3. Python API
  4. Interaction with Neuron results

Interaction with Neuron results

Scheduled Pinned Locked Moved Python API
2 Posts 2 Posters 439 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hüfer
    wrote on last edited by Hüfer
    #1

    Good morning,

    I am using the T-Neuro (Sim4Life V6.2) to simulate magnetic stimulation of a peripheral nerve. For further analysis I would like to use Python to interact with the results (e.g. loop over parameters, do calculations with results, change parameters depending on the results of previous simulations).
    The only way I could find so far was to save the NEURON results to a text file, then read data from the text file to do calculations and then change the settings for the next simulation (all automated in Python).

    Is there an easier way to access/interact with the NEURON results? (e.g. display them directly in the Console?)

    Thank you very much for your help

    Kind regards

    Jakob

    AntoninoMCA 1 Reply Last reply
    0
    • H Hüfer

      Good morning,

      I am using the T-Neuro (Sim4Life V6.2) to simulate magnetic stimulation of a peripheral nerve. For further analysis I would like to use Python to interact with the results (e.g. loop over parameters, do calculations with results, change parameters depending on the results of previous simulations).
      The only way I could find so far was to save the NEURON results to a text file, then read data from the text file to do calculations and then change the settings for the next simulation (all automated in Python).

      Is there an easier way to access/interact with the NEURON results? (e.g. display them directly in the Console?)

      Thank you very much for your help

      Kind regards

      Jakob

      AntoninoMCA Offline
      AntoninoMCA Offline
      AntoninoMC
      wrote on last edited by
      #2

      @Hüfer yes, you can access all the simulation results as well as the parameters of you EM-neuronal simulations using the Python interface. For example, you can access titration data, or the transmembrane voltage profiles stored on a point or line sensor data, etc. or you can dynamically change the stimulation pulse shape parameters (phase duration, amplitude, etc.).

      Sim4Life provides you already with some Python tutorials. There are at least 3 tutorials provided that show how to use Python to setup a T-Neuron simulation, how to run it and how to access the simulation results. Please have a look at these tutorials to learn Sim4Life programming (if you are a Python expert, learning will take you a day!).

      To access these tutorials, open the 'Scripter' panel in Sim4Life, and load one of the scripts in the folder opened when selecting "Open Example Script" clicking on the open folder button.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Search