Skip to content

Commit

Permalink
init: make new modular functions, one for each agent class
Browse files Browse the repository at this point in the history
  • Loading branch information
AldoGl committed Jun 11, 2024
1 parent ef2e8dd commit 15e3f40
Show file tree
Hide file tree
Showing 11 changed files with 530 additions and 422 deletions.
1 change: 0 additions & 1 deletion main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ for t in 1:T
BeforeIT.update_data!(data, model)
end


p1 = plot(data.real_gdp, title = "gdp", titlefont = 10)
p2 = plot(data.real_household_consumption, title = "household cons.", titlefont = 10)
p3 = plot(data.real_government_consumption, title = "gov. cons.", titlefont = 10)
Expand Down
7 changes: 7 additions & 0 deletions src/BeforeIT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ import Base: round, length
include("model_init/agents.jl")

# model initialisation function
include("model_init/init_properties.jl")
include("model_init/init_banks.jl")
include("model_init/init_firms.jl")
include("model_init/init_workers.jl")
include("model_init/init_government.jl")
include("model_init/init_rest_of_the_world.jl")
include("model_init/init_aggregates.jl")
include("model_init/init.jl")

# functions
Expand Down
Loading

0 comments on commit 15e3f40

Please sign in to comment.