(self, variables: dict, warn_missing=True)
| 281 | self.history = {} |
| 282 | |
| 283 | def append(self, variables: dict, warn_missing=True): |
| 284 | if not self.history: |
| 285 | self.history = {name: [] for name in variables.keys()} |
| 286 | for name, val in variables.items(): |
| 287 | self.history[name].append(val) |
| 288 | if val is None and warn_missing: |
| 289 | warnings.warn(f"None value encountered for variable '{name}' at step {self.viewer.steps}. This value will not show up in the recording.", RuntimeWarning) |
| 290 | |
| 291 | @property |
| 292 | def recorded_fields(self): |
no outgoing calls