amend_config

Context manager to safely modify Mantid Configuration Service while the function is executed.

Parameters:
  • new_config (dict, default: None ) –

    (key, value) pairs to substitute in the configuration service

  • data_dir (Union[str, list], default: None ) –

    prepend one (when passing a string) or more (when passing a list) directories to the list of data search directories. Alternatively, replace instead of prepend.

  • data_dir_insert_mode (str, default: 'prepend' ) –

    How to insert the data directories. Options are: "prepend" (default) and "replace".