@@ -1456,7 +1456,7 @@ class JobsAPI(APINamespace):
14561456 """
14571457 ...
14581458 def connect (
1459- self , project_uid : str , job_uid : str , input_name : str , / , * , source_job_uid : str , source_output_name : str
1459+ self , project_uid : str , job_uid : str , input_name : str , / , * , source_output_name : str , source_job_uid : str
14601460 ) -> Job :
14611461 """
14621462 Connects the input slot on the child job to the output group on the
@@ -1466,8 +1466,8 @@ class JobsAPI(APINamespace):
14661466 project_uid (str): Project UID, e.g., "P3"
14671467 job_uid (str): Job UID, e.g., "J3"
14681468 input_name (str):
1469- source_job_uid (str):
14701469 source_output_name (str):
1470+ source_job_uid (str):
14711471
14721472 Returns:
14731473 Job: Connected child job
@@ -1494,8 +1494,8 @@ class JobsAPI(APINamespace):
14941494 connection_index : int ,
14951495 / ,
14961496 * ,
1497- source_job_uid : str ,
14981497 source_output_name : str ,
1498+ source_job_uid : str ,
14991499 ) -> Job :
15001500 """
15011501 Replace the connection at the given index with a new connection.
@@ -1506,8 +1506,8 @@ class JobsAPI(APINamespace):
15061506 job_uid (str): Job UID, e.g., "J3"
15071507 input_name (str):
15081508 connection_index (int):
1509- source_job_uid (str):
15101509 source_output_name (str):
1510+ source_job_uid (str):
15111511
15121512 Returns:
15131513 Job: Successful Response
@@ -1575,10 +1575,10 @@ class JobsAPI(APINamespace):
15751575 result_name : str ,
15761576 / ,
15771577 * ,
1578- source_job_uid : str ,
15791578 source_output_name : str ,
15801579 source_result_name : str ,
15811580 source_result_version : Union [int , Literal ["F" ]] = "F" ,
1581+ source_job_uid : str ,
15821582 ) -> Job :
15831583 """
15841584 Adds or replaces a result within an input connection with the given output result from a different job.
@@ -1589,10 +1589,10 @@ class JobsAPI(APINamespace):
15891589 input_name (str):
15901590 connection_index (int):
15911591 result_name (str):
1592- source_job_uid (str):
15931592 source_output_name (str):
15941593 source_result_name (str):
15951594 source_result_version (int | Literal['F'], optional): Defaults to 'F'
1595+ source_job_uid (str):
15961596
15971597 Returns:
15981598 Job: Successful Response
@@ -3835,6 +3835,38 @@ class SessionsAPI(APINamespace):
38353835
38363836 """
38373837 ...
3838+ def export_session (
3839+ self ,
3840+ project_uid : str ,
3841+ session_uid : str ,
3842+ / ,
3843+ * ,
3844+ export_movies : bool = False ,
3845+ export_ignored_exposures : bool = False ,
3846+ picker_type : Optional [Literal ["blob" , "template" , "manual" ]] = None ,
3847+ ) -> None :
3848+ """
3849+ Writes session results, including all exposures and particles, to the
3850+ project exports directory. The resulting directory contains .csg files.
3851+ Copy the directory to another CryoSPARC project (while resolving symlinks)
3852+ and import individual .csg files with the Import Result Group job.
3853+
3854+ Example copy command:
3855+
3856+ mkdir -p /path/to/projects/cs-project-b/imports/
3857+ cp -rL /path/to/projects/cs-project-a/exports/S1 /path/to/projects/cs-project-b/imports/
3858+
3859+ Note: the original movies are not added to the export directory by default.
3860+
3861+ Args:
3862+ project_uid (str): Project UID, e.g., "P3"
3863+ session_uid (str): Session UID, e.g., "S3"
3864+ export_movies (bool, optional): Defaults to False
3865+ export_ignored_exposures (bool, optional): Defaults to False
3866+ picker_type (Literal['blob', 'template', 'manual'], optional): Defaults to None
3867+
3868+ """
3869+ ...
38383870
38393871class ExposuresAPI (APINamespace ):
38403872 """
0 commit comments