Skip to content

Commit 4fa0de7

Browse files
committed
fix(writers): correct import
1 parent a201a2b commit 4fa0de7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

neuroml/writers.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import typing
22

33
import neuroml
4-
import neuroml.arraymorph.ArrayMorphology
4+
from neuroml.arraymorph import ArrayMorphology
55

66
"""Classes to write NeuroML to various formats."""
77

@@ -153,14 +153,14 @@ class ArrayMorphWriter(object):
153153
@classmethod
154154
def __write_single_cell(
155155
cls,
156-
array_morph: neuroml.arraymorph.ArrayMorphology,
156+
array_morph: ArrayMorphology,
157157
fileh,
158158
cell_id: typing.Optional[str] = None,
159159
):
160160
"""Write a array morphology to a file handler.
161161
162162
:param array_morph: a array morph object containing a morphology
163-
:type array_morph: neuroml.arraymorph.ArrayMorphology
163+
:type array_morph: ArrayMorphology
164164
:param fileh: pytables file object of file to write to
165165
:type fileh: pytables file object
166166
:param cell_id: id of cell
@@ -225,13 +225,13 @@ def __write_neuroml_document(cls, document: neuroml.NeuroMLDocument, fileh):
225225
@classmethod
226226
def write(
227227
cls,
228-
data: typing.Union[neuroml.NeuroMLDocument, neuroml.arraymorph.ArrayMorphology],
228+
data: typing.Union[neuroml.NeuroMLDocument, ArrayMorphology],
229229
filepath: str,
230230
):
231231
"""Write morphology to file in ArrayMorph format.
232232
233233
:param data: data to write
234-
:type data: neuroml.arraymorph.ArrayMorphology or neuroml.NeuroMLDocument
234+
:type data: ArrayMorphology or neuroml.NeuroMLDocument
235235
:param filepath: path of file to write to
236236
:type filepath: str
237237
@@ -243,7 +243,7 @@ def write(
243243
# Now instead we should go through a document/cell/morphology
244244
# hierarchy - this kind of tree traversal should be done recursively
245245

246-
if isinstance(data, neuroml.arraymorph.ArrayMorphology):
246+
if isinstance(data, ArrayMorphology):
247247
cls.__write_single_cell(data, fileh)
248248

249249
if isinstance(data, neuroml.NeuroMLDocument):

0 commit comments

Comments
 (0)