Skip to content

Commit

Permalink
bring back imports to __init__ of core and view (#904)
Browse files Browse the repository at this point in the history
for backward compatibility
  • Loading branch information
asanin-epfl authored Apr 30, 2021
1 parent 14d7e99 commit 318b90f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions neurom/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

"""Core functionality and data types of NeuroM."""

# those imports here for backward compatibility
from neurom.core.soma import Soma
from neurom.core.neuron import Section, Neurite, Neuron
from neurom.core.population import Population
1 change: 1 addition & 0 deletions neurom/geom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import numpy as np
from scipy.spatial import ConvexHull
from neurom.core.dataformat import COLS
from neurom.geom.transform import translate, rotate


def bounding_box(obj):
Expand Down
4 changes: 4 additions & 0 deletions neurom/view/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

"""View tools to visualize morphologies."""
from neurom.view.view import (plot_neuron, plot_neuron3d,
plot_tree, plot_tree3d,
plot_soma, plot_soma3d,
plot_dendrogram)

0 comments on commit 318b90f

Please sign in to comment.