From e516c4d7e38a217651f98c61caed51cbb3e7c961 Mon Sep 17 00:00:00 2001 From: Leandro Martinez Date: Thu, 16 May 2024 14:37:34 -0300 Subject: [PATCH] add possibility of warning suppression --- Project.toml | 2 +- src/ParticleSystem.jl | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index f469c67..e9b8b60 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "CellListMap" uuid = "69e1c6dd-3888-40e6-b3c8-31ac5f578864" authors = ["Leandro Martinez and contributors"] -version = "0.8.31" +version = "0.8.32" [deps] Compat = "34da2185-b29b-5c13-b0c7-acf172513d20" diff --git a/src/ParticleSystem.jl b/src/ParticleSystem.jl index cb2b773..5130c22 100644 --- a/src/ParticleSystem.jl +++ b/src/ParticleSystem.jl @@ -1054,6 +1054,11 @@ end export PeriodicSystems module PeriodicSystems function __init__() + if haskey(ENV, "CELLLISTMAP_8.3_WARNING") + if ENV["CELLLISTMAP_8.3_WARNING"] == "false" + return + end + end @warn begin """\n Interface changes in v0.8.30, for `PeriodicSystems` submodule of CellListMap. @@ -1072,7 +1077,7 @@ module PeriodicSystems The new `ParticleSystem` interface supports non-periodic systems, by not setting the `unitcell` field in the system (or set `unitcell = nothing`). - + Suppress this warning by setting: ENV["CELLLISTMAP_8.3_WARNING"] = "false" """ end _file=nothing _line=nothing end