tomwer.gui.cluster.slurm.is_op_account#

tomwer.gui.cluster.slurm.is_op_account(user)#

Determines if a given username follows the ‘op’ account format, specifically ‘opdXX’ or ‘opidXX’, where ‘XX’ are numeric digits.

Return type:

bool

Args:

user (Optional[str]): The username to check.

Returns:

bool: True if the username matches the pattern, False otherwise.