Exemple #1
0
def main():
    redocs = load_neuroml()
    doc = Document(TableOfContents(), *redocs)

    opdir = os.path.join(TestLocations.getTestOutputDir(), 'neuroml')
    doc.to_html(Join(opdir, 'html'))
    doc.to_pdf(Join(opdir, 'all.pdf'))
Exemple #2
0
    def report_all(cls, output_loc="/tmp/neurtestout/"):
        op = [SectionNewPage(s.title, *s()) for s in ReportGenerator.subclasses]

        d = Document(TableOfContents(), *op)
        op_dir = TestLocations.getTestOutputDir()
        op_loc = Join(op_dir, "everything.pdf")
        d.to_pdf(op_loc)
def main():
    sections = run_tests()

    doc = Document(*sections)

    opdir = os.path.join(TestLocations.getTestOutputDir(), "quantity_exprs_valid")

    doc.to_html(os.path.join(opdir, "html"))
    doc.to_pdf(os.path.join(opdir, "all.pdf"))
Exemple #4
0
    def report_all(cls, output_loc="/tmp/neurtestout/"):
        op = [
            SectionNewPage(s.title, *s()) for s in ReportGenerator.subclasses
        ]

        d = Document(TableOfContents(), *op)
        op_dir = TestLocations.getTestOutputDir()
        op_loc = Join(op_dir, 'everything.pdf')
        d.to_pdf(op_loc)
def main():
    sections = run_tests()

    doc = Document(*sections)

    opdir = os.path.join(TestLocations.getTestOutputDir(),
                         'quantity_exprs_valid')

    doc.to_html(os.path.join(opdir, 'html'))
    doc.to_pdf(os.path.join(opdir, 'all.pdf'))
Exemple #6
0
def main():
    all_redocs = document_eqnsets(individual_reports = True)
    d = Document( TableOfContents(), *all_redocs)
    op_dir = TestLocations.getTestOutputDir()
    op_loc = os.path.join( op_dir, 'eqnsets', "all.pdf" )
    d.to_pdf(op_loc)
    #HTMLWriter.BuildHTML(d, TestLocations.getTestOutputDir() + '/html/')


    print d
Exemple #7
0
def document_eqnsets(individual_reports=True):

    all_redocs = []

    for f in TestLocations.getEqnSetFiles():
        f_basename = os.path.splitext( os.path.basename(f))[0]

        # Load the EqnSet:
        library_manager = NeuroUnitParser.File( open(f).read(), name=f_basename )

        # Create the documentation:
        local_redoc = MRedocWriterVisitor.build( library_manager)

        # Create a local documentation file:
        if individual_reports:
            doc = Document(TableOfContents(), local_redoc)
            doc.to_pdf( Join(TestLocations.getTestOutputDir(), 'eqnsets_%s.pdf' %f_basename  ) )

        # Add it to single large file:
        all_redocs.append( local_redoc )

    return all_redocs