update_user_input_settings

atomate2.cp2k.powerups.update_user_input_settings(flow, input_updates, name_filter=None, class_filter=BaseCp2kMaker)[source]

Update the user_cp2k_settings of any Cp2kInputGenerators in the flow.

Alternatively, if a Maker is supplied, the user_cp2k_settings of the maker will be updated.

Note, this returns a copy of the original Job/Flow/Maker. I.e., the update does not happen in place.

Parameters:
  • flow (.Job or .Flow or .Maker) – A job, flow or Maker.

  • input_updates (dict) – The updates to apply. Existing keys in user_input_settings will not be modified unless explicitly specified in input_updates.

  • name_filter (str or None) – A filter for the name of the jobs.

  • class_filter (Maker or None) – A filter for the Cp2kMaker class used to generate the flows. Note the class filter will match any subclasses.

Returns:

A copy of the input flow/job/maker modified to use the updated input settings.

Return type:

Job or Flow or Maker