Remove folder settings. First post-proc without settings.
Still requires an empty dictionary to be defined in the config file
@@ -19,21 +19,17 @@ class PickleData(BaseSolver):
This postprocessor writes the SHARPy ``data`` structure in a pickle file, such that classes and
methods from SHARPy are retained for restarted solutions or further post-processing.
+ A pickle is saved to the SHARPy output folder, specified in the settings for SHARPy as ``log_folder``.
+
+ This solver does not have settings, yet it still needs to be included in the `.sharpy` file as an
+ empty dictionary.
"""
solver_id = 'PickleData'
solver_classification = 'post-processor'
- settings_types = dict()
- settings_default = dict()
- settings_description = dict()
-
- settings_table = settings.SettingsTable()
- __doc__ += settings_table.generate(settings_types, settings_default, settings_description)
-
def __init__(self):
import sharpy
- self.settings = None
self.data = None
self.filename = None
self.folder = None
@@ -41,14 +37,7 @@ class PickleData(BaseSolver):
def initialise(self, data, custom_settings=None, caller=None):
self.data = data
- if custom_settings is None:
- self.settings = data.settings[self.solver_id]
- else:
- self.settings = custom_settings
- settings.to_custom_types(self.settings,
- self.settings_types, self.settings_default)
- # create folder for containing files if necessary
self.folder = data.output_folder
self.filename = self.folder + self.data.settings['SHARPy']['case']+'.pkl'
self.caller = caller
