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