def __call__(self, frame):
    if (frame.type == core.G3FrameType.Calibration):
        if ('BolometerProperties' in frame):
            bp_id = 'BolometerProperties'
        elif ('NominalBolometerProperties' in frame):
            bp_id = 'NominalBolometerProperties'
        else:
            raise RuntimeError('BolometerProperties fucked')
        self.bolo_props = frame[bp_id]
        self.write_config()
    elif (frame.type == core.G3FrameType.Wiring):
        self.wiring_map = frame['WiringMap']
        self.write_config()
def __call__(self, frame):
    if (frame.type == core.G3FrameType.Calibration):
        if ('BolometerProperties' in frame):
            bp_id = 'BolometerProperties'
        elif ('NominalBolometerProperties' in frame):
            bp_id = 'NominalBolometerProperties'
        else:
            raise RuntimeError('BolometerProperties fucked')
        self.bolo_props = frame[bp_id]
        self.write_config()
    elif (frame.type == core.G3FrameType.Wiring):
        self.wiring_map = frame['WiringMap']
        self.write_config()