pyphi.validate.direction#
- pyphi.validate.direction(direction, allow_bi=False)[source]#
Validate that the given direction is one of the allowed constants.
- Parameters:
- Returns:
bool –
Trueif the direction is valid.- Raises:
ValueError – If the direction is not one of the allowed constants.
- Return type: