pnnl / neuromancer

Pytorch-based framework for solving parametric constrained optimization problems, physics-informed system identification, and parametric model predictive control.

Home Page:https://pnnl.github.io/neuromancer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Submodule Import

LucasBoTang opened this issue · comments

Description:

Describe the bug

Python can't find an attribute or method directly in the module 'neuromancer' and 'neuromancer.modules'. The import statements need to be adjusted in the subpackages.

To Reproduce

Steps to reproduce the behavior:

Example 1

import neuromancer as nm
nm.modules.blocks
Error Message:

AttributeError: module 'neuromancer' has no attribute 'modules'

Example 2

from neuromancer import modules
modules.blocks.MLP
Error Message:

AttributeError: module 'neuromancer.modules' has no attribute 'blocks'

Resolved by #44 .