Skip to content

Commit

Permalink
Merge branch 'main' into hr/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara authored Feb 12, 2024
2 parents 3a3179e + 700e8a7 commit c8a17bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/utils/print.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ function Base.summary(tech::DeviceParameter)
return "$(typeof(tech))"
end

function Base.show(io::IO, ::MIME"text/plain", data::OperationalCost)
println(io, "$(typeof(data)): ")
for field_name in fieldnames(typeof(data))
val = getproperty(data, field_name)
print(io, " $(field_name): $val\n")
end
end

function Base.show(io::IO, ::MIME"text/plain", data::PowerSystemTableData)
println(io, "$(typeof(data)):")
println(io, " directory: $(data.directory)")
Expand Down

0 comments on commit c8a17bd

Please sign in to comment.