@@ -2528,8 +2528,8 @@ def draw(self):
25282528 AttributeScheme (
25292529 name = 'no' ,
25302530 type = 'types.String' ,
2531- description = 'Calculation on/off' ,
2532- restriction = 'no == "no"' ,
2531+ description = 'Volume calculation on/off' ,
2532+ restriction = 'no in { "no"} ' ,
25332533 optional = True ,
25342534 ),
25352535 AttributeScheme (
@@ -5841,6 +5841,7 @@ def from_formula(number: int, formulas: dict[str, float], atomic_or_weight: bool
58415841 type = 'types.String' ,
58425842 description = 'Probability kind setting' ,
58435843 restriction = 'option in {"d", "c", "v", "w"}' ,
5844+ optional = True ,
58445845 ),
58455846 AttributeScheme (
58465847 name = 'probabilities' ,
@@ -5888,6 +5889,7 @@ def from_formula(number: int, formulas: dict[str, float], atomic_or_weight: bool
58885889 type = 'types.String' ,
58895890 description = 'Bias kind setting' ,
58905891 restriction = 'option in {"d", "c", "v", "w"}' ,
5892+ optional = True ,
58915893 ),
58925894 AttributeScheme (
58935895 name = 'biases' ,
@@ -5934,6 +5936,7 @@ def from_formula(number: int, formulas: dict[str, float], atomic_or_weight: bool
59345936 type = 'types.String' ,
59355937 description = 'Dependent variable setting' ,
59365938 restriction = 'option in {"h", "l", "s"}' ,
5939+ optional = True ,
59375940 ),
59385941 AttributeScheme (
59395942 name = 'js' ,
@@ -5952,12 +5955,7 @@ def from_formula(number: int, formulas: dict[str, float], atomic_or_weight: bool
59525955 description = 'Data card option suffix' ,
59535956 restriction = '1 <= suffix <= 999' ,
59545957 ),
5955- AttributeScheme (
5956- name = 't' ,
5957- type = 'types.String' ,
5958- description = 'Dependent source T option' ,
5959- restriction = 't in {"t"}' ,
5960- ),
5958+ # t
59615959 AttributeScheme (
59625960 name = 'ijs' ,
59635961 type = 'types.Tuple[types.IndependentDependent]' ,
@@ -5975,12 +5973,7 @@ def from_formula(number: int, formulas: dict[str, float], atomic_or_weight: bool
59755973 description = 'Data card option suffix' ,
59765974 restriction = '1 <= suffix <= 999' ,
59775975 ),
5978- AttributeScheme (
5979- name = 'q' ,
5980- type = 'types.String' ,
5981- description = 'Dependent source Q option' ,
5982- restriction = 'q in {"q"}' ,
5983- ),
5976+ # q
59845977 AttributeScheme (
59855978 name = 'vss' ,
59865979 type = 'types.Tuple[types.IndependentDependent]' ,
@@ -7138,6 +7131,7 @@ def from_formula(number: int, formulas: dict[str, float], atomic_or_weight: bool
71387131 type = 'types.String' ,
71397132 description = 'Interpolation method for energy table' ,
71407133 restriction = 'method in {"log", "lin"}' ,
7134+ optional = True ,
71417135 ),
71427136 AttributeScheme (
71437137 name = 'values' ,
@@ -7161,6 +7155,7 @@ def from_formula(number: int, formulas: dict[str, float], atomic_or_weight: bool
71617155 type = 'types.String' ,
71627156 description = 'Interpolation method for dose function table' ,
71637157 restriction = 'method in {"log", "lin"}' ,
7158+ optional = True ,
71647159 ),
71657160 AttributeScheme (
71667161 name = 'values' ,
@@ -9549,10 +9544,10 @@ def from_formula(number: int, formulas: dict[str, float], atomic_or_weight: bool
95499544 mnemonic = 'event' ,
95509545 attributes = [
95519546 AttributeScheme (
9552- name = 'setting ' ,
9553- type = 'types.String' ,
9547+ name = 'settings ' ,
9548+ type = 'types.Tuple[types. String] ' ,
95549549 description = 'Specifies the type of events written to the PTRAC file' ,
9555- restriction = 'setting in {"src", "bnk", "sur", "col", "ter", "cap"}' ,
9550+ restriction = 'all(map(lambda setting: setting in {"src", "bnk", "sur", "col", "ter", "cap"}, settings)) ' ,
95569551 ),
95579552 ],
95589553 ),
0 commit comments