Пример #1
0
import plotly.graph_objs as go

py.sign_in('cheremushkin', 'fsdjBUr906AXZS6CsKmT')


# edit Events parameter for this calibration
def dissociation(self, x, y, hydrolysed):
    return -np.log(np.random.random()) / float(
        self.config['general']['koff']), 'dissociation', x, y


Events.dissociation = dissociation

if __name__ == "__main__":
    files = Files('gmpcpp')
    config = files.get_config()

    # get config data
    lateral_start = float(config['calibration']['lat-start'])
    lateral_end = float(config['calibration']['lat-end'])
    lateral_steps = int(config['calibration']['lat-steps'])
    koff_start = float(config['calibration']['koff-start'])
    koff_end = float(config['calibration']['koff-end'])
    koff_steps = int(config['calibration']['koff-steps'])

    # remove config data
    config.remove_section('calibration')
    files.change_config(config)
    files.create_config()

    x = np.linspace(lateral_start, lateral_end, num=lateral_steps)
Пример #2
0
from core.microtubule import Microtubule

from core.files import Files
from core.events import Events


def build(files):
    config = files.get_config()

    # создание микротрубочки
    mt = Microtubule(columns=int(config['mt']['protofilaments']),
                     timer=float(config['time']['timer']),
                     fps=float(config['time']['fps']),
                     events=Events(config),
                     mode='window',
                     window=5)

    mt.build()


if __name__ == "__main__":
    files = Files('flat')
    files.get_config()

    # build and generate output
    build(files)
    #files.make_csv(build(files))

#print("Выполнено за {} секунд".format((stop - start)))