aboutsummaryrefslogtreecommitdiff
path: root/docs/user_guide/gaze_analysis_pipeline/advanced_topics/module_loading.md
diff options
context:
space:
mode:
authorThéo de la Hogue2024-02-28 18:48:40 +0100
committerThéo de la Hogue2024-02-28 18:48:40 +0100
commit9c42e9f1ee8208e14dadcb73cf030a9baef236ed (patch)
treee4d8e03e0c84af5afdc9d397d76dcb130320598b /docs/user_guide/gaze_analysis_pipeline/advanced_topics/module_loading.md
parentb6101dddb28fa6ac9cd556facdc38c1ebcff7db3 (diff)
downloadargaze-9c42e9f1ee8208e14dadcb73cf030a9baef236ed.zip
argaze-9c42e9f1ee8208e14dadcb73cf030a9baef236ed.tar.gz
argaze-9c42e9f1ee8208e14dadcb73cf030a9baef236ed.tar.bz2
argaze-9c42e9f1ee8208e14dadcb73cf030a9baef236ed.tar.xz
Updating the use of with statement in documentation.
Diffstat (limited to 'docs/user_guide/gaze_analysis_pipeline/advanced_topics/module_loading.md')
-rw-r--r--docs/user_guide/gaze_analysis_pipeline/advanced_topics/module_loading.md8
1 files changed, 4 insertions, 4 deletions
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))
```