示例#1
0
    def get(self, name=''):
        '''Get Gnuplot instance from list and verify whether it's alive.'''

        item = NamedList.get(self, name)
        if item is None:
            return None

        if not item.is_alive():
            logging.warning('Gnuplot not alive, creating new instance')
            del self[name]
            item = NamedList.get(self, name)

        return item
示例#2
0
    def get(self, name=''):
        '''Get Gnuplot instance from list and verify whether it's alive.'''

        item = NamedList.get(self, name)
        if item is None:
            return None

        if not item.is_alive():
            logging.warning('Gnuplot not alive, creating new instance')
            del self[name]
            item = NamedList.get(self, name)

        return item
示例#3
0
 def __init__(self):
     NamedList.__init__(self,
                        'plot',
                        type=NamedList.TYPE_ACTIVE,
                        shared_name='namedlist_gnuplot')
示例#4
0
 def __init__(self):
     NamedList.__init__(self, 'plot', type=NamedList.TYPE_ACTIVE,
             shared_name='namedlist_gnuplot')