edflow.hooks.runtime_input module

Summary

Classes:

RuntimeInputHook

Given a textfile reads that at each step and passes the results to a callback function.

Reference

class edflow.hooks.runtime_input.RuntimeInputHook(update_file, callback)[source]

Bases: edflow.hooks.hook.Hook

Given a textfile reads that at each step and passes the results to a callback function.

__init__(update_file, callback)[source]
Parameters
  • update_file (str) – path/to/yaml-file containing the parameters of interest.

  • callback (Callable) – Each time something changes in the update_file this function is called with the content of the file as argument.

before_step(*args, **kwargs)[source]

Checks if something changed and if yes runs the callback.