Skip to content

Commit

Permalink
fix examples after move to v3 (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeplf authored Jan 16, 2024
1 parent 728c69b commit a6d15b9
Showing 1 changed file with 10 additions and 10 deletions.
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

0 comments on commit a6d15b9

Please sign in to comment.