12
12
13
13
@define
14
14
class McSAS3_cli_optimize (object ):
15
- """Runs the McSAS optimizer from the command line arguments"""
15
+ """Runs the McSAS optimizer (only) from the command line arguments"""
16
16
17
17
def checkConfig (self , attribute , value ):
18
18
assert value .exists (), f"configuration file { value } must exist"
@@ -23,7 +23,6 @@ def checkConfig(self, attribute, value):
23
23
readConfigFile : Path = field (
24
24
kw_only = True , validator = [validators .instance_of (Path ), checkConfig ]
25
25
)
26
- histConfigFile : Path = field (kw_only = True ) # dummy key which might come with the given kwargs
27
26
runConfigFile : Path = field (kw_only = True , validator = [validators .instance_of (Path ), checkConfig ])
28
27
resultIndex : int = field (kw_only = True , validator = [validators .instance_of (int )])
29
28
deleteIfExists : bool = field (kw_only = True , validator = [validators .instance_of (bool )])
@@ -64,7 +63,7 @@ def run(self):
64
63
65
64
@define
66
65
class McSAS3_cli_histogram (object ):
67
- """Runs the McSAS histogrammer from the command line arguments"""
66
+ """Runs the McSAS histogrammer (only) from the command line arguments"""
68
67
69
68
def checkConfig (self , attribute , value ):
70
69
assert value .exists (), f"configuration file { value } must exist"
@@ -75,11 +74,7 @@ def checkConfig(self, attribute, value):
75
74
histConfigFile : Path = field (
76
75
kw_only = True , validator = [validators .instance_of (Path ), checkConfig ]
77
76
)
78
- runConfigFile : Path = field (kw_only = True ) # dummy
79
- readConfigFile : Path = field (kw_only = True ) # dummy key which might come with the given kwargs
80
77
resultIndex : int = field (kw_only = True , validator = [validators .instance_of (int )])
81
- deleteIfExists : bool = field (kw_only = True ) # dummy
82
- nThreads : int = field (kw_only = True ) # dummy
83
78
84
79
def __attrs_post_init__ (self ):
85
80
self .run ()
0 commit comments