Skip to content

Commit

Permalink
Update calibration_script.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Oct 31, 2024
1 parent 9b2286b commit d9d12a4
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions test/calibration_script.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
using BeforeIT, MAT
using FileIO, Dates

using MAT, FileIO, Dates

dir = @__DIR__

parameters_mat = matread(joinpath(dir, "matlab_code/italy_calibration/parameters/2010Q1.mat"))
initial_conditions_mat = matread(joinpath(dir, "matlab_code/italy_calibration/initial_conditions/2010Q1.mat"))

# parameters = BeforeIT.ITALY2010Q1.parameters
# initial_conditions = BeforeIT.ITALY2010Q1.initial_conditions

using BeforeIT

calibration_data = BeforeIT.ITALY_CALIBRATION.calibration
figaro = BeforeIT.ITALY_CALIBRATION.figaro
Expand All @@ -23,13 +21,12 @@ estimation_date = DateTime(1996, 12, 31)
# Calibrate on a specific quarter
calibration_date = DateTime(2010, 03, 31)#-Dates.Month(3)
parameters, initial_conditions = BeforeIT.get_params_and_initial_conditions(
calibration_date,
calibration_data,
figaro,
data,
ea,
max_calibration_date,
estimation_date;
(calibration = calibration_data,
figaro = figaro,
data = data,
ea = ea,
max_calibration_date = max_calibration_date,
estimation_date = estimation_date), calibration_date;
scale = 0.001,
)

Expand Down

0 comments on commit d9d12a4

Please sign in to comment.