@@ -48,7 +48,7 @@ Base.show(io::IO, s::KAAggregator) = print(io, "KAAggregator($(repr(s.f)))")
48
48
Base. show (io:: IO , s:: SequentialAggregator ) = print (io, " SequentialAggregator($(repr (s. f)) )" )
49
49
Base. show (io:: IO , s:: PolyesterAggregator ) = print (io, " PolyesterAggregator($(repr (s. f)) )" )
50
50
51
- function Base. show (io:: IO , :: MIME"text/plain" , c:: ComponentModel )
51
+ function Base. show (io:: IO , mime :: MIME"text/plain" , c:: ComponentModel )
52
52
type = string (typeof (c))
53
53
print (io, type, styled " {NetworkDynamics_name::$(c.name)}" )
54
54
print (io, styled " {NetworkDynamics_fftype:$(fftype(c))}" )
@@ -64,6 +64,14 @@ function Base.show(io::IO, ::MIME"text/plain", c::ComponentModel)
64
64
styling = Dict {Int,Symbol} ()
65
65
66
66
print_states_params (io, c, styling)
67
+
68
+ # special known metadata of PowerDynamics
69
+ if has_metadata (c, :pfmodel )
70
+ pfm = get_metadata (c, :pfmodel )
71
+ printstyled (io, " \n Powerflow model " , color= :blue , bold= true )
72
+ print (io, " :" , pfm. name)
73
+ pdim (pfm) > 0 && print (io, styled " with $(stylesymbolarray(pfm.psym, _pdef(pfm), _pguess(pfm)))" )
74
+ end
67
75
end
68
76
69
77
function print_states_params (io, @nospecialize (c:: ComponentModel ), styling)
0 commit comments