Write the PWSCF input file.

        Args:
            filename (str): The string filename to output to.

def write_file(self, filename):
        """
        Write the PWSCF input file.

        Args:
            filename (str): The string filename to output to.
        """
        with open(filename, "w") as f:
            f.write(self.__str__())