Search found 11 matches

by landoskape
Mon Sep 06, 2021 11:58 am
Forum: Getting started
Topic: how to display 3d coordinates of a segment
Replies: 9
Views: 19099

Re: how to display 3d coordinates of a segment

I've been trying to do this too. ahwillia, your code returns the n3d coordinates in python, but if you want the ~segment~ coordinates you need to do something a little more complicated. Here's a function that does exactly this for anyone looking for it. def returnSegmentCoordinates(section): # Get s...
by landoskape
Tue Aug 31, 2021 9:12 am
Forum: Other questions
Topic: Suppress output when loading hoc file using h(xopen(''))
Replies: 1
Views: 7413

Re: Suppress output when loading hoc file using h(xopen(''))

For anyone bothered by this: here's a python specific solution: from contextlib import contextmanager import sys, os @contextmanager def suppress_stdout(): with open(os.devnull, "w") as devnull: old_stdout = sys.stdout sys.stdout = devnull try: yield finally: sys.stdout = old_stdout with s...
by landoskape
Fri Aug 27, 2021 6:52 pm
Forum: Other questions
Topic: Suppress output when loading hoc file using h(xopen(''))
Replies: 1
Views: 7413

Suppress output when loading hoc file using h(xopen(''))

I'm running an optimization that requires me to reload cells frequently. Everytime I do so it outputs a "1" to the screen (I'm working in jupyter lab). How do I suppress this? I'm loading a .hoc file by using the following line: h('xopen("./filename.hoc")'); Thanks for your assis...
by landoskape
Fri Aug 27, 2021 6:49 pm
Forum: Anatomically detailed models
Topic: Import3d tool via Jupyter
Replies: 2
Views: 8897

Re: Import3d tool via Jupyter

Thank you Ted, sorry for the wrong location and thanks for your answer
by landoskape
Thu Aug 12, 2021 11:37 am
Forum: Anatomically detailed models
Topic: Import3d tool via Jupyter
Replies: 2
Views: 8897

Import3d tool via Jupyter

Question re: import3d tool. I'm using neuron in a jupyter lab environment. When I run the code: from neuron import h, gui It opens the neuron gui in XQuartz, but I can't find the import3d tool anywhere. Even if I run: h.load_file('import3d.hoc') Nothing changes and I still can't find the Import3d to...
by landoskape
Fri Mar 12, 2021 3:23 pm
Forum: Getting started
Topic: Find all point processes
Replies: 5
Views: 8922

Re: Find all point processes

That is super useful. Thanks for your help. And also: general thanks for being so present with this forum over the years. I'm sure it's made a huge difference in the use of Neuron in the community.
by landoskape
Thu Mar 11, 2021 11:43 am
Forum: Getting started
Topic: Find all point processes
Replies: 5
Views: 8922

Re: Find all point processes

I love this. I actually started doing something like this, but I'm going to name my list doomed now. Thanks
by landoskape
Mon Mar 08, 2021 4:37 pm
Forum: Getting started
Topic: Find all point processes
Replies: 5
Views: 8922

Find all point processes

Hi. It would be convenient for me to have a single function that removes all point processes from a cell. (Context: doing experiments where I inject current in different locations and measure the response across the whole cell). I know, I know, I should just keep track of all my point processes and ...
by landoskape
Tue Jan 05, 2021 3:17 pm
Forum: Getting started
Topic: Compiling Mod Files on Catalina
Replies: 8
Views: 11206

Re: Compiling Mod Files on Catalina

Thank you for reporting how you fixed the problem. So "Command Line Tools for XCode 12", which you installed first, isn't the same as "Xcode 12.1", which fixed the problem? Sorry for the delayed reply, glad to see that this conversation was useful. That's right -Command Line Too...
by landoskape
Sat Oct 24, 2020 1:08 pm
Forum: Getting started
Topic: Compiling Mod Files on Catalina
Replies: 8
Views: 11206

Re: Compiling Mod Files on Catalina

Problem solved. Running mknrndll called the libreadline function from the Xcode.app directory in applications. That folder doesn't exist without downloading Xcode, which I did from the app store. After downloading XCode (12.1), I compiled the mod directory again and it was successful.
by landoskape
Mon Oct 19, 2020 8:18 am
Forum: Getting started
Topic: Compiling Mod Files on Catalina
Replies: 8
Views: 11206

Compiling Mod Files on Catalina

Hi. I just downloaded NEURON on Mac Catalina (10.15.7) and am trying to compile mod files from modeldb. I have tried two ways, dragging a mod folder (with a list of .mod files in it) to the mknrndll application. I have also tried navigating to the mod folder in a terminal and running mknrndll direct...