Area of a section

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
vellamike

Area of a section

Post by vellamike » Fri Nov 26, 2010 7:01 am

What is the best way to find the area of an entire section? I know you can use

Code: Select all

h.area(x,sec=sectionname)
and figure out what values of x you need to avoid double-counting and iterate over all the x values, summing the areas of each segment, but I was wondering if there was some more elegant way to do this, something along the lines of

Code: Select all

area=sectionname.area
Thanks in advance.

ted
Site Admin
Posts: 5652
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Area of a section

Post by ted » Fri Nov 26, 2010 11:17 am

No "total section area" method is built in. Nothing says you can't cobble up a function that takes a section as an argument and returns its total area.

vellamike

Re: Area of a section

Post by vellamike » Tue Nov 30, 2010 11:40 am

OK just thought I'd check, thanks!

Post Reply