From 9c42e9f1ee8208e14dadcb73cf030a9baef236ed Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Wed, 28 Feb 2024 18:48:40 +0100 Subject: Updating the use of with statement in documentation. --- .../gaze_analysis_pipeline/advanced_topics/module_loading.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/user_guide/gaze_analysis_pipeline/advanced_topics/module_loading.md') 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 6d37ea6..fb717b6 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 @@ -43,9 +43,9 @@ from argaze import ArFeatures import my_package # Load ArFrame -ar_frame = ArFeatures.ArFrame.from_json('./configuration.json') +with ArFeatures.ArFrame.from_json('./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)) + # Print ArFrame attributes + for module, scan_path_analyzer in ar_frame.scan_path_analyzers.items(): + print('scan path analyzer type:', type(scan_path_analyzer)) ``` -- cgit v1.1