process_output
OutputFileManager
Source code in process/core/process_output.py
9 10 11 12 13 14 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 | |
open_files(output_prefix, *, mode='w')
classmethod
Source code in process/core/process_output.py
10 11 12 13 14 15 16 17 | |
open_idempotence_files(output_prefix)
classmethod
Source code in process/core/process_output.py
19 20 21 22 23 24 25 26 27 28 29 | |
close_idempotence_files(output_prefix)
classmethod
Source code in process/core/process_output.py
31 32 33 34 35 36 37 | |
finish()
classmethod
Source code in process/core/process_output.py
39 40 41 42 | |
write(file, string)
Source code in process/core/process_output.py
45 46 47 48 49 50 51 | |
ocentr(file, string, width, *, character='*')
Write a centred header within a line of characters to a file
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file
|
the integer unit of the file |
required | |
string
|
str
|
the heading text |
required |
width
|
int
|
the desired with of the header |
required |
character
|
the character to pad the heading with () (Default value = "") |
'*'
|
Source code in process/core/process_output.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
ostars(file, width, *, character='*')
Write a line of characters to a file
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file
|
the integer unit of the file |
required | |
width
|
int
|
the desired with of the line |
required |
character
|
the character to fill the line with () (Default value = "") |
'*'
|
Source code in process/core/process_output.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 | |
oheadr(file, string, *, width=110, character='*')
Write a centred header within a line of characters between two blank lines
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file
|
the integer unit of the file |
required | |
string
|
str
|
the heading text |
required |
width
|
int
|
the desired with of the header |
110
|
character
|
the character to pad the heading with () (Default value = "") |
'*'
|
Source code in process/core/process_output.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | |
oshead(file, string, *, width=80, character='*')
Write a short centred header within a line of characters between two blank lines
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file
|
the integer unit of the file |
required | |
string
|
str
|
the heading text |
required |
width
|
int
|
the desired with of the header |
80
|
character
|
the character to pad the heading with () (Default value = "") |
'*'
|
Source code in process/core/process_output.py
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
oblnkl(file)
Write a blank line to a file
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file
|
the integer unit of the file |
required |
Source code in process/core/process_output.py
125 126 127 128 129 130 131 132 133 | |
osubhd(file, string)
Write a subheading between two blank lines
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file
|
the integer unit of the file |
required | |
string
|
the heading text |
required |
Source code in process/core/process_output.py
136 137 138 139 140 141 142 143 144 145 146 147 148 | |
ocmmnt(file, string)
Write a comment to a file
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file
|
the integer unit of the file |
required | |
string
|
str
|
the comment text |
required |
Source code in process/core/process_output.py
151 152 153 154 155 156 157 158 159 160 161 | |
ovarre(file, descr, varnam, value, output_flag='')
Source code in process/core/process_output.py
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | |
ocosts(file, varnam, descr, value)
Source code in process/core/process_output.py
198 199 | |
ovarrf(file, descr, varnam, value, output_flag='')
Source code in process/core/process_output.py
202 203 | |
ovarin(file, descr, varnam, value, output_flag='')
Source code in process/core/process_output.py
206 207 | |
ovarst(file, descr, varnam, value, output_flag='')
Source code in process/core/process_output.py
210 211 | |
obuild(file, descr, thick, total, variable_name='')
Source code in process/core/process_output.py
214 215 | |