process_output
OutputFileManager
Source code in process/core/process_output.py
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 43 | |
open_files(*, mode='w')
classmethod
Source code in process/core/process_output.py
11 12 13 14 15 16 17 18 | |
open_idempotence_files()
classmethod
Source code in process/core/process_output.py
20 21 22 23 24 25 26 27 28 29 30 | |
close_idempotence_files()
classmethod
Source code in process/core/process_output.py
32 33 34 35 36 37 38 | |
finish()
classmethod
Source code in process/core/process_output.py
40 41 42 43 | |
write(file, string)
Source code in process/core/process_output.py
46 47 48 49 50 51 52 | |
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
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | |
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
74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
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
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | |
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
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
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
126 127 128 129 130 131 132 133 134 | |
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
137 138 139 140 141 142 143 144 145 146 147 148 149 | |
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
152 153 154 155 156 157 158 159 160 161 162 | |
ovarre(file, descr, varnam, value, output_flag='')
Source code in process/core/process_output.py
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 | |
ocosts(file, varnam, descr, value)
Source code in process/core/process_output.py
197 198 | |
ovarrf(file, descr, varnam, value, output_flag='')
Source code in process/core/process_output.py
201 202 | |
ovarin(file, descr, varnam, value, output_flag='')
Source code in process/core/process_output.py
205 206 | |
ovarst(file, descr, varnam, value, output_flag='')
Source code in process/core/process_output.py
209 210 | |
obuild(file, descr, thick, total, variable_name='')
Source code in process/core/process_output.py
213 214 | |