Note that the original imports (e.g. import smarts.sstudio.types) will still work for now because of dynamic module assignment as shown below.
# smarts/core/utils/__init__.py
import sys
from . import core_math as math
# sys.modules["smarts.core.utils.math"] = math
sys.modules[f"{__name__}.{math=}".partition('=')[0]] = math
Pycharm debug loads certain modules as if they were the core python modules as noted here: https://stackoverflow.com/a/68985644
This fixes the problem and manually sets the original modules as compatibility. The following have changed:
envision.types
->envision.etypes
smarts.core.utils.logging
->smarts.core.utils.core_logging
smarts.core.utils.math
->smarts.core.utils.core_math
smarts.sstudio.types
->smarts.sstudio.sstypes
Note that the original imports (e.g.
import smarts.sstudio.types
) will still work for now because of dynamic module assignment as shown below.Closes #2125