NREL-Sienna / InfrastructureSystems.jl

Utility package for Sienna's simulation infrastructure
https://nrel-sienna.github.io/InfrastructureSystems.jl/
BSD 3-Clause "New" or "Revised" License
39 stars 20 forks source link

improve print methods @scoped_enums #193

Closed jd-lara closed 3 years ago

jd-lara commented 3 years ago

When scoped enums are used in print statements they print the whole module. For example

[ Info: Unit System changed to InfrastructureSystems.UnitSystemModule.UnitSystem.SYSTEM_BASE = 0
daniel-thom commented 3 years ago

If UnitSystem is exported, which it probably should be, then you get this:

julia> set_units_base_system!(sys, "NATURAL_UNITS")
[ Info: Unit System changed to UnitSystem.NATURAL_UNITS = 2

Would that resolve the issue?