diff --git a/enstools/encoding/chunk_size.py b/enstools/encoding/chunk_size.py new file mode 100644 index 0000000000000000000000000000000000000000..ae859fb182dd4bd6463ab9f49b1dcac556479b54 --- /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") +