writers Module

class neuroml.writers.ArrayMorphWriter

Bases: object

For now just testing a simple method which can write a morphology, not a NeuroMLDocument.

classmethod write(data, filepath)
class neuroml.writers.JSONWriter

Bases: object

Write a NeuroMLDocument to JSON, particularly useful when dealing with lots of ArrayMorphs.

classmethod write(neuroml_document, file)
classmethod write_to_mongodb(neuroml_document, db, host=None, port=None, id=None)
class neuroml.writers.NeuroMLHdf5Writer

Bases: object

classmethod write(nml_doc, h5_file_name, embed_xml=True, compress=True)
class neuroml.writers.NeuroMLWriter

Bases: object

classmethod write(nmldoc, file, close=True)

Writes from NeuroMLDocument to nml file in future can implement from other types via chain of responsibility pattern.