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

Add python3.13 & remove EOL python3.8 #1132

Merged
merged 2 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/run-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v4
Expand Down
9 changes: 4 additions & 5 deletions neurom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
Load a morphology

>>> import neurom as nm
>>> m = nm.load_morphology('some/data/path/morph_file.swc')
>>> m = nm.load_morphology('tests/data/swc/Neuron.swc')

Obtain some morphometrics using the get function

Expand All @@ -43,16 +43,15 @@
files it finds and returns a list of morphologies

>>> import numpy as np # For mean value calculation
>>> pop = nm.load_morphologies('some/data/directory')
>>> for m in pop:
... print 'mean section length', np.mean(nm.get('section_lengths', m))
>>> pop = nm.load_morphologies('tests/data/valid_set')
>>> mean_section_lengths = [np.mean(nm.get('section_lengths', m)) for m in pop]

Apply a function to a selection of neurites in a morphology or morphology population.
This example gets the number of points in each axon in a morphology population

>>> import neurom as nm
>>> filter = lambda n : n.type == nm.AXON
>>> mapping = lambda n : len(n.points)
>>> mapping = lambda n, section_type : len(n.points)
>>> n_points = [n for n in nm.iter_neurites(pop, mapping, filter)]
"""
from importlib.metadata import version
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
name = "neurom"
description = "NeuroM: a light-weight neuron morphology analysis package"
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
license = { file = "LICENSE.txt" }
authors = [
{ name = "Blue Brain Project, EPFL" },
Expand All @@ -19,7 +19,6 @@ classifiers = [
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down Expand Up @@ -78,10 +77,11 @@ testpaths = [
[tool.black]
line-length = 100
target-version = [
'py38',
'py39',
'py310',
'py311',
'py312',
'py313',
]
skip-string-normalization = true
include = 'neurom\/.*\.py$|tests\/.*\.py$|doc\/source\/conf\.py$|setup\.py$|examples\/.*\.py$'
Expand Down
7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ envlist =
coverage
tutorial
check-packaging
py{38,39,310,311,312,313}
py{39,310,311,312,313}

[testenv]
deps =
Expand Down Expand Up @@ -97,9 +97,8 @@ convention = google

[gh-actions]
python =
3.8: py38, lint
3.9: py39, docs
3.9: py39, lint
3.10: py310, tutorial
3.11: py311, check-packaging
3.12: py312
3.12: py312, docs
3.13: py313
Loading