check_bead_parameters

despasito.equations_of_state.eos_toolbox.check_bead_parameters

check_bead_parameters(bead_library0, parameter_defaults)[source]

Be sure all needed parameters are available for each bead.

If a parameter is absent and a default value is given, this value will be added to the parameter set. If the default is None, then an error is raised.

Parameters:
  • bead_library (dict) – A dictionary where bead names are the keys to access EOS self interaction parameters

  • parameter_defaults (dict) – A dictionary of default values for the required parameters.

Returns:

new_bead_library – New dictionary with defaults added where relevant

Return type:

dict