Skip to content

Change return type of check_constraints function in the Populations class to bool #1061

@lenaploetzke

Description

@lenaploetzke

Motivation / Current Behaviour

The check_constraints and apply_constraints functions in the Population class are currently not tested.

Enhancement description

If the return type is changed to bool (as in the check_constraints function of all parameter classes), you could easily test them. The check_constraints function of CompartmentalModel could also return a bool.

Additional context

No response

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Metadata

Metadata

Assignees

Labels

class::improvementCleanup that doesn't affect functionalityloc::backendThis issue concerns the C++ backend implementation.model::odeThis issue concerns any kind of ODE-based model.

Type

No type

Projects

Status

Done (Total)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions