Export solver parameters to INPUT "filepath". Sorted alphabetically.
(self, filepath)
| 111 | self.sp[splitLine[0].strip()] = splitLine[1].strip() |
| 112 | |
| 113 | def write(self, filepath): |
| 114 | """ |
| 115 | Export solver parameters to INPUT "filepath". Sorted alphabetically. |
| 116 | """ |
| 117 | f = open(filepath, 'w') |
| 118 | for key, value in sorted(self.sp.items()): |
| 119 | if not(type(value) is str): |
| 120 | raise TypeError('All solver parameters must be strings') |
| 121 | f.write('%s: %s\n' % (key, value)) |