Scipion commands

pconesa edited this page Jun 16, 2017 · 7 revisions
Scipion Logo

Configuration commands

Cleaning projects

In Scipion and Scipion Web, many projects can be created. Each project has a lifetime, and after that lifetime the project is suitable for deletion.

List outdated projects

To get the list of outdated projects you can run:

scipion run python scripts/clean_projects.py [USER DATA FOLDER]

[USER DATA FOLDER] : by default will be 'os.environ['SCIPION_USER_DATA']' ; otherwise, it must be a folder with some user data.

This will only the projects that are out of date.

Delete outdated projects

To delete outdated projects, you can run:

scipion run python scripts/clean_projects.py [USER DATA FOLDER] --delete

All outdated projects will be deleted.

Note
Deleting a project is basically deleting a project folder.

Dealing with projects settings

You can list some project attributes with:

scipion --config [SCIPION CONFIG FILE] run python scripts/config_project.py [PROJECT NAME]

Setting lifeTime

You can also make a project eternal:

scipion --config [SCIPION CONFIG FILE] run python scripts/config_project.py [PROJECT NAME] lifeTime=None

Setting readOnly

You can also make a project read-only:

scipion --config [SCIPION CONFIG FILE] run python scripts/config_project.py [PROJECT NAME] readOnly=True

Both

Both at the same time:

scipion --config [SCIPION CONFIG FILE] run python scripts/config_project.py [PROJECT NAME] readOnly=True  lifeTime=None
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.