idmtools_platform_comps.ssmt_operations.simulation_operations module#

idmtools simulation operations for ssmt.

Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.

class idmtools_platform_comps.ssmt_operations.simulation_operations.SSMTPlatformSimulationOperations(platform: COMPSPlatform, platform_type: ~typing.Type = <class 'COMPS.Data.Simulation.Simulation'>)[source]#

Bases: CompsPlatformSimulationOperations

SSMTPlatformSimulationOperations provides Simulation operations to SSMT.

In this case, we only have to redefine get_assets to optimize file usage.

get(simulation_id: UUID, columns: List[str] | None = None, load_children: List[str] | None = None, query_criteria: QueryCriteria | None = None, **kwargs) Simulation[source]#

Get Simulation from Comps.

Parameters:
  • simulation_id – ID

  • columns – Optional list of columns to load. Defaults to “id”, “name”, “experiment_id”, “state”

  • load_children – Optional children to load. Defaults to “tags”, “configuration”

  • query_criteria – Optional query_criteria object to use your own custom criteria object

  • **kwargs

Returns:

COMPSSimulation

get_assets(simulation: Simulation, files: List[str], **kwargs) Dict[str, bytearray][source]#

Get assets for Simulation.

Parameters:
  • simulation – Simulation to fetch

  • files – Files to get

  • **kwargs – Any keyword arguments

Returns:

Files fetched

platform: COMPSPlatform#