(self)
| 351 | raise NotImplementedError("") |
| 352 | |
| 353 | def refresh(self): |
| 354 | # In MongoTrials, this method fetches from database |
| 355 | if self._exp_key is None: |
| 356 | self._trials = [ |
| 357 | tt for tt in self._dynamic_trials if tt["state"] in JOB_VALID_STATES |
| 358 | ] |
| 359 | else: |
| 360 | self._trials = [ |
| 361 | tt |
| 362 | for tt in self._dynamic_trials |
| 363 | if (tt["state"] in JOB_VALID_STATES and tt["exp_key"] == self._exp_key) |
| 364 | ] |
| 365 | self._ids.update([tt["tid"] for tt in self._trials]) |
| 366 | |
| 367 | @property |
| 368 | def trials(self): |