Пример #1
0
                    StyleDefinition, ClassMatchDefinition

    # Manager objects
    logging.debug('Setting up managers...')
    styles = StylesManager()
    notebook_queue = RunManager()

    settings = QSettingsManager()
    settings.set_defaults({
        'Pathomx/Is_setup': False,
        'Pathomx/Current_version': '0.0.1',
        'Pathomx/Update/Latest_version': '0.0.1',
        'Pathomx/Update/Last_checked': None,
        'Pathomx/Offered_registration': False,

        'Plugins/Paths': [],
        'Plugins/Disabled': [],

        'Resources/MATLAB_path': 'matlab',

        'Editor/Snap_to_grid': False,
        'Editor/Show_grid': True,
    })    


    mono_fontFamilies = {'Windows':'Courier New',
                    'Darwin': 'Menlo'}
    mono_fontFamily = mono_fontFamilies.get(platform.system(), 'Monospace')

    # Set Matplotlib defaults for nice looking charts
    mpl.rcParams['figure.facecolor'] = 'white'
Пример #2
0
    'active': 'orange',
    'error': 'red',
    'inactive': 'white',
    'complete': 'green'
}

# ReadTheDocs
ON_RTD = os.environ.get('READTHEDOCS', None) == 'True'
if not ON_RTD:

    # Application settings
    settings = QSettingsManager()
    settings.set_defaults({
        'core/is_setup': False,
        'core/current_version': '0.0.1',
        'core/latest_version': '0.0.1',
        'core/last_time_version_checked': 0,
        'core/offered_registration': False,
    })

    # GLobal processing settings (e.g. peak annotations, class groups, etc.)
    config = ConfigManager()
    config.set_defaults({
        'annotation/peaks': [], # [(label, peak, tolerance)
        'annotation/sample_classes': {},  # {'sample_id': 'class_name' }
        'annotation/class_colors': {}, # {'class_name': color }
    })


    STATUS_QCOLORS = {
        'ready': QColor(255, 255, 255),
Пример #3
0
    # Manager objects
    logging.debug('Setting up managers...')
    styles = StylesManager()
    notebook_queue = RunManager()

    settings = QSettingsManager()
    settings.set_defaults({
        'Pathomx/Is_setup': False,
        'Pathomx/Current_version': '0.0.1',
        'Pathomx/Update/Latest_version': '0.0.1',
        'Pathomx/Update/Last_checked': 0,

        'Pathomx/Offered_registration': False,

        'Plugins/Paths': [os.path.join(os.path.expanduser("~"), 'PathomxPlugins')],
        'Plugins/Disabled': [],

        'Resources/MATLAB_path': 'matlab',

        'Editor/Snap_to_grid': False,
        'Editor/Show_grid': True,
        'Editor/Auto_position': False,
    })

    mono_fontFamilies = {'Windows': 'Courier New',
                    'Darwin': 'Menlo'}
    mono_fontFamily = mono_fontFamilies.get(platform.system(), 'Monospace')

    # Set Matplotlib defaults for nice looking charts
    mpl.rcParams['figure.facecolor'] = 'white'
Пример #4
0
# Manager objects
logging.debug('Setting up managers...')
styles = StylesManager()
notebook_queue = NotebookRunnerQueue()

# Pathomx global variables
current_tools = []
current_tools_by_id = {}
installed_plugin_names = {}
current_datasets = []
app_launchers = {}
file_handlers = {}
url_handlers = defaultdict(list)

logging.debug('Loading settings...')
settings = QSettingsManager()
settings.set_defaults({
    'Pathomx/Is_setup': False,
    'Pathomx/Current_version': '0.0.1',
    'Pathomx/Update/Latest_version': '0.0.1',
    'Pathomx/Update/Last_checked': None,
    'Pathomx/Offered_registration': False,
    'Plugins/Active': [],
    'Plugins/Disabled': [],
    'Plugins/Available': [],
    'Plugins/Paths': [],
    'Resources/MATLAB_path': 'matlab',
    'Editor/Snap_to_grid': False,
    'Editor/Show_grid': True,
})
Пример #5
0
    # Manager objects
    logging.debug('Setting up managers...')
    styles = StylesManager()
    notebook_queue = RunManager()

    settings = QSettingsManager()
    settings.set_defaults({
        'Pathomx/Is_setup': False,
        'Pathomx/Current_version': '0.0.1',
        'Pathomx/Update/Latest_version': '0.0.1',
        'Pathomx/Update/Last_checked': 0,

        'Pathomx/Offered_registration': False,

        'Plugins/Paths': [os.path.join(os.path.expanduser("~"), 'PathomxPlugins')],
        'Plugins/Disabled': [],

        'Resources/MATLAB_path': 'matlab',

        'Editor/Snap_to_grid': False,
        'Editor/Show_grid': True,
        'Editor/Auto_position': False,
    })

    mono_fontFamilies = {'Windows': 'Courier New',
                    'Darwin': 'Menlo'}
    mono_fontFamily = mono_fontFamilies.get(platform.system(), 'Monospace')

    # Set Matplotlib defaults for nice looking charts
    mpl.rcParams['figure.facecolor'] = 'white'