DataProcess API
AeroViz.dataProcess.DataProcess(method, path_out, excel=False, csv=True)
Factory function to create appropriate data processing module based on method type.
This function serves as an entry point for different data processing methods in AeroViz. It returns an instance of the appropriate processor class based on the specified method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
method
|
str
|
The processing method to use. Must be one of: 'Chemistry', 'Optical', 'SizeDistr', or 'VOC'. |
required |
path_out
|
Path
|
Path where processed output files will be saved. |
required |
excel
|
bool
|
Whether to save output in Excel format. |
False
|
csv
|
bool
|
Whether to save output in CSV format. |
True
|
Returns:
Type | Description |
---|---|
object
|
Instance of the selected processing class initialized with the provided parameters. |
Raises:
Type | Description |
---|---|
ValueError
|
If the specified method name is not in the supported methods list. |
Examples:
>>> from AeroViz import DataProcess
>>> from pathlib import Path
>>> processor = DataProcess(method='Optical', path_out=Path('./results'))