MCPcopy Create free account
hub / github.com/DenOfEquity/ersatzForge / process_before_every_sampling

Method process_before_every_sampling

modules/scripts.py:850–856  ·  view source on GitHub ↗
(self, p, **kwargs)

Source from the content-addressed store, hash-verified

848 def process_before_every_sampling(self, p, **kwargs):
849 for script in self.ordered_scripts('process_before_every_sampling'):
850 try:
851 script_args = p.script_args[script.args_from:script.args_to]
852 script.process_before_every_sampling(p, *script_args, **kwargs)
853 except Exception:
854 errors.report(f"Error running process_before_every_sampling: {script.filename}", exc_info=True)
855
856 def before_process_batch(self, p, **kwargs):
857 for script in self.ordered_scripts('before_process_batch'):
858 try:
859 script_args = p.script_args[script.args_from:script.args_to]

Callers

nothing calls this directly

Calls 2

ordered_scriptsMethod · 0.95

Tested by

no test coverage detected