Skip to content

_check_implementations_exist deos not look for implementations in imports #31

@mrSWE3

Description

@mrSWE3

5c4e6e9

In the method _check_implementations_exist, each implementation is only looked for in self.models and self.programs, and not in self.imports.

Therefore, given a minimal example like:
ymmsl_test_small.zip

running _check_implementations_exist on a.ymmsl raises the error:
RuntimeError: The configuration is internally inconsistent. The following problems were found:
- Component "print" has implementation "print", but no program or model with that name was given. Did you forget to import it?

Even though a.ymmsl contains
imports:
- from b import implementation print

However, the muscle manager can run the example as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions