Load modules from another package ================================= It is possible to load [GazeMovementIdentifier](../../../argaze.md/#argaze.GazeFeatures.GazeMovementIdentifier), [ScanPathAnalyzer](../../../argaze.md/#argaze.GazeFeatures.ScanPathAnalyzer), [AOIMatcher](../../../argaze.md/#argaze.GazeFeatures.AOIMatcher) or [AOIScanPathAnalyzer](../../../argaze.md/#argaze.GazeFeatures.AOIScanPathAnalyzer) modules [from another Python package](https://docs.python.org/3/tutorial/modules.html#packages). To do so, simply prepend the package where to find the module into the JSON configuration file: ``` { ... "gaze_movement_identifier": { "my_package.MyGazeMovementIdentifierAlgorithm": { "specific_plugin_parameter": 0 } }, ... "scan_path_analyzers": { "my_package.MyScanPathAnalyzerAlgorithm": { "specific_plugin_parameter": 0 } } ... "aoi_matcher": { "my_package.MyAOIMatcherAlgorithm": { "specific_plugin_parameter": 0 } } ... "aoi_scan_path_analyzers": { "my_package.MyAOIScanPathAnalyzerAlgorithm": { "specific_plugin_parameter": 0 } } } ``` Then, load your package from the Python script where the [ArFrame](../../../argaze.md/#argaze.ArFeatures.ArFrame) is created. ```python import argaze # Import your own package import my_package # Load ArFrame with argaze.load('./configuration.json') as ar_frame: # Print ArFrame attributes for module, scan_path_analyzer in ar_frame.scan_path_analyzers.items(): print('scan path analyzer type:', type(scan_path_analyzer)) ```