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)[source]#

Set the current platform that is being used to execute scripts.

Parameters:

platform – Platform to set

Returns:

None

idmtools.core.context.remove_current_platform()[source]#

Set CURRENT_PLATFORM to None and delete old platform object.

Returns:

None

idmtools.core.context.clear_context()[source]#

Clear all platforms from context.

idmtools.core.context.get_current_platform() IPlatform[source]#

Get current platform.