__init__

Package Contents

class __init__.NullHandler[source]
emit(record)[source]

Return sbpipe logo.

Returns:sbpipe logo
__init__.sbpipe_license()[source]

Return sbpipe license.

Returns:sbpipe license
__init__.sbpipe_version()[source]

Return sbpipe version.

Returns:sbpipe version
__init__.set_basic_logger(level="INFO")[source]

Set a basic StreamHandler logger. :param level: the level for this console logger

__init__.set_color_logger(level="INFO")[source]

Replace the current logging.StreamHandler with colorlog.StreamHandler. :param level: the level for this console logger

__init__.set_console_logger(new_level="NOTSET", current_level="INFO", nocolor=False)[source]

Set the console logger to a new level if this is different from NOTSET

Parameters:
  • new_level – the new level to set for the console logger
  • current_level – the current level to set for the console logger
  • nocolor – True if no colors shouls be used
__init__.set_logger(level="NOTSET", nocolor=False)[source]

Set the logger :param level: the level for the console logger :param nocolor: True if no colors shouls be used

__init__.sbpipe(create_project="", simulate="", parameter_scan1="", parameter_scan2="", parameter_estimation="", version=False, logo=False, license=False, nocolor=False, log_level="", quiet=False, verbose=False)[source]

SBpipe function.

Parameters:
  • create_project – create a project with the name as argument
  • simulate – model simulation using a configuration file as argument
  • parameter_scan1 – model one parameter scan using a configuration file as argument
  • parameter_scan2 – model two parameters scan using a configuration file as argument
  • parameter_estimation – model parameter estimation using a configuration file as argument
  • version – True to print the version
  • logo – True to print the logo
  • license – True to print the license
  • nocolor – True to print logging messages without colors
  • log_level – Set the logging level
  • quiet – True if quiet (CRITICAL+)
  • verbose – True if verbose (DEBUG+)
Returns:

0 if OK, 1 if trouble (e.g. a pipeline did not execute correctly).

__init__.main(argv=None)[source]

SBpipe main function.

Returns:0 if OK, 1 if trouble