ctwrap Output¶
The output
module defines defines a Output
object
and derived classes that handle file output for batch jobs of wrapped
Simulation
module runs.
Class Definitions¶
-
class
ctwrap.output.
Output
(settings, file_name=None, file_path=None)[source]¶ Class handling file output
- Parameters
settings (
Dict
[str
,Any
]) – Dictionary specifying output settingsfile_name (
Optional
[str
]) – filename (overrides settings enty)file_path (
Optional
[str
]) – output path (overrides settings entryl)
-
property
output_name
¶ Return output name
-
property
settings
¶ Output settings
-
classmethod
from_dict
(settings, file_name=None, file_path=None)[source]¶ Factory loader for
Output
objects- Parameters
settings (
Dict
[str
,Any
]) – Dictionary containing output settings- Return type
-
save
(data, entry, variation=None, mode='a', errored=False)[source]¶ Save output
- Parameters
data (
Any
) – Data to be savedentry (
str
) – Description of simulation taskvariation (
Optional
[Dict
]) – Parameter valuesmode (
Optional
[str
]) – Save modeerrored (
Optional
[bool
]) – Boolean describing success of simulation task
- Return type
bool
- Returns
True if data are saved successfully