Beispiel #1
0
    def STARSint_hdlr(self, frameid, vals):
        """Called with information provided by the STARS interface."""

        # TODO: integgui shouldn't have to understand this level of
        # the stars protocol
        if Monitor.has_keys(vals, ['done', 'time_done']):
            if Monitor.has_keys(vals, ['errorclass', 'msg']):
                # --> there was an error in the STARS interface
                self.in_stars(frameid, 'E')
            elif (Monitor.has_keys(
                    vals, ['end_result', 'end_status1', 'end_status2'])
                  and (vals['end_result'] == 0) and (vals['end_status1'] == 0)
                  and (vals['end_status2'] == 0)):
                # --> STARS may have the file
                self.in_stars(frameid, 'T')
Beispiel #2
0
    def INSint_hdlr(self, frameid, vals):
        """Called with information provided by the instrument interface."""

        if Monitor.has_keys(vals, ['done', 'time_done', 'status', 'filepath']):
            self.transfer_done(frameid, vals['status'])

        elif vals.has_key('time_start'):
            self.transfer_started(frameid)