output_handler_factory
Factory for output handlers (simplified version).
This provides a simple factory for instantiating output handlers.
OutputHandlerFactory
Simple factory for output handlers.
Source code in src/mada_tools/simulation/simutils/samples/output/output_handler_factory.py
create(handler_type)
classmethod
Create an output handler by type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
handler_type
|
str
|
Type of handler ("csv", "folder", "directory", "dir") |
required |
Returns:
| Type | Description |
|---|---|
BaseOutputHandler
|
Instance of the requested handler |
Raises:
| Type | Description |
|---|---|
ValueError
|
If handler type is not supported |