This process enables to clean a BrainVISA database from unused/unknown items. These items can be removed, moved or imported in the database.
The process searches for files that are not identified by BrainVISA, that is to say items that are not mentionned in the hierarchy.
The list of unknown items is presented to the user. By default the process suggests to remove these items. But the user can choose to unselect some items of the list that he want to keep. He can also change actions associated to items and choose to move an item elsewhere or to import it in the database by filling a form describing it.
After user validation, the database is processed by performing selected actions. All actions can be undone (even remove because files are not really removed but put in a trash directory). An undo script is generated, so it is possible to undo changes, by starting again the process with parameter undo=Yes.
The actions are grouped by toolboxes because the converter has several parts, each specialized for one toolbox. There is also several undo scripts which are written in a directory scripts in the database.
database: Choice ( input )Choose the database to clean.
undo: Boolean ( input )If True the process reverts previous changes.
Toolbox : Data Management
User level : 0
Identifier :
cleanDatabase
File name :
brainvisa/toolboxes/data management/processes/convert_old_database_steps/cleanDatabase.py