From c03097c7b8e9b3fbbe188c0c99908fae2b28ba37 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Wed, 10 Apr 2024 12:37:08 +0200 Subject: Adding new argaze.load package function to ease the access to DataFeatures.from_json function. --- .../gaze_analysis_pipeline/advanced_topics/module_loading.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/user_guide/gaze_analysis_pipeline/advanced_topics') diff --git a/docs/user_guide/gaze_analysis_pipeline/advanced_topics/module_loading.md b/docs/user_guide/gaze_analysis_pipeline/advanced_topics/module_loading.md index fb717b6..0e439a9 100644 --- a/docs/user_guide/gaze_analysis_pipeline/advanced_topics/module_loading.md +++ b/docs/user_guide/gaze_analysis_pipeline/advanced_topics/module_loading.md @@ -37,13 +37,13 @@ To do so, simply prepend the package where to find the module into the JSON conf Then, load your package from the python script where the [ArFrame](../../../argaze.md/#argaze.ArFeatures.ArFrame) is created. ```python -from argaze import ArFeatures +import argaze # Import your own package import my_package # Load ArFrame -with ArFeatures.ArFrame.from_json('./configuration.json') as ar_frame: +with argaze.load('./configuration.json') as ar_frame: # Print ArFrame attributes for module, scan_path_analyzer in ar_frame.scan_path_analyzers.items(): -- cgit v1.1