idmtools.core.context module¶
Manages the idmtools context, mostly around the platform object.
This context allows us to easily fetch what platforms we are executing on and also supported nested, multi-platform operations.
Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.
- idmtools.core.context.set_current_platform(platform: IPlatform)¶
Set the current platform that is being used to execute scripts.
- Parameters:
platform – Platform to set
- Returns:
None
- idmtools.core.context.remove_current_platform()¶
Set CURRENT_PLATFORM to None and delete old platform object.
- Returns:
None
- idmtools.core.context.clear_context()¶
Clear all platforms from context.