From a06d6a3f1795a436516a9a683680f90b4ede38c7 Mon Sep 17 00:00:00 2001 From: Mayank Pachori Date: Sat, 6 Jul 2024 14:13:48 +0530 Subject: [PATCH] An update in code is proposed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This update can help the user who are using the SOS for first time with this change they do not need to create directory on their own. The code will ensure that necessary directories is created and if they exist then no need for creation. --- Python Code/SoS_Acquisition.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Python Code/SoS_Acquisition.py b/Python Code/SoS_Acquisition.py index 9335131..b90152a 100644 --- a/Python Code/SoS_Acquisition.py +++ b/Python Code/SoS_Acquisition.py @@ -12,6 +12,10 @@ import matplotlib.pyplot as plt import numpy as np import time +import os +# Create directories if they don't exist +os.makedirs("data/X/", exist_ok=True) +os.makedirs("data/Y/", exist_ok=True '''