From fb785ef22205329a6600dd58676ed7cdf1e7e6f2 Mon Sep 17 00:00:00 2001 From: wcole Date: Wed, 20 May 2026 09:17:16 -0600 Subject: [PATCH] Ignore memory leak warning from the kmeans function that only displays when running on Windows machines. --- reeds/input_processing/WriteHintage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reeds/input_processing/WriteHintage.py b/reeds/input_processing/WriteHintage.py index 68e01041..b193e8d4 100644 --- a/reeds/input_processing/WriteHintage.py +++ b/reeds/input_processing/WriteHintage.py @@ -55,8 +55,10 @@ # Time the operation of this script tic = datetime.datetime.now() -# ignore ConvergenceWarnings that occur in this file from the kmeans function +# ignore ConvergenceWarnings and Windows+MKL memory leak warnings that +# occur in this file from the kmeans function warnings.filterwarnings("ignore", category=ConvergenceWarning) +warnings.filterwarnings("ignore", message="KMeans is known to have a memory leak") #%% ===========================================================================