Skip to content

Commit

Permalink
Relax h5py constraint (#857)
Browse files Browse the repository at this point in the history
and remove the deprecated fst/ files
  • Loading branch information
Benoit Coste authored Nov 26, 2020
1 parent aa94eb5 commit f9561c8
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 392 deletions.
4 changes: 2 additions & 2 deletions benchmarks/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import neurom as nm
import neurom.io
import neurom.fst._core
from neurom.fst._core import FstNeuron
from neurom.check import neuron_checks as nc
from neurom.check import structural_checks as sc

Expand Down Expand Up @@ -114,7 +114,7 @@ class TimeChecks:
def setup(self):
path = Path(DATA_DIR, 'h5/v1/bio_neuron-000.h5')
self.data_wrapper = neurom.io.load_data(path)
self.neuron = neurom.fst._core.FstNeuron(self.data_wrapper)
self.neuron = FstNeuron(self.data_wrapper)

def time_has_sequential_ids(self):
sc.has_sequential_ids(self.data_wrapper)
Expand Down
12 changes: 4 additions & 8 deletions neurom/fst/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
"""Legacy module, replaced by neurom.features."""
from warnings import warn
from neurom.features import neuritefunc as _neuritefunc
from neurom.features import neuronfunc as _neuronfunc
from neurom.features import sectionfunc
"""This module used to have all fst related function that were deprecated and now removed.
from neurom.features import NEURITEFEATURES, NEURONFEATURES, get, register_neurite_feature
warn('neurom.fst is being deprecated and will be removed in NeuroM v1.5.0,'
' replace it by neurom.features', DeprecationWarning)
The class FstNeuron is still here and has not been moved to a better
suited plane since moving it would imply a breaking change.
"""
35 changes: 0 additions & 35 deletions neurom/fst/_bifurcationfunc.py

This file was deleted.

34 changes: 0 additions & 34 deletions neurom/fst/_neuritefunc.py

This file was deleted.

34 changes: 0 additions & 34 deletions neurom/fst/_neuronfunc.py

This file was deleted.

34 changes: 0 additions & 34 deletions neurom/fst/sectionfunc.py

This file was deleted.

43 changes: 0 additions & 43 deletions neurom/fst/tests/test_bifurcationfunc.py

This file was deleted.

34 changes: 0 additions & 34 deletions neurom/fst/tests/test_feature_compat.py

This file was deleted.

36 changes: 0 additions & 36 deletions neurom/fst/tests/test_get_features.py

This file was deleted.

43 changes: 0 additions & 43 deletions neurom/fst/tests/test_neuritefunc.py

This file was deleted.

Loading

0 comments on commit f9561c8

Please sign in to comment.