Skip to content

[Bug] Module import order causes MltplDsptchFld error #303

@emmanuellfc

Description

@emmanuellfc

Describe the bug
Module import order causes MltplDsptchFld error.

To Reproduce
By having an optimization problem defined, if import packages as follows:
import optimize4
import meshgen
the following error is thrown:
Error 'MltplDsptchFld': Multiple dispatch could not find an implementation that matches these arguments
Whereas if you have
import meshgen
import optimize4
no error is thrown.

Expected behavior
No error, regardless of import order.

Additional context
I suspect this is because meshgen itself is solving an optimization problem and it's making use of the old optimize module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions