MCPcopy
hub / github.com/tum-pbs/PhiFlow / append

Method append

phi/vis/_viewer.py:283–289  ·  view source on GitHub ↗
(self, variables: dict, warn_missing=True)

Source from the content-addressed store, hash-verified

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):

Callers 15

_distribute_pointsFunction · 0.80
_default_field_variablesFunction · 0.80
plotFunction · 0.80
layout_sub_figuresFunction · 0.80
_spaceFunction · 0.80
layout_colorFunction · 0.80
force_use_guiFunction · 0.80
get_plotsFunction · 0.80
log_scalarsMethod · 0.80
rangeMethod · 0.80
plotCubeAtFunction · 0.80
_plot_pointsMethod · 0.80

Calls

no outgoing calls