Skip to content

Commit

Permalink
Add investment method to the graph structure (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
datejada authored Sep 11, 2024
1 parent 410fc5d commit b2a73e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function create_internal_structures(connection)
row.name => GraphAssetData(
row.type,
row.group,
row.investment_method,
_get_stuff("assets_data", "active"; name = row.name),
_get_stuff("assets_data", "investable"; name = row.name),
_get_stuff("assets_data", "investment_integer"; name = row.name),
Expand Down
3 changes: 3 additions & 0 deletions src/structures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Structure to hold the asset data in the graph.
mutable struct GraphAssetData
type::String
group::Union{Missing,String}
investment_method::Union{Missing,String}
active::Dict{Int,Bool}
investable::Dict{Int,Bool}
investment_integer::Dict{Int,Bool}
Expand Down Expand Up @@ -98,6 +99,7 @@ mutable struct GraphAssetData
function GraphAssetData(
type,
group,
investment_method,
active,
investable,
investment_integer,
Expand Down Expand Up @@ -138,6 +140,7 @@ mutable struct GraphAssetData
return new(
type,
group,
investment_method,
active,
investable,
investment_integer,
Expand Down

0 comments on commit b2a73e6

Please sign in to comment.