Saving¶
-
class
outputting.
Saving
(label=None, output_path=None, config=None, config_file=None, pickle_store=False, min_log_level=u'INFO', numpy_error_level=u'log')[source]¶ Bases:
object
Creates the folder structure for the saved data and created the log file as
log.txt
Parameters: - label (string, optional) – The label for the simulation. Default
None
will mean no data is saved to files. - output_path (string, optional) – The path that will be used for the run output. Default
None
- config (dict, optional) – The parameters of the running simulation/fitting. This is used to create a YAML configuration file.
Default
None
- config_file (string, optional) – The file name and path of a
.yaml
configuration file. DefaultNone
- pickle_store (bool, optional) – If true the data for each model, task and participant is recorded.
Default is
False
- min_log_level (basestring, optional) – Defines the level of the log from (
DEBUG
,INFO
,WARNING
,ERROR
,CRITICAL
). DefaultINFO
See https://docs.python.org/3/library/logging.html#levels - numpy_error_level ({'log', 'raise'}) – Defines the response to numpy errors. Default
log
. See numpy.seterr
Returns: file_name_gen – Creates a new file with the name <handle> and the extension <extension>. It takes two string parameters: (
handle
,extension
) and returns onefileName
stringReturn type: function
See also
folderSetup
- creates the folders
- label (string, optional) – The label for the simulation. Default