idmtools_platform_comps.comps_operations.experiment_operations module

class idmtools_platform_comps.comps_operations.experiment_operations.CompsPlatformExperimentOperations(platform: 'COMPSPlatform', platform_type: Type = <class 'COMPS.Data.Experiment.Experiment'>)

Bases: idmtools.entities.iplatform_ops.iplatform_experiment_operations.IPlatformExperimentOperations

platform: ‘COMPSPlatform’
platform_type

alias of COMPS.Data.Experiment.Experiment

get(experiment_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.Experiment.Experiment

Fetch experiments from COMPS

Parameters
  • experiment_id – Experiment ID

  • columns – Optional Columns. If not provided, id, name, and suite_id are fetched

  • load_children – Optional Children. If not provided, tags and configuration are specified

  • query_criteria – Optional QueryCriteria

  • **kwargs

Returns

COMPSExperiment with items

pre_create(experiment: idmtools.entities.experiment.Experiment, **kwargs) → NoReturn

Pre-create for Experiment. At moment, validation related to COMPS is all that is done

Parameters
  • experiment – Experiment to run pre-create for

  • **kwargs

Returns:

platform_create(experiment: idmtools.entities.experiment.Experiment, num_cores: Optional[int] = None, executable_path: Optional[str] = None, command_arg: Optional[str] = None, priority: Optional[str] = None, check_command: bool = True) → COMPS.Data.Experiment.Experiment

Create Experiment on the COMPS Platform

Parameters
  • experiment – IDMTools Experiment to create

  • num_cores – Optional num of cores to allocate using MPI

  • executable_path – Executable path

  • command_arg – Command Argument

  • priority – Priority of command

  • check_command – Run task hooks on item

Returns

COMPSExperiment that was created

post_run_item(experiment: idmtools.entities.experiment.Experiment, **kwargs)

Ran after experiment. Nothing is done on comps other that alerting the user to the item

Parameters
  • experiment – Experiment to run post run item

  • **kwargs

Returns

None

get_children(experiment: COMPS.Data.Experiment.Experiment, columns: Optional[List[str]] = None, children: Optional[List[str]] = None, **kwargs) → List[COMPS.Data.Simulation.Simulation]

Get children for a COMPSExperiment

Parameters
  • experiment – Experiment to get children of Comps Experiment

  • columns – Columns to fetch. If not provided, id, name, experiment_id, and state will be loaded

  • children – Children to load. If not provided, Tags will be loaded

  • **kwargs

Returns

Simulations belonging to the Experiment

get_parent(experiment: COMPS.Data.Experiment.Experiment, **kwargs) → COMPS.Data.Suite.Suite

Get Parent of experiment

Parameters
  • experiment – Experiment to get parent of

  • **kwargs

Returns

Suite of the experiment

platform_run_item(experiment: idmtools.entities.experiment.Experiment, **kwargs)

Run experiment on COMPS. Here we commission the experiment

Parameters
  • experiment – Experiment to run

  • **kwargs

Returns

None

send_assets(experiment: idmtools.entities.experiment.Experiment, **kwargs)

Send assets related to the experiment

Parameters
  • experiment – Experiment to send assets for

  • **kwargs

Returns

None

refresh_status(experiment: idmtools.entities.experiment.Experiment, **kwargs)

Reload status for experiment(load simulations)

Parameters
  • experiment – Experiment to load status for

  • **kwargs

Returns

None

to_entity(experiment: COMPS.Data.Experiment.Experiment, parent: Optional[COMPS.Data.Suite.Suite] = None, children: bool = True, **kwargs)idmtools.entities.experiment.Experiment

Converts a COMPSExperiment to an idmtools Experiment

Parameters
  • experiment – COMPS Experiment objet to convert

  • parent – Optional suite parent

  • children – Should we load children objects?

  • **kwargs

Returns

Experiment

get_assets_from_comps_experiment(experiment: COMPS.Data.Experiment.Experiment) → Optional[idmtools.assets.asset_collection.AssetCollection]
platform_list_asset(experiment: idmtools.entities.experiment.Experiment, **kwargs) → List[idmtools.assets.asset.Asset]