How to use the cclib.io.filewriter.Writer function in cclib

To help you get started, we’ve selected a few cclib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cclib / cclib / test / io / testxyzwriter.py View on Github external
def test_subclass(self):
        """Is the writer a subclass of the abstract file writer?"""
        fpath = os.path.join(__datadir__, "data/ADF/basicADF2007.01/dvb_gopt.adfout")
        self.assertTrue(os.path.exists(fpath))
        data = cclib.io.ccread(fpath)
        writer = cclib.io.xyzwriter.XYZ(data)
        self.assertTrue(isinstance(writer, cclib.io.filewriter.Writer))
        self.assertTrue(issubclass(type(writer), cclib.io.filewriter.Writer))