Skip to content

Commit

Permalink
Merge pull request #1049 from NREL-Sienna/jd/batt_cost_improvements
Browse files Browse the repository at this point in the history
add print method for operational cost types
  • Loading branch information
jd-lara authored Feb 12, 2024
2 parents 19f649c + 884ebc0 commit 700e8a7
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 700e8a7

Please sign in to comment.