From f4c137eb3fb85a17436417faf10ffa40d5afde7c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de>
Date: Fri, 2 Jun 2023 15:51:29 +0200
Subject: [PATCH] Add module to control chunk size.

---
 enstools/encoding/chunk_size.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 enstools/encoding/chunk_size.py

diff --git a/enstools/encoding/chunk_size.py b/enstools/encoding/chunk_size.py
new file mode 100644
index 0000000..ae859fb
--- /dev/null
+++ b/enstools/encoding/chunk_size.py
@@ -0,0 +1,12 @@
+# Using a module file to store the desired chunk size.
+chunk_size = "10MB"
+
+def change_chunk_size(new_chunk_size: str):
+    global chunk_size
+    chunk_size = new_chunk_size
+
+# This variable will be used in many places.
+# One can modify this variable directly assigning a new value
+# enstools.encoding.chunk_size.chunk_size = "1MB"
+# or using the function change_chunk_size("1MB")
+
-- 
GitLab