Esempio n. 1
0
import os
import site
site.addsitedir(os.path.dirname(__file__))

# add the library to path
site.addsitedir(
    os.path.join(os.path.dirname(os.path.dirname(__file__)), "src/python"))
import unittest
# remove all the layers of submodules

from add_to_path import add_to_path
add_to_path()

from libsbml_draw.layout import SBMLlayout
from tests.model_strings import schmierer2008
import numpy

numpy.random.seed(1)


class TestAttributes(unittest.TestCase):
    def setUp(self) -> None:
        self.sl = SBMLlayout(schmierer2008, applyRender=True)

    def tearDown(self) -> None:
        del self.sl

    def testNodeFontSize(self):
        # default font size
        self.sl.setNodeFontSize("S2_n", 24)
        # self.sl.drawNetwork()
Esempio n. 2
0
'''
Author         : Oguzhan Gencoglu
Contact        : [email protected]
Created        : 16.11.2015
Latest Version : 16.11.2015
'''

# Import required packages
from set_wd import set_wd
import numpy as np
import datetime as dt
import numpy as np
import zipfile
import StringIO
from add_to_path import add_to_path
add_to_path("Templates\Python\Dates")
from date_functions import int2date, parse_date_column
add_to_path("Templates\Python\Other")
from unique_rows import unique_rows
from itertools import groupby
import matplotlib.pyplot as plt

if __name__ == '__main__':
    
    '''
    zf = zipfile.ZipFile('all_dates.zip', 'r')
    for f in zf.namelist():
        sio = StringIO.StringIO(zf.read(f))  
        all_dates = sio.read().split('\r\n')[:-1]
    zf.close()