11import typing
22
33import 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