From 4f943854f005f42732f969892043afd569a21db6 Mon Sep 17 00:00:00 2001 From: Eduardo Rodrigues Date: Mon, 3 Jul 2023 18:16:35 +0200 Subject: [PATCH] Add explicit stacklevel to warnings.warn --- src/particle/particle/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/particle/particle/convert.py b/src/particle/particle/convert.py index 4568bdea..43f46c79 100644 --- a/src/particle/particle/convert.py +++ b/src/particle/particle/convert.py @@ -416,7 +416,7 @@ def produce_files( mcd_year = "mass_width_" + year + ".mcd" warnings.warn(f"""{mcd_year!r} contains the following {len(ext_table_excl)} new entries:" {ext_table_excl.index.to_list()} - Curation needs an update!""") + Curation needs an update!""", stacklevel=1) full_table = pd.concat([full_table, addons])