MCPcopy Create free account
hub / github.com/amazon-far/ResMimic / __init__

Method __init__

pose/pose/utils/motion_lib_hoi.py:14–17  ·  view source on GitHub ↗
(self, name, real=None)

Source from the content-addressed store, hash-verified

12# Patch sys.modules to fake missing modules from numpy 2.x
13class FakeModule(ModuleType):
14 def __init__(self, name, real=None):
15 super().__init__(name)
16 if real:
17 self.__dict__.update(real.__dict__)
18
19# Patch potentially missing modules
20sys.modules['numpy._core'] = FakeModule('numpy._core', np.core if hasattr(np, 'core') else np)

Callers 1

__init__Method · 0.45

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected