Skip to content

CompartmentModel validation: check requirements shapes and types #310

Description

@JavadocMD

It is possible to construct a CompartmentModel instance that contains requirements using shapes other than Scalar, T, N, or TxN. This will fail during simulation because other shapes are not supported:

IPMSimError: Cannot generate a TxN series unless all attributes broadcast to TxN. gpm:all::ipm::beta is NxC

Similar issues arise when using a data type which is not int or float, since these are ultimately used in sympy expressions where the other options (str, date, and structured types) have no meaning.

CompartmentModel validation should check for these issues and raise an IPMValidationError.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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