-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsection.py
61 lines (50 loc) · 1.39 KB
/
section.py
1
2
3
4
5
6
7
8
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
from regularregioncontainer import *
class Section(RegularRegionContainer):
"""
SECTION Start of cooling section region definition.
The data must end with an ENDSECTION. It can enclose any number of other commands.
If it is desired to repeat the section definitions, the control variable NSECTIONS should be
set >1 and a BEGS command is used to define where to start repeating.
"""
begtag = 'SECTION'
endtag = 'ENDSECTION'
num_params = 0
for001_format = {'line_splits': [0]}
allowed_enclosed_commands = [
'Begs',
'Repeat',
'Cell',
'Background',
'SRegion',
'Aperture',
'Cutv',
'Dens',
'Disp',
'Dummy',
'DVar',
'Edge',
'Output',
'Refp',
'Ref2',
'Reset',
'RKick',
'Rotate',
'Tilt',
'Transport',
'Comment',
'Repeat',
'HardEdgeSol']
command_params = {
}
def __init__(self, **kwargs):
RegularRegion.__init__(self, kwargs)
Container.__init__(self)
def __setattr__(self, name, value):
Container.__setattr__(self, name, value)
def __str__(self):
return_str = 'SECTION\n'
return_str += str(Container.__str__(self))
return_str += 'END_SECTION\n'
return return_str
def __repr__(self):
return 'Section\n'