icat.utils.populate_anchor_from_dictionary#

icat.utils.populate_anchor_from_dictionary(anchor, parameters)#

Assign anchor’s parameters from a dictionary containing the key value pairs.

This is useful to call from an anchor’s load() implementation.

Parameters:
  • anchor (Anchor) – The anchor to assign the parameters to.

  • parameters (dict[str, any]) – The parameters to assign to the anchor.