def toDatasetPath(self, path, mode): """Valid values of *mode* are "rw" or "c".""" from miriad import CalData ds = CalData(path) handle = ds.open(mode) try: self.toDataset(handle) finally: handle.close() return self
def toDatasetPath (self, path, mode): """Valid values of *mode* are "rw" or "c".""" from miriad import CalData ds = CalData (path) handle = ds.open (mode) try: self.toDataset (handle) finally: handle.close () return self