emodpy.reporters.base module¶
- class emodpy.reporters.base.BaseReporter¶
Bases:
object
- abstract to_dict()¶
- from_dict(data)¶
Function allowing to initialize a Reporter instance with data. This function is called when reading a custom_reports.json file.
- class emodpy.reporters.base.CustomReporter(name: typing.Optional[str] = None, Enabled: bool = True, Reports: list = <factory>, dll_file: typing.Optional[str] = None)¶
Bases:
emodpy.reporters.base.BaseReporter
This class represents a custom reporter. - name: Name that will be added to the custom_reports.json file and should match the DLL’s class name - Enabled: True/False to enable/disable the reporter - Reports: Default section present in the custom_reports.json file allowing to configure the reporter - dll_file: Filename of the dll containing the reporter. This file will be searched in the dll folder specified by the user on the EMODTask.reporters.
- to_dict() Dict ¶
Export the reporter to a dictionary. This function is called when serializing the reporter before writing the custom_reports.json file.
- enable()¶
- disable()¶
- class emodpy.reporters.base.BuiltInReporter(class_name: str = None, parameters: dict = <factory>, Enabled: bool = True, Pretty_Format: bool = True)¶
Bases:
emodpy.reporters.base.BaseReporter
- to_dict()¶
- from_dict(data)¶
Function allowing to initialize a Reporter instance with data. This function is called when reading a custom_reports.json file.
- class emodpy.reporters.base.Reporters(relative_path='reporter_plugins')¶
Bases:
emodpy.emod_file.InputFilesList
- add_reporter(reporter)¶
- property json¶
- property empty¶
- add_dll_folder(dll_folder: str)¶
Add all the dll files from a folder
- Parameters
dll_folder – Folder to add the dll file from
Returns:
- read_custom_reports_file(custom_reports_path, extra_classes=[]) NoReturn ¶
Read from a custom reporter file
- Parameters
custom_reports_path – The custom reports file to add(single file).
- set_task_config(task: EMODTask) NoReturn ¶
Set task config
- Parameters
task – Task to configure
Returns:
- gather_assets(**kwargs) List[idmtools.assets.asset.Asset] ¶
Gather input files for Input File List
Returns: