Skip to content

Commit e516c4d

Browse files
committed
add possibility of warning suppression
1 parent de52321 commit e516c4d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "CellListMap"
22
uuid = "69e1c6dd-3888-40e6-b3c8-31ac5f578864"
33
authors = ["Leandro Martinez <[email protected]> and contributors"]
4-
version = "0.8.31"
4+
version = "0.8.32"
55

66
[deps]
77
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"

src/ParticleSystem.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,11 @@ end
10541054
export PeriodicSystems
10551055
module PeriodicSystems
10561056
function __init__()
1057+
if haskey(ENV, "CELLLISTMAP_8.3_WARNING")
1058+
if ENV["CELLLISTMAP_8.3_WARNING"] == "false"
1059+
return
1060+
end
1061+
end
10571062
@warn begin """\n
10581063
10591064
Interface changes in v0.8.30, for `PeriodicSystems` submodule of CellListMap.
@@ -1072,7 +1077,7 @@ module PeriodicSystems
10721077
The new `ParticleSystem` interface supports non-periodic systems, by
10731078
not setting the `unitcell` field in the system (or set `unitcell = nothing`).
10741079
1075-
1080+
Suppress this warning by setting: ENV["CELLLISTMAP_8.3_WARNING"] = "false"
10761081
10771082
""" end _file=nothing _line=nothing
10781083
end

0 commit comments

Comments
 (0)