Skip to content

Manage edge cases in value functions  #450

@gregorgorjanc

Description

@gregorgorjanc

Following the QG vignette code here is one quirk that we should think how to address in future:

# I am removing all workers and the calcColonyPheno() or the mapping FUN fails
> calcColonyPheno(removeWorkers(colony, p = 1.0), queenTrait = "queenTrait", workersTrait = "workersTrait")
Error in valueFUN(colony@workers) : 
  trying to get slot "pheno" from an object of a basic class ("NULL") with no slots

Metadata

Metadata

Assignees

No one assigned

    Labels

    quan_genQuantitative genetics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions