mirror of
https://github.com/ANL-CEEESA/RELOG.git
synced 2025-12-05 23:38:52 -06:00
Add RELOG.version()
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
|
||||
module RELOG
|
||||
|
||||
using Pkg
|
||||
|
||||
version() = Pkg.dependencies()[Base.UUID("a2afcdf7-cf04-4913-85f9-c0d81ddf2008")].version
|
||||
|
||||
include("instance/structs.jl")
|
||||
include("graph/structs.jl")
|
||||
|
||||
@@ -25,4 +29,5 @@ include("reports/products.jl")
|
||||
include("reports/tr_emissions.jl")
|
||||
include("reports/tr.jl")
|
||||
include("reports/write.jl")
|
||||
|
||||
end
|
||||
|
||||
@@ -14,14 +14,14 @@ end
|
||||
|
||||
|
||||
function _print_graph_stats(instance::Instance, graph::Graph)::Nothing
|
||||
@info @sprintf(" %12d time periods", instance.time)
|
||||
@info @sprintf(" %12d process nodes", length(graph.process_nodes))
|
||||
@info @sprintf(" %12d shipping nodes (plant)", length(graph.plant_shipping_nodes))
|
||||
@info @sprintf("%12d time periods", instance.time)
|
||||
@info @sprintf("%12d process nodes", length(graph.process_nodes))
|
||||
@info @sprintf("%12d shipping nodes (plant)", length(graph.plant_shipping_nodes))
|
||||
@info @sprintf(
|
||||
" %12d shipping nodes (collection)",
|
||||
"%12d shipping nodes (collection)",
|
||||
length(graph.collection_shipping_nodes)
|
||||
)
|
||||
@info @sprintf(" %12d arcs", length(graph.arcs))
|
||||
@info @sprintf("%12d arcs", length(graph.arcs))
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user