file_update_scripts
Package¶
Define file storage changes for each release.
Created on Dec 10, 2012
- CONVENTIONS:
Each file from the file_update_scripts must have a name following the pattern: ${VERSION_NR}_update_files. ${VERSION_NR} is the file storage version, and NOT TVB release version or database version!!.
Each file corresponding to ${VERSION_NR} should have a public function upgrade(input_file) which takes as input a string representing a file path and does any changes required to bring that file from: ${VERSION_NR} - 1 to ${VERSION_NR}
002_update_files
¶
- tvb.core.entities.file.file_update_scripts.002_update_files.update(input_file, burst_match_dict=None)[source]¶
In order to avoid segmentation faults when updating a batch of files just start every conversion on a different Python process.
- Parameters:
input_file – the file that needs to be converted to a newer file storage version. This should be a file that still uses TVB 1.0 storage (pyTables)
003_update_files
¶
Upgrade script from H5 version 2 to version 3
- tvb.core.entities.file.file_update_scripts.003_update_files.update(input_file, burst_match_dict=None)[source]¶
In order to avoid segmentation faults when updating a batch of files just start every conversion on a different Python process.
- Parameters:
input_file – the file that needs to be converted to a newer file storage version. This should be a file that still uses TVB 2.0 storage
004_update_files
¶
Upgrade script from H5 version 3 to version 4 (for tvb release 1.4.1)
005_update_files
¶
Upgrade script from H5 version 4 to version 5 (for tvb release 2.0)