file
Package¶
files_update_manager
¶
Manager for the file storage version updates.
- class tvb.core.entities.file.files_update_manager.FilesUpdateManager[source]¶
Bases:
UpdateManager
Manager for updating H5 files version, when code gets changed.
- DATA_TYPES_PAGE_SIZE = 500¶
- MESSAGE = 'Done'¶
- PROJECTS_PAGE_SIZE = 20¶
- STATUS = True¶
- UPDATE_SCRIPTS_SUFFIX = '_update_files'¶
- static get_all_h5_paths()[source]¶
This method returns a list of all h5 files and it is used in the migration from version 4 to 5. The h5 files inside a certain project are retrieved in numerical order (1, 2, 3 etc.).
- get_file_data_version(file_path)[source]¶
Return the data version for the given file.
- Parameters:
file_path – the path on disk to the file for which you need the TVB data version
- Returns:
a number representing the data version for which the input file was written
- is_file_up_to_date(file_path)[source]¶
Returns True only if the data version of the file is equal with the data version specified into the TVB configuration file.
- run_all_updates()[source]¶
Upgrades all the data types from TVB storage to the latest data version.
- Returns:
a two entry tuple (status, message) where status is a boolean that is True in case the upgrade was successfully for all DataTypes and False otherwise, and message is a status update message.
- upgrade_file(input_file_name, datatype=None, burst_match_dict=None)[source]¶
Upgrades the given file to the latest data version. The file will be upgraded sequentially, up until the current version from tvb.basic.config.settings.VersionSettings.DB_STRUCTURE_VERSION
:param input_file_name the path to the file which needs to be upgraded :return True when update was successful and False when it resulted in an error.
Subpackages¶
file_update_scripts
Packagesimulator
Packageburst_configuration_h5
datatype_measure_h5
simulation_history_h5
SimulationHistory
SimulationHistory.current_state
SimulationHistory.current_step
SimulationHistory.fill_into()
SimulationHistory.history
SimulationHistory.integrator_noise_rng_state_algo
SimulationHistory.integrator_noise_rng_state_cached_gauss
SimulationHistory.integrator_noise_rng_state_has_gauss
SimulationHistory.integrator_noise_rng_state_keys
SimulationHistory.integrator_noise_rng_state_pos
SimulationHistory.monitor_names
SimulationHistory.monitor_stock_1
SimulationHistory.monitor_stock_10
SimulationHistory.monitor_stock_11
SimulationHistory.monitor_stock_12
SimulationHistory.monitor_stock_13
SimulationHistory.monitor_stock_14
SimulationHistory.monitor_stock_15
SimulationHistory.monitor_stock_2
SimulationHistory.monitor_stock_3
SimulationHistory.monitor_stock_4
SimulationHistory.monitor_stock_5
SimulationHistory.monitor_stock_6
SimulationHistory.monitor_stock_7
SimulationHistory.monitor_stock_8
SimulationHistory.monitor_stock_9
SimulationHistory.populate_from()
SimulationHistoryH5
view_model
AdditiveNoiseViewModel
BoldRegionROIViewModel
BoldViewModel
CortexViewModel
Dop853StochasticViewModel
Dop853ViewModel
Dopri5StochasticViewModel
Dopri5ViewModel
EEGViewModel
EulerDeterministicViewModel
EulerStochasticViewModel
GlobalAverageViewModel
HeunDeterministicViewModel
HeunStochasticViewModel
IdentityViewModel
IntegratorStochasticViewModel
IntegratorViewModel
IntegratorViewModelsEnum
IntegratorViewModelsEnum.DIFFERENCE_EQUATION
IntegratorViewModelsEnum.DOPRI_5
IntegratorViewModelsEnum.DOPRI_5_STOCHASTIC
IntegratorViewModelsEnum.DOP_853
IntegratorViewModelsEnum.DOP_853_STOCHASTIC
IntegratorViewModelsEnum.EULER
IntegratorViewModelsEnum.EULER_MARUYAMA
IntegratorViewModelsEnum.HEUN
IntegratorViewModelsEnum.RUNGE_KUTTA
IntegratorViewModelsEnum.STOCHASTIC_HEUN
IntegratorViewModelsEnum.STOCHASTIC_VARIABLE_ODER_ADAMS
IntegratorViewModelsEnum.VARIABLE_ORDER_ADAMS
MEGViewModel
MonitorViewModel
MultiplicativeNoiseViewModel
NoiseViewModel
ProjectionViewModel
RawViewModel
RungeKutta4thOrderDeterministicViewModel
SimulatorAdapterModel
SimulatorAdapterModel.connectivity
SimulatorAdapterModel.determine_indexes_for_chosen_vars_of_interest()
SimulatorAdapterModel.first_monitor
SimulatorAdapterModel.get_variables_of_interest_indexes()
SimulatorAdapterModel.history_gid
SimulatorAdapterModel.integrator
SimulatorAdapterModel.linked_has_traits
SimulatorAdapterModel.monitors
SimulatorAdapterModel.stimulus
SimulatorAdapterModel.surface
SpatialAverageViewModel
SubSampleViewModel
TemporalAverageViewModel
VODEStochasticViewModel
VODEViewModel
iEEGViewModel