def _check_open(self):

        if not self.isopen:
            raise ClosedFileError("the file object is closed")
Check the state of the file.
dataset/ETHPy150Open PyTables/PyTables/tables/file.py/File._check_open