class py_project.OSLFileProvider
__init__()
Raises an exception This class cannot be instantiated from Pythonclass py_project.Project
__init__()
Raises an exception This class cannot be instantiated from Pythonassign_placeholder(actor_uuid: UUID, property_id: str, placeholder_id: str)
Assign a placeholder in this project. Parameters actor_uuid : Unique id to the actor property_id : Property ID. placeholder_id : Placeholder ID. Raises RuntimeError : Raised when placeholder does not exist, or when property does not exist, or when placeholder type and property type does not match.create_placeholder_from_actor_property(actor_uuid: UUID, property_id: str) → str
Create placeholder from actor property with new id if id already exist Parameters actor_uuid : Unique id to the actor. property_id : Name of the actor property. create_as_expression : Decide if the placeholder is created as value or as macro expression. False by default. Returns str : Actual ID of the generated placeholder. Raises RuntimeError : Raised when property id is not accessible at actor.get_actions() → ProjectActions
Get defined actions for project.get_file_provider() → OSLFileProvider
Get central file registration for project.get_maximum_threads() → int
Get the maximum number of threads used by this project.get_placeholder(placeholder_id: str) → dict
Get placeholder by id from this project as dict. Parameters placeholder_id : Placeholder ID. Returns dict name : strPlaceholder ID.user_level : User level. description : Placeholder description. range : Placeholder range. value : Placeholder value. Datatype should match with the type argument. type : Placeholder type. expression : Placeholder macro expression. Raises RuntimeError : Raised when the placeholder does not exist.
get_placeholder_ids() → WStrList
Get placeholder ids from this project. Returns list : List of placeholder ids.get_protocol_file_path() → Path
Get the path of the protocol file.get_root_system() → RunnableSystem
Get root system.get_run_scenario() → ProjectRunScenario
Get run scenario for project.get_state() → ProjectStatus
Get state of project.property name
The project’s name as displayed.property project_dir
The project directory. Empty string if the project has not yet been saved.property project_path
The project file path. Empty string if the project has not yet been saved.property project_working_dir
The project working dir path. Empty string if the project has not yet been saved.property reference_files_dir
The reference files directory path.remove_placeholder(placeholder_id: str)
Remove a placeholder from this project. Parameters placeholder_id : Placeholder ID.rename_placeholder(existing_placdeholder_id: str, new_placdeholder_id: str)
Rename a placeholder in this project. Parameters placeholder_id : Placeholder ID. new_placeholder_id : New placeholder ID. Raises RuntimeError : Raised when placeholder does not exist.set_actions(actions: ProjectActions)
Set defined actions for project.set_maximum_threads(num_threads: int)
Get the maximum number of threads used by this project.set_placeholder(, name: object=None [, user_level: object=None [, description: object=None [, range: object=None [, value: object=None [, value_type: object=None [, expression: object=None [, overwrite: bool=False]]]]]]]]) → str
Create a new placeholder or overwrite an existing one. Parameters: name : str, optionalPlaceholder ID. In case of creating a new placeholder, the ID may be adapted to maintain ID uniqueness. None by default.user_level : User level. py_placeholder.PLACEHOLDER_USERLEVEL_FLOW_ENGINEER by default. description : Placeholder description. None by default. range : Placeholder range. None by default. value : Placeholder value. Datatype should match with the type argument. Mutual exclusive with the expression argument. None by default type : Placeholder type. py_placeholder.PLACEHOLDER_TYPE_RAW by default. expression : Placeholder macro expression. Mutual exclusive with the value argument. None by default. overwrite : In case overwrite is True and placeholder is found by name, specified attributes will be overwritten. A new placeholder is created otherwise. False by default. Returns str : Actual ID of the generated/modified placeholder. Raises RuntimeError : Raised when the placeholder cannot be created/modified.