set_component#

GenericMixture.set_component(component, mode='add')[source]#

Add another component to the mixture

Parameters
  • component (GenericPhase) – The phase object of the component to add. Can also be a list of phases to add more than one at a time.

  • mode (str) –

    mode

    meaning

    ’add’

    Adds the given components

    ’remove’

    Removes the given components