Skip to content

State files

Ami edited this page Jan 10, 2019 · 2 revisions

Automagic saves all its information in .mat files called state files for later use.

Project state files

The information about each created project is saved separately in their results folder under the name of project_state.mat. This file contains all relevant information about a single project from the selected parameters for preprocessing, list and number of raw files, list of preprocessed files, list of interpolated files, list of the files to be interpolated and many more information.

This files is specially useful for debugging, but Automagic uses project_state.mat also in order to load and existing project or to import project parameters from another existing projects during project creation.

You can at anytime load this file to MATLAB and take a look at it, provided that Autoamgic is already in your path (simply call addAutomagicPaths()). Do not try to modify the values unless you know what you are doing.

Main state file

The main state file is called state.mat and is saved at $HOME/automagicConfigs/state.mat. The home directory depends on your OS system (it is ~ for Linux and iOS). In this state.mat all the corresponding information such as list of existing projects exist. When you download a new version of Automagic, this file is replaced with a new one, that's why you may lose access to your old projects from within the Automagic (Although all the files and results will remain on your disk). This is rather because of compatibility issues as the new versions are not compatible with the old ones.

Usually you do not need to touch or manipulate this file at all.