def _check_writable(self):

        if not self._iswritable():
            raise FileModeError("the file is not writable")
Check whether the file is writable.
dataset/ETHPy150Open PyTables/PyTables/tables/file.py/File._check_writable