Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficulty running with both -nrn and -f worm #113

Closed
slarson opened this issue Nov 3, 2016 · 3 comments
Closed

Difficulty running with both -nrn and -f worm #113

slarson opened this issue Nov 3, 2016 · 3 comments
Assignees

Comments

@slarson
Copy link
Member

slarson commented Nov 3, 2016

/Release/Sibernetic -f worm -nrn /home/[..]/sibernetic_NEURON/avm.hoc

Not currently working (doesn’t run NEURON in the background)

/Release/Sibernetic -nrn /home/[..]/sibernetic_NEURON/avm.hoc

Without -f worm, it launches neuron in the background but only runs the falling cube example

cc: @pgleeson

@pgleeson
Copy link
Member

pgleeson commented Nov 3, 2016

This might just consist of updating the section in the README for more complete instructions for getting it running. A start on this is here:

Now it's possible to run the physical and neuronal simulations together. For this you need sibernetic_NEURON also. Don't forget to add the path to sibernetic_NEURON into your PYTHONPATH. You just need to run Sibernetic with command argument '-nrn ' where value is the path to NEURON simulation file (*.hoc e.g.). After that Sibernetic will init sibernetic_NEURON with the appropriate simulation file and same timeStep also. You should indicate from what segments of NEURON's model you'd like to read data (currently Voltage). After each step of the Sibernetic simulation it will run one step of the NEURON simulation and read data from it and update the signal array in Sibernetic. For now, it actually works in test mode list of segments is hardcoded so if you'd like to work with another list of segments you need rewrite this part of code and recompile Sibernetic.

If you have Sibernetic correctly installed, the following should be sufficient to get this running:

git clone https://github.com/openworm/sibernetic_NEURON.git
export PYTHONPATH=./sibernetic_NEURON:./src
./Release/Sibernetic -nrn ./sibernetic_NEURON/models/celegans/_ria.hoc  -f worm

skhayrulin added a commit that referenced this issue Nov 9, 2016
@skhayrulin
Copy link
Member

@slarson @pgleeson I've finally found problem of incorrect work - main reason was that if we run worm configuration then it run old sinusoidal pattern generator so I've fixed it now and if you've indicated that you're trying to run worm config with -nrn key it will start neuron simulation and sibernetic simultaneously. Next step is to eliminate hardcoded muscle section from simulation and make it universal maybe read it from configuration file what do you think?

@pgleeson
Copy link
Member

pgleeson commented Nov 9, 2016

Great @skhayrulin! Have managed to get the worm model & Neuron running locally.

I'd recommend having the default behaviour still be that the worm runs with the Python based sine wave generator if no other options are given. This way users can see interesting behaviour with just Sibernetic installed before they need to use Neuron, c302, etc.

@pgleeson pgleeson closed this as completed Nov 9, 2016
pgleeson added a commit to pgleeson/sibernetic that referenced this issue Nov 22, 2016
…into openworm-development2

* 'development' of https://github.com/openworm/sibernetic:
Continuing my work with issue openworm#114
Add usage function in main.cpp working with issue openworm#114
Update README.md
Fix issue openworm#113.
Add tolower transformation for string with device type in input
arguments.
Fixed a repo metadata label bug
Missing build line for owNeuronSimulator.cpp in the OS X makefile.
Create .openworm.yml
pgleeson added a commit to pgleeson/sibernetic that referenced this issue Nov 22, 2016
* openworm-development2:
  Continuing my work with issue openworm#114
  Add usage function in main.cpp working with issue openworm#114
  Update README.md
  Fix issue openworm#113.
  Add tolower transformation for string with device type in input arguments.
  Fixed a repo metadata label bug
  Missing build line for owNeuronSimulator.cpp in the OS X makefile.
  Create .openworm.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants