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. --- .../user_guide/gaze_analysis_pipeline/configuration_and_execution.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs/user_guide/gaze_analysis_pipeline/configuration_and_execution.md') diff --git a/docs/user_guide/gaze_analysis_pipeline/configuration_and_execution.md b/docs/user_guide/gaze_analysis_pipeline/configuration_and_execution.md index c53cfda..de23713 100644 --- a/docs/user_guide/gaze_analysis_pipeline/configuration_and_execution.md +++ b/docs/user_guide/gaze_analysis_pipeline/configuration_and_execution.md @@ -39,7 +39,10 @@ Then, here is how to load the JSON file: from argaze import ArFeatures # Load ArFrame -ar_frame = ArFeatures.ArFrame.from_json('./configuration.json') +with ArFeatures.ArFrame.from_json('./configuration.json') as ar_frame: + + # Do something with ArFrame + ... ``` Now, let's understand the meaning of each JSON entry. -- cgit v1.1