def clrstat(self): """Reset file 'busy' status in the AIPS catalogue.""" cno = Obit.AIPSDirFindCNO( self._data.Disk, self._userno, self._data.Aname, self._data.Aclass, self._type, self._data.Aseq, self._err.me, ) Obit.AIPSDirStatus(self._data.Disk, self._userno, cno, 4, self._err.me) return
def exists(self, desc): """Checks that this instance of AIPSData refers to a dataset that is actually present in the AIPS catalogue.""" assert not self.err.isErr assert self.type cno = Obit.AIPSDirFindCNO( desc["disk"], desc["userno"], desc["name"], desc["klass"], self.type, desc["seq"], self.err.me, ) if cno == -1: OErr.PClear(self.err) return False return True