Skip to content

Commit

Permalink
Add explicit stacklevel to warnings.warn
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-rodrigues committed Jul 3, 2023
1 parent 3bb83c9 commit 4f94385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/particle/particle/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 4f94385

Please sign in to comment.