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'>)

Bases: idmtools_platform_comps.comps_operations.simulation_operations.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.UUID, columns: Optional[List[str]] = None, load_children: Optional[List[str]] = None, query_criteria: Optional[COMPS.Data.QueryCriteria.QueryCriteria] = None, **kwargs) COMPS.Data.Simulation.Simulation

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: idmtools.entities.simulation.Simulation, files: List[str], **kwargs) Dict[str, bytearray]

Get assets for Simulation.

Parameters:
  • simulation – Simulation to fetch

  • files – Files to get

  • **kwargs – Any keyword arguments

Returns:

Files fetched

platform: COMPSPlatform