id_from_name#

PhaseList.id_from_name(name: str) int[source]#

Return the phase ID from a phase name or raise an error if the phase is not in the list.

Parameters:
name

Phase name.

Returns:
phase_id

Phase ID.