check_GenotypeMatrix_has_taxa#

pybrops.popgen.gmat.GenotypeMatrix.check_GenotypeMatrix_has_taxa(v, vname)[source]#

Check if a GenotypeMatrix has taxa labels. Otherwise raise ValueError.

Parameters:
  • v (GenotypeMatrix) – A GenotypeMatrix object to test.

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

Return type:

None