write_new_in_dat
Modifies the PROCESS input file IN.DAT so all the iteration variables are given their values from the output file MFILE.DAT.
feasible_point(filename, position)
Function to check for feasible solution before creating new IN.DAT, or to determine the first or last feasible point in a scan
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
name of MFILE.DAT to read |
required | |
position
|
e.g first or last |
required |
Returns:
| Name | Type | Description |
|---|---|---|
scanPoint |
scan number to use when writing new file |
Source code in process/core/io/write_new_in_dat.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
get_iteration_variables(filename, scan)
Function to get a list of the iteration variables and their values from MFILE.DAT
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
name of MFILE.DAT to read |
required | |
scan
|
scan number to use |
required |
Returns:
| Name | Type | Description |
|---|---|---|
iteration_vars |
dictionary of iteration variables in MFILE and their values. |
Source code in process/core/io/write_new_in_dat.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
replace_iteration_variables(iteration_vars, in_data)
Function to replace the iteration variables in IN.DAT if the variable is not defined in IN.DAT it will add the variable to the end of the file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
iteration_vars
|
dictionary of iteration variables from MFILE.DAT and their values |
required | |
in_data
|
IN.DAT data object. |
required |
Source code in process/core/io/write_new_in_dat.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
main(args=None)
Source code in process/core/io/write_new_in_dat.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | |