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

fix examples after move to v3 #1091

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions examples/get_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def pprint_stats(data):

# Get some soma information
# Soma radius and surface area
print("Soma radius", nm.get('soma_radii', m)[0])
print("Soma surface area", nm.get('soma_surface_areas', m)[0])
print("Soma radius", nm.get('soma_radius', m))
print("Soma surface area", nm.get('soma_surface_area', m))

# Get information about neurites
# Most neurite data can be queried for a particular type of neurite.
Expand All @@ -81,23 +81,23 @@ def pprint_stats(data):
# to warm up...

# number of neurites
print('Number of neurites (all):', nm.get('number_of_neurites', m)[0])
print('Number of neurites (all):', nm.get('number_of_neurites', m))
print('Number of neurites (axons):',
nm.get('number_of_neurites', m, neurite_type=nm.NeuriteType.axon)[0])
nm.get('number_of_neurites', m, neurite_type=nm.NeuriteType.axon))
print('Number of neurites (apical dendrites):',
nm.get('number_of_neurites', m, neurite_type=nm.NeuriteType.apical_dendrite)[0])
nm.get('number_of_neurites', m, neurite_type=nm.NeuriteType.apical_dendrite))
print('Number of neurites (basal dendrites):',
nm.get('number_of_neurites', m, neurite_type=nm.NeuriteType.basal_dendrite)[0])
nm.get('number_of_neurites', m, neurite_type=nm.NeuriteType.basal_dendrite))

# number of sections
print('Number of sections:',
nm.get('number_of_sections', m)[0])
nm.get('number_of_sections', m))
print('Number of sections (axons):',
nm.get('number_of_sections', m, neurite_type=nm.NeuriteType.axon)[0])
nm.get('number_of_sections', m, neurite_type=nm.NeuriteType.axon))
print('Number of sections (apical dendrites):',
nm.get('number_of_sections', m, neurite_type=nm.NeuriteType.apical_dendrite)[0])
nm.get('number_of_sections', m, neurite_type=nm.NeuriteType.apical_dendrite))
print('Number of sections (basal dendrites):',
nm.get('number_of_sections', m, neurite_type=nm.NeuriteType.basal_dendrite)[0])
nm.get('number_of_sections', m, neurite_type=nm.NeuriteType.basal_dendrite))

# number of sections per neurite
print('Number of sections per neurite:',
Expand Down
Loading