idmtools_platform_local.client.simulations_client module¶
-
class
idmtools_platform_local.client.simulations_client.
SimulationsClient
¶ Bases:
idmtools_platform_local.client.base.BaseClient
-
path_url
= 'simulations'¶
-
classmethod
get_all
(experiment_id: Optional[str] = None, status: Optional[idmtools_platform_local.status.Status] = None, tags: Optional[List[Tuple[str, str]]] = None, page: Optional[int] = None, per_page: Optional[int] = None) → List[Dict[str, Any]]¶ - Parameters
id (Optional[str]) – ID of the simulation
experiment_id (Optional[str]) – ID of experiments
status (Optional[Status]) – Optional status
tags (Optional[List[Tuple[str, str]]]) – List of tags/values to filter experiment by
- Returns
return list of simulations
- Return type
List[Dict[str, Any]]
-
classmethod
get_one
(simulation_id: str, experiment_id: Optional[str] = None, status: Optional[idmtools_platform_local.status.Status] = None, tags: Optional[List[Tuple[str, str]]] = None) → Dict[str, Any]¶ - Args:
simulation_id (str): ID of the simulation experiment_id (Optional[str]): ID of experiments status (Optional[Status]): Optional status tags (Optional[List[Tuple[str, str]]]): List of tags/values to filter experiment by
- Returns
the simulation as a dict
- Return type
Dict[str, Any]
-
classmethod
cancel
(simulation_id: str) → Dict[str, Any]¶ Marks a simulation to be canceled. Canceled jobs are only truly canceled when the queue message is processed
- Parameters
simulation_id (st) –
Returns:
-