Esempio n. 1
0
    If the type is not one of the standard defined models, then it is checked to see if it is a valid genome.
    If so, the model and state files (if not set) are searched for in {Data}/models and {Data}/models/genes
"""

import os
import json
import numpy as np

from Modules.misc import oops, terminate, set_docstring, parse_options
from Modules.modelio import ModelIO
import Modules.genomics as genomics
import Modules.models as models
import Modules.frameops as frameops


set_docstring(__doc__)


def setup(options):
    """ Create model configuration """

    # set up our initial state

    errors = False

    # If user specified a path to a model, then we have to fix up the model_type.
    # If the path is just a model name, delete the path, this will ensure that
    # the correct paths get set up by ModelIO()

    print(options)
    if 'paths' in options and 'model' in options['paths']:
Esempio n. 2
0
def test_set_docstring():
    """ Test for misc.set_docstring """

    misc.set_docstring(_T1)
    assert misc._DOCSTRING == _T1