GeomAIProjects#
Projects are a selection of training data used to train a model.
Directory#
- class GeomAIProjectDirectory#
Provides a collection of methods related to projects.
This class is accessed through
client.projects.Example
List all projects:
import ansys.simai.core as asc simai_client = asc.from_config() simai_client.geomai.projects.list()
- cancel_build(project: GeomAIProject | str)#
Cancel a build if one is in progress.
- Parameters:
project (GeomAIProject | str) – ID or
modelof the project.
- create(name: str) GeomAIProject#
Create a project.
- delete(project: GeomAIProject | str) None#
Delete a project.
- Parameters:
project (GeomAIProject | str) – ID or
modelof the project.
- get(id: str | None = None, name: str | None = None) GeomAIProject#
Get a project by either ID or name.
You can specify either the ID or the name, not both.
- Parameters:
- Returns:
GeomAIProjectinstance with the given ID if it exists.- Raises:
NotFoundError – If the project does not exist.
- Return type:
Model#
- class GeomAIProject#
Provides the local representation of a GeomAI project object.
- build_model(configuration: dict | GeomAIModelConfiguration) GeomAIModel#
Launch a GeomAI build with the given configuration.
- Parameters:
configuration (dict | GeomAIModelConfiguration) – The configuration to run the model with. See
models.GeomAIModelConfigurationfor details.
- cancel_build()#
Cancel a build if there is one pending.
- Raises:
ProcessingError – If there is no build to cancel.
- create_workspace(name: str) GeomAIWorkspace#
Create a workspace using the latest model trained in this project.
- Parameters:
name (str) – Name to give to the new workspace.
- data() List[GeomAITrainingData]#
(Deprecated) List all
GeomAITrainingDatainstances in the project.Use
list_training_data()instead.
- get_last_workspace() GeomAIWorkspace | None#
Get the last generated workspace of the project.
- list_models() List[GeomAIModel]#
List all
GeomAIModelinstances in the project.
- list_training_data() List[GeomAITrainingData]#
List all
GeomAITrainingDatainstances in the project.
- list_workspaces() List[GeomAIWorkspace]#
List all
GeomAIWorkspaceinstances in the project.
- rename(new_name: str) None#
Rename the project.
- Parameters:
new_name (str) – New name to give to the project.
- set_as_current_project() None#
Configure the client to use this project instead of the one currently configured.
- workspaces() List[GeomAIWorkspace]#
(Deprecated) List all
GeomAIWorkspaceinstances in the project.Use
list_workspaces()instead.
- property last_model: GeomAIModel | None#
Last
modellaunched in the project.
- property last_model_configuration: GeomAIModelConfiguration | None#
Last
configurationused for model training in this project.