You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/PWF.jl
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,21 @@ module PWF
2
2
3
3
# using packages
4
4
using PowerModels
5
+
using Memento
6
+
7
+
# setting up Memento
8
+
const _LOGGER = Memento.getlogger(@__MODULE__)
9
+
10
+
__init__() = Memento.register(_LOGGER)
11
+
12
+
functionsilence()
13
+
Memento.info(_LOGGER, "Suppressing information and warning messages for the rest of this session. Use the Memento package for more fine-grained control of logging.")
isa(dict_dglt, Dict) &&length(dict_dglt) ==1?@warn("Only one limit voltage group definded, each bus will be considered as part of the group $(pwf_data["DGLT"]["1"]["GROUP"]), regardless of its defined group") :nothing
111
+
isa(dict_dglt, Dict) &&length(dict_dglt) ==1?Memento.warn(_LOGGER, "Only one limit voltage group definded, each bus will be considered as part of the group $(pwf_data["DGLT"]["1"]["GROUP"]), regardless of its defined group") :nothing
isa(dict_dgbt, Dict) &&length(dict_dgbt) ==1?@warn("Only one base voltage group definded, each bus will be considered as part of the group $(pwf_data["DGBT"]["1"]["GROUP"]), regardless of its defined group") :nothing
113
+
isa(dict_dgbt, Dict) &&length(dict_dgbt) ==1?Memento.warn(_LOGGER, "Only one base voltage group definded, each bus will be considered as part of the group $(pwf_data["DGBT"]["1"]["GROUP"]), regardless of its defined group") :nothing
0 commit comments