def write_input(self, input_filename, data_filename=None):
    '\n        Get the string representation of the main input file and write it.\n        Also writes the data file if the lammps_data attribute is set.\n\n        Args:\n            input_filename (string): name of the input file\n            data_filename (string): override the data file name with this\n        '
    if data_filename:
        data_filename = os.path.abspath(os.path.join(os.getcwd(), data_filename))
    if (data_filename and ('data_file' in self.lammps_input.settings)):
        self.lammps_input.settings['data_file'] = data_filename
        self.data_filename = data_filename
    self.lammps_input.write_file(input_filename)
    if self.lammps_data:
        self.lammps_data.write_file(filename=self.data_filename)
Get the string representation of the main input file and write it.
Also writes the data file if the lammps_data attribute is set.

Args:
    input_filename (string): name of the input file
    data_filename (string): override the data file name with this
def write_input(self, input_filename, data_filename=None):
    '\n        Get the string representation of the main input file and write it.\n        Also writes the data file if the lammps_data attribute is set.\n\n        Args:\n            input_filename (string): name of the input file\n            data_filename (string): override the data file name with this\n        '
    if data_filename:
        data_filename = os.path.abspath(os.path.join(os.getcwd(), data_filename))
    if (data_filename and ('data_file' in self.lammps_input.settings)):
        self.lammps_input.settings['data_file'] = data_filename
        self.data_filename = data_filename
    self.lammps_input.write_file(input_filename)
    if self.lammps_data:
        self.lammps_data.write_file(filename=self.data_filename)