Search found 17 matches
- Fri May 29, 2020 2:18 pm
- Forum: OS X
- Topic: Syntax Warning
- Replies: 1
- Views: 14466
Syntax Warning
I'm getting a syntax warning whenever I run my code, but I have no idea where it could be coming from. The warning is: <stdin>:114: SyntaxWarning: "is not" with a literal. Did you mean "!="? Here is example output from hoc code that builds a simplified stellate cell as a template...
- Fri May 29, 2020 1:50 pm
- Forum: OS X
- Topic: Running hoc files from sublime text 3
- Replies: 1
- Views: 13521
Re: Running hoc files from sublime text 3
I found a solution to my own question. The shell_cmd needs to be a string argument. { "shell_cmd": "nrngui \"$file\"", "selector": "source.Neuron", "file_regex": "^\\s*File \"(...*?)\", line ([0-9]*)" } Once this works, ...
- Thu May 28, 2020 5:05 pm
- Forum: OS X
- Topic: Running hoc files from sublime text 3
- Replies: 1
- Views: 13521
Running hoc files from sublime text 3
Hi, I was wondering if anyone had experience running hoc files in sublime text 3? I am tyring to write a build-system file so that sublime text can run and show output from the hoc file but I'm getting no output when I use the following build-system code: { "shell_cmd": ["nrngui"...
- Wed May 27, 2020 5:22 pm
- Forum: OS X
- Topic: NRNGUI not working from command line after switch to zsh
- Replies: 10
- Views: 21917
Re: NRNGUI not working from command line after switch to zsh
I wanted to come back to this topic to mention that I can run nrngui from the command line to launch the Neuron Main Menu. What was happening was what you alluded to, I had an old x86_64 folder in my home directory that wasn't recompiled for the latest neuron version on my system. I even tested out ...
- Tue Apr 07, 2020 3:47 pm
- Forum: OS X
- Topic: NRNGUI not working from command line after switch to zsh
- Replies: 10
- Views: 21917
Re: NRNGUI not working from command line after switch to zsh
Thank you! Got a simple hoc file running. I'm super rusty, it's been a good year and a half since I've had my head buried in Neuron.
- Mon Apr 06, 2020 10:00 pm
- Forum: OS X
- Topic: NRNGUI not working from command line after switch to zsh
- Replies: 10
- Views: 21917
Re: NRNGUI not working from command line after switch to zsh
Shouldn't I be able to just run 'nrngui' from the command line though and get the little window with the run buttons and what not? I was just trying that before I go on to recompiling mod files.
- Mon Mar 30, 2020 12:14 pm
- Forum: OS X
- Topic: NRNGUI not working from command line after switch to zsh
- Replies: 10
- Views: 21917
Re: NRNGUI not working from command line after switch to zsh
I'm on a similar journey as the OP, I would like to get all my python code working in Catalina, but I started just trying to get the nrngui command to work in .zsh and have been unsuccessful. I did not have a .zshenv file in my home directory so I created one, but that did not help. I seem to have r...
- Fri Aug 24, 2018 7:42 pm
- Forum: Other questions
- Topic: Getting a NetCon location on a dendrite
- Replies: 8
- Views: 5604
Re: Getting a NetCon location on a dendrite
Okay, thanks for the push, things popped for me a bit. This is where I'm at now: print NetCon[index].postcell {x = NetCon[index].preloc print x, pop_section()} {x = NetCon[index].postloc print secname(), "( ",x,")" pop_section()} print NetCon[index].syn and it returns cell_object...
- Fri Aug 24, 2018 1:50 pm
- Forum: Other questions
- Topic: Getting a NetCon location on a dendrite
- Replies: 8
- Views: 5604
Re: Getting a NetCon location on a dendrite
Those return the locatoin on the dendrite but not the dendrite number. Given the following code: NetCon[index].postcell NetCon[index].preloc NetCon[index].postloc NetCon[index].syn the return is: cell_object[0] -1 0.9516129 synapse_receptor_nmodl[0] My preloc is a vecstim object, so as expected it r...
- Thu Aug 23, 2018 6:54 pm
- Forum: Other questions
- Topic: Getting a NetCon location on a dendrite
- Replies: 8
- Views: 5604
Re: Getting a NetCon location on a dendrite
Synapses were in the right place when I used the pointgroupmanager, for some reason I had problems using it before. Still I'd like to be able to verify things in hoc.
- Thu Aug 23, 2018 3:28 pm
- Forum: Other questions
- Topic: Getting a NetCon location on a dendrite
- Replies: 8
- Views: 5604
Re: Getting a NetCon location on a dendrite
Yes, thank you, I've read that many times. There is a postcell() method but that returns the cell. Am I even doing the right thing here? I want to comfirm that my synapses are in the right location on the dendrite of the cell after I assign them to a NetCon object.
- Wed Aug 22, 2018 6:39 pm
- Forum: Other questions
- Topic: Getting a NetCon location on a dendrite
- Replies: 8
- Views: 5604
Getting a NetCon location on a dendrite
I'm having trouble with a simple issue. What commands do I need to do to get the location of a NetCon object on a dendrite? Was playing with SectionRef() and couldn't get a parent or child, been stuck on this for a while.
- Wed Aug 15, 2018 3:00 pm
- Forum: Other questions
- Topic: Passing an object parameter to execute() in a function
- Replies: 5
- Views: 3606
Re: Passing an object parameter to execute() in a function
Thank you! Ok,I beleive I understand. I cannot declare an objref in a function or porcedure but I can return a localobj from a function and have an objref point to the returned localobj. So, back to the orignal problem. If I use excute() in a function then any objref refered to within excute() must ...
- Mon Aug 13, 2018 7:17 pm
- Forum: Other questions
- Topic: Passing an object parameter to execute() in a function
- Replies: 5
- Views: 3606
Re: Passing an object parameter to execute() in a function
I think I misunderstood the use of obfunc, I saw it as being something different than a func or proc call and hence I thought I could get away without declarying an objref outside the obfunc type function. Yet, I still have a hang up in my understanding, why can you declare tlist as a localobj in ma...
- Fri Aug 03, 2018 5:20 pm
- Forum: Other questions
- Topic: Passing an object parameter to execute() in a function
- Replies: 5
- Views: 3606
Passing an object parameter to execute() in a function
I'm am trying to build an object function that adds a cluster of synapses to a dendrite of a neuron that is defined in a class, and returns the synapse objects in a List. I would like to pass the synapse (MOD object) as a parameter in the function. To attempt this I am passing the name of the MOD ob...