check_is_SelectionProtocol#

pybrops.breed.prot.sel.SelectionProtocol.check_is_SelectionProtocol(v, vname)[source]#

Check if object is of type SelectionProtocol, otherwise raise TypeError.

Parameters:
  • v (object) – Any Python object to test.

  • vname (str) – Name of variable to print in TypeError message.

Return type:

None