Module Contents


RestartFileContents(file, methodName, reportEnabled)

This is the RestartFileContents class for generating instances

class paramonte._RestartFileContents.RestartFileContents(file, methodName, reportEnabled)[source]

Bases: _OutputFileContents.OutputFileContents

This is the RestartFileContents class for generating instances of the ParaMonte restart output contents. This class is NOT meant to be directly accessed by the ParaMonte library users. It is internally used by the ParaMonte library to parse the contents of the output restart files generated by the ParaMonte sampler routines. For example, the ParaDRAM sampler class makes calls to this class via its readRestart() method to return a list of objects of class RestartFileContents.



The full path to the file containing the sample/chain.


A string representing the name of the ParaMonte sampler used to call the constructor of the RestartFileContents class.


A logical input parameter indicating whether the ParaMonte automatic guidelines to the standard output should be provided or not. The default value is True.


A dynamic set of attributes that are directly parsed from the file.



An object of class RestartFileContents.

_resetPlot(self, resetType='soft', plotNames='all')[source]

Reset the properties of the plot to the original default settings. Use this method when you change many attributes of the plot and you want to clean up and go back to the default settings.


resetType (optional)

An optional string with possible value of "hard". If provided, the plot object will be regenerated from scratch. This includes reading the original data frame again and resetting everything. If not provided, then only the plot settings will be reset without reseting the dataFrame.

plotNames (optional)

An optional string value or list of string values representing the names of plots to reset. If no value is provided, then all plots will be reset.




reset("hard")                       # regenerate all plots from scratch
reset("hard","covmat2")             # regenerate covmat2 plot from scratch
reset("hard",["covmat2","covmat3"]) # regenerate covmat2 & covmat3 plots