registry#
Functions#
Load installed entry points one time into _REGISTRY.
Import and return the callable referenced by "module:attr".
Create an instance by string ID.
Register at runtime (e.g., in tests or plugins): register("JHU/MyEnv-v0", "my_pkg.my_mod:MyEnvClass")
List all registered specs, optionally filtered by ID prefix.
- prt_sim.jhu.registry._discover_entry_points(group: str = 'jhu.envs') None[source]#
Load installed entry points one time into _REGISTRY.
- prt_sim.jhu.registry._load_callable(spec: str) Callable[[...], Any][source]#
Import and return the callable referenced by “module:attr”.
- prt_sim.jhu.registry.make(id: str, /, **kwargs: Any) Any[source]#
Create an instance by string ID. Works with classes or factory functions. Example: env = jhu.make(“JHU/ImagePipeline-v0”, width=64, height=64)