Skip to content

Problems with pyp_metrics.mating_coi #13

Description

@jhagberg

Here you got a bug report.

I am using your program for our old homestead rabbits Gotlandskanin here in Sweden.
I would like to calculate inbreed. But I got the following error.


File "gottis.py", line 32, in <module>
    print pyp_metrics.mating_coi(test.idmap[test.namemap['1158-1624']],test.idmap[test.namemap['1115-1528']],test)
  File "build/bdist.linux-x86_64/egg/PyPedal/pyp_metrics.py", line 1574, in mating_coi
TypeError: cannot concatenate 'str' and 'int' objects

I basically just load the pedigree and then try to calculate.

     test = pyp_newclasses.loadPedigree(options)
    print test
    print pyp_metrics.mating_coi(test.idmap[test.namemap['1158-1624']],test.idmap[test.namemap['1115-1528']],test)

Running the git version from main branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions