diff --git a/modules/deeplearning/amv_raob.py b/modules/deeplearning/amv_raob.py
index dd5cf296f63dd77d7cc412ddb81de16e00cd2a1c..e953d9f6821ef01ae07dfe6fab47bcf333d3b74b 100644
--- a/modules/deeplearning/amv_raob.py
+++ b/modules/deeplearning/amv_raob.py
@@ -697,9 +697,11 @@ def get_interpolated_scalar(ds_0, ds_1, time0, time1, fld_name, time, lons, lats
 
 path_to_reader_dict = {}
 
+MAX_FILES_OPEN = 50
+
 
 def get_reader(path):
-    if len(path_to_reader_dict) > 50:
+    if len(path_to_reader_dict) > MAX_FILES_OPEN:
         path_to_reader_dict.clear()
 
     rdr = path_to_reader_dict.get(path)