def write_file(self):
        f_wel = open(self.fn_path, 'w')
        f_wel.write('%s\n' % self.heading)
        line = (' {0:9d} {1:9d}'.format(self.stress_period_data.mxact, self.ipakcb))


        for opt in self.options:
            line += ' ' + str(opt)
        line += '\n'
        f_wel.write(line)

        if self.specify and self.parent.version == 'mfnwt':
            f_wel.write('SPECIFY {0:10.5g} {1:10d}\n'.format(self.phiramp, self.phiramp_unit))

        self.stress_period_data.write_transient(f_wel)
        f_wel.close()
Write the package file.
dataset/ETHPy150Open modflowpy/flopy/flopy/modflow/mfwel.py/ModflowWel.write_file