Commit 93e9fa7
Move add_trial_type, update_runner, supports_trial_type to base Experiment
Summary:
Phase 3 of moving MultiTypeExperiment features into base Experiment.
Moves `add_trial_type` and `update_runner` from MultiTypeExperiment to the base Experiment class, making them available to all experiments.
Updates `supports_trial_type` to unify the logic: for multi-type experiments (where `default_trial_type` is set), only trial types registered in `_trial_type_to_runner` are supported. For single-type experiments, `None` is supported along with `SHORT_RUN` and `LONG_RUN` for backward compatibility with generation strategies that use those trial types.
Removes the corresponding overrides from MultiTypeExperiment — all three methods are now inherited from the base class.
Differential Revision: D949885771 parent 8b446f5 commit 93e9fa7
2 files changed
Lines changed: 36 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2075 | 2075 | | |
2076 | 2076 | | |
2077 | 2077 | | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
2078 | 2106 | | |
2079 | 2107 | | |
2080 | 2108 | | |
| |||
2089 | 2117 | | |
2090 | 2118 | | |
2091 | 2119 | | |
2092 | | - | |
2093 | | - | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
2094 | 2125 | | |
| 2126 | + | |
| 2127 | + | |
2095 | 2128 | | |
2096 | 2129 | | |
2097 | 2130 | | |
2098 | 2131 | | |
2099 | 2132 | | |
| 2133 | + | |
2100 | 2134 | | |
2101 | 2135 | | |
2102 | 2136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 107 | | |
121 | 108 | | |
122 | 109 | | |
| |||
130 | 117 | | |
131 | 118 | | |
132 | 119 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | 120 | | |
148 | 121 | | |
149 | 122 | | |
| |||
232 | 205 | | |
233 | 206 | | |
234 | 207 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | 208 | | |
243 | 209 | | |
244 | 210 | | |
| |||
0 commit comments