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
Exemple #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
 def __init__(self):
     NamedList.__init__(self,
                        'plot',
                        type=NamedList.TYPE_ACTIVE,
                        shared_name='namedlist_gnuplot')
Exemple #4
0
 def __init__(self):
     NamedList.__init__(self, 'plot', type=NamedList.TYPE_ACTIVE,
             shared_name='namedlist_gnuplot')