This module provides functionality for managing projects and their associated tasks within the Inductiva platform. A project serves as a container for grouping related tasks, enabling better organization and management of computational workflows.
Classes: : - Project: Represents a project that groups related tasks together.
Functions: : - get_projects(): Retrieves all projects associated with the current user.
Key Features: : - Create and manage projects on the backend.
completion.
Example Usage:
import inductiva
Create a new project or load an existing one
project = inductiva.projects.Project("my_project")
Select a simulator
fvcom = inductiva.simulators.FVCOM()
Run and add tasks to the project
for i in range(10): task = fvcom.run(...) project.add_task(task)
Monitor task completion
project.wait()
Download outputs for all tasks
project.download_outputs()
Print project details
print(project)
Bases: object
Projects management class.
Groups related tasks together under a single project.
project = inductiva.projects.Project("my project")
task_1 = simulator.run(...)
project.add_task(task_1)
task_2 = simulator.run(...)
project.add_task(task_2)
Initialize the Project instance.
Adds a task to the project.
Returns the creation date and time of the project.
Delete a project on the backend.
This method does not delete the project tasks, only the project itself. The tasks will be moved to the “default” project.
Downloads all the outputs for all the tasks in the project.
All task outputs will be organized within the specified output_dir. If output_dir is not provided, outputs will be saved to a default location under inductiva_output/<project_name>/<task_id>/. Otherwise, they will be stored in <output_dir>/<task_id>/.
Returns the estimated project cost.
Computed as the sum of the estimated computation cost of each task.
Get the the tasks of this project.
Optionally, those can be filtered by task status.
Returns the unique ID of the project.
Returns the name of the project.
Returns the number of tasks in the project.
Returns a dictionary with the number of tasks by status. The keys are the status codes and the values are the number of tasks with that status.
Wait for all the tasks in a project to complete.
Gets all the user’s projects.