-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbmt.py
28 lines (22 loc) · 787 Bytes
/
bmt.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
from icoolnamelistcontainer import *
from beamtype import *
class Bmt(ICoolNameListContainer):
allowed_enclosed_commands = ['BeamType']
command_params = {
'nbeamtyp': {
'desc': '# of beam types, e.g., particles of different masses.',
'doc': '',
'type': 'Integer',
'req': True,
'default': 1},
'bmalt': {
'desc': 'if true => flip sign of alternate particles when BGEN = true.',
'doc': '',
'type': 'Logical',
'req': False,
'default': False}}
def __init__(self, **kwargs):
ICoolObject.__init__(self, kwargs)
Container.__init__(self)
def __setattr__(self, name, value):
Container.__setattr__(self, name, value)