I have been trying to modify symlinks for a project which are stored in a folder from a previous live session named “S1”. I tried to use the cli.job_import_replace_symlinks(project_uid, job_uid, prefix_cut, prefix_new) command, with ‘S1’ being the job_uid. This resulted in an error: ServerError: P84 S1 does not exist. When I tried this command with other jobs in the project with “Jxx” being the job_uid, the output for the command is zero for the number of symlinks changed.
Is there a way to modify symlinks stored in folders from live sessions with “Sxx” being the name of the job folder?
Is there actually another official solution for this?
Like the modify one or many links part in this documentation seems to be outdated and for the <3.3 version? How do I use the output of cli.get_project_symlinks(’P1’) ?
I moved project folders and also rawdata folders and need to update the symlinks for import and live sessions. (i detached and attached the projects to a new instance also)
For import jobs i could just follow Step one of <3.3 and then the step two but for live sessions i dont know, can i just change the symlinks in the SX/imported folder?
I can acess the 4.0 tab but that just changes step one of the guide not step two and in step two
you loop over “jobs” which is not defined if you do v4.0. Like there is no real guide on how to use the output of this to change the links then or atleast changing the tab does not change Step Two for me.
In CryoSPARC v4.7, one can modify symbolic links inside a Live session using the commands
cryosparcm icli # from the Linux shell to the interactive icli
rtp.session_replace_symlinks('PX', 'SY', '/old/prefix/', '/new/prefix')
exit() # exit the interactive cli