Edit symlinks in the Import job after project migration

Hi all,

we moved one CS project with the corresponding raw movies from one location to another and I tried to edit the symlinks in the Import job as suggested here:
https://guide.cryosparc.com/setup-configuration-and-management/software-guides/tutorial-migrating-your-cryosparc-instance#step-two-modify-one-or-many-links
We are using cryoSPARC version: v3.3.2

When I tried to run the icli command:

job_import_replace_symlinks(‘P41’, ‘J1’, ‘/old/location’, ‘/new/folder/’)

I got:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-4-434385b8ce9d> in <module>
----> 1 job_import_replace_symlinks('P41', 'J1', '/d/hpc/projects/cryosparc/lukak/', '/ceph/hpc/data/KI/lukak/fromARNES_CS/')

NameError: name 'job_import_replace_symlinks' is not defined

If I just try to run

job_import_replace_symlinks

I also get:

NameError: name 'job_import_replace_symlinks' is not defined

I checked all the cli commands on https://guide.cryosparc.com/setup-configuration-and-management/management-and-monitoring/cli

and

job_import_replace_symlinks

is not documented. Has it been perhaps broken or has it been removed?

In the cryosparcm icli shell, this command should be prefixed with “cli.”. (We have updated the documentation after we read your post.)
Does
cli.job_import_replace_symlinks('P41', 'J1', '/old/location', '/new/folder/')
work for you?

1 Like

Hi @wtempel ,

thank you for the clarification. Yes
cli.job_import_replace_symlinks('P41', 'J1', '/old/location', '/new/folder/')
finished successfully and also correctly reported the number of affected symlinks.

The issue is resolved.

If I may suggest, perhaps it would be a good idea to add
job_import_replace_symlinks to the list of all cli commands.

Thank you very much and have a nice weekend!