psrenergy/PSRClassesInterface.jl

Set different `verbose` values for `PMD.Parser`

Opened this issue · 0 comments

Currently, the verbose option for the PMD.Parser is a Bool. Should we change it for an Int or Enum, so the user can select how much detail they want from the parser´s log?

mutable struct Parser
# io pointer to read from
io::IO
# original pmd path and current line number, used to
# compose better error/warning messages
path::String
lineno::Int
# current parser state
state::Vector{Any}
# items to be merged
merge::Dict{String, Vector{Any}}
# whether to display warnings
verbose::Bool
# Study info
data_struct::DataStruct
relation_mapper::RelationMapper
model_template::ModelTemplate