@@ -109,7 +109,7 @@ julia --proj test/runtests.jl
Aldo Glielmo
Banca d'Italia
- Email: aldo [at] gmail.com
+ Email: aldo.glielmo@bancaditalia.it
From 4a01e2d549632b2d58c99e6da01a87d71be100b3 Mon Sep 17 00:00:00 2001
From: Mitja Devetak
Date: Fri, 3 May 2024 11:57:23 +0200
Subject: [PATCH 08/13] toml fix 1
---
Project.toml | 6 ------
test/test_accounting_identities.jl | 1 -
2 files changed, 7 deletions(-)
diff --git a/Project.toml b/Project.toml
index 2dd823f..eeacb7e 100644
--- a/Project.toml
+++ b/Project.toml
@@ -4,14 +4,9 @@ authors = ["Aldo Glielmo "]
version = "0.1.0"
[deps]
-CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
-DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
-DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
-DistributedArrays = "aaf54ef3-cdf8-58ed-94cc-d582ad619b94"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
-IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
@@ -21,7 +16,6 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
-StatsPlots = "f3b207a7-027a-5e70-b257-86293d7955fd"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
[compat]
diff --git a/test/test_accounting_identities.jl b/test/test_accounting_identities.jl
index efc2f40..896230a 100644
--- a/test/test_accounting_identities.jl
+++ b/test/test_accounting_identities.jl
@@ -1,5 +1,4 @@
using BeforeIT, MAT, FileIO, Random
-using Plots
using Test
dir = @__DIR__
From cd0ecd8c8c5e3a4af87cd6204b70fefc429f5702 Mon Sep 17 00:00:00 2001
From: Mitja Devetak
Date: Fri, 3 May 2024 12:11:07 +0200
Subject: [PATCH 09/13] toml fix 2
---
Project.toml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Project.toml b/Project.toml
index eeacb7e..5875756 100644
--- a/Project.toml
+++ b/Project.toml
@@ -19,4 +19,12 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
[compat]
-julia = "1.7.2"
+Distributions = "0.25"
+FileIO = "1.16"
+JLD2 = "0.4"
+JuliaFormatter = "1.0.56"
+MAT = "0.10"
+NamedTupleTools = "0.14"
+Plots = "1.40"
+StatsBase = "0.34"
+julia = "1.9"
From c1b357469c10ff0c9207dfc4184155ddb1f9eaa5 Mon Sep 17 00:00:00 2001
From: Mitja Devetak
Date: Fri, 3 May 2024 12:21:40 +0200
Subject: [PATCH 10/13] small update
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 7154393..80cf244 100644
--- a/README.md
+++ b/README.md
@@ -112,7 +112,7 @@ julia --proj test/runtests.jl
Email: aldo.glielmo@bancaditalia.it
|
-
+
Mitja Devetak
From 9f87c51d7caae7bdc9a9fd87ea914a4203464f08 Mon Sep 17 00:00:00 2001
From: Mitja Devetak
Date: Fri, 3 May 2024 12:24:37 +0200
Subject: [PATCH 11/13] update toml 3
---
Project.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Project.toml b/Project.toml
index 5875756..843b35b 100644
--- a/Project.toml
+++ b/Project.toml
@@ -1,6 +1,6 @@
name = "BeforeIT"
uuid = "ca9fcad7-41d0-4f76-b1e5-366c28bce52e"
-authors = ["Aldo Glielmo "]
+authors = ["Aldo Glielmo ", "Mitja Devetak "]
version = "0.1.0"
[deps]
From 2183c5bf7a173b6048fb2fe7ceb1048026dbe93f Mon Sep 17 00:00:00 2001
From: Mitja Devetak
Date: Fri, 3 May 2024 15:27:59 +0200
Subject: [PATCH 12/13] remove statistics as dependency
---
Project.toml | 1 -
examples/compare_model_vs_real.jl | 2 +-
examples/get_parameters_and_initial_conditions.jl | 2 +-
src/BeforeIT.jl | 1 -
src/utils/estimate.jl | 2 +-
test/markets/test_search_and_matching_mod.jl | 2 +-
test/markets/test_search_and_matching_seed_stability.jl | 2 +-
test/test_one_epoch.jl | 2 +-
test/test_one_epoch_consistency.jl | 2 +-
9 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/Project.toml b/Project.toml
index 843b35b..2b181f4 100644
--- a/Project.toml
+++ b/Project.toml
@@ -14,7 +14,6 @@ MAT = "23992714-dd62-5051-b70f-ba57cb901cac"
NamedTupleTools = "d9ec5142-1e00-5aa0-9d6a-321866360f50"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
-Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
diff --git a/examples/compare_model_vs_real.jl b/examples/compare_model_vs_real.jl
index 3242256..cd366ba 100644
--- a/examples/compare_model_vs_real.jl
+++ b/examples/compare_model_vs_real.jl
@@ -1,5 +1,5 @@
using BeforeIT
-using MAT, FileIO, Plots, StatsPlots, Statistics
+using MAT, FileIO, Plots, StatsPlots
using Dates
# load data from 1996
diff --git a/examples/get_parameters_and_initial_conditions.jl b/examples/get_parameters_and_initial_conditions.jl
index 24e5552..75c20a8 100644
--- a/examples/get_parameters_and_initial_conditions.jl
+++ b/examples/get_parameters_and_initial_conditions.jl
@@ -1,7 +1,7 @@
# In this tutorial we illustrate how to calibrate the model to the Italian data for a specific quarter
import BeforeIT as Bit
-using Dates, Statistics, FileIO
+using Dates, FileIO
# We start from loading the calibration oject for italy, which contains 4 datasets: calibration_data, figaro, data, and ea
diff --git a/src/BeforeIT.jl b/src/BeforeIT.jl
index 909de20..a8346e3 100644
--- a/src/BeforeIT.jl
+++ b/src/BeforeIT.jl
@@ -1,6 +1,5 @@
module BeforeIT
-using Statistics
using Random
using StatsBase
import Base: round, length
diff --git a/src/utils/estimate.jl b/src/utils/estimate.jl
index 415143c..bbcbb49 100644
--- a/src/utils/estimate.jl
+++ b/src/utils/estimate.jl
@@ -1,4 +1,4 @@
-using LinearAlgebra, Random, Statistics, Distributions
+using LinearAlgebra, Random, Distributions
function estimate_next_value(data, type = nothing)
alpha, beta, epsilon = estimate(data)
diff --git a/test/markets/test_search_and_matching_mod.jl b/test/markets/test_search_and_matching_mod.jl
index 31bd6e8..2d52a40 100644
--- a/test/markets/test_search_and_matching_mod.jl
+++ b/test/markets/test_search_and_matching_mod.jl
@@ -1,4 +1,4 @@
-using BeforeIT, Test, MAT, Statistics
+using BeforeIT, Test, MAT, StatsBase
using Random
Random.seed!(1)
diff --git a/test/markets/test_search_and_matching_seed_stability.jl b/test/markets/test_search_and_matching_seed_stability.jl
index a945b86..ead71da 100644
--- a/test/markets/test_search_and_matching_seed_stability.jl
+++ b/test/markets/test_search_and_matching_seed_stability.jl
@@ -1,4 +1,4 @@
-using BeforeIT, Test, MAT, Statistics
+using BeforeIT, Test, MAT, StatsBase
using Random
Random.seed!(1)
diff --git a/test/test_one_epoch.jl b/test/test_one_epoch.jl
index 4e8e8f9..40535f2 100644
--- a/test/test_one_epoch.jl
+++ b/test/test_one_epoch.jl
@@ -3,7 +3,7 @@ function randn(n1::Int, n2::Int)
return ones(n1, n2)
end
-using BeforeIT, MAT, Test, Statistics
+using BeforeIT, MAT, Test, StatsBase
dir = @__DIR__
diff --git a/test/test_one_epoch_consistency.jl b/test/test_one_epoch_consistency.jl
index 591bae1..7825b7a 100644
--- a/test/test_one_epoch_consistency.jl
+++ b/test/test_one_epoch_consistency.jl
@@ -1,7 +1,7 @@
using Revise
using BeforeIT
using MAT
-using Test, Statistics
+using Test
dir = @__DIR__
From aa9b53a6fcbed398ab46498dd6dfdb9bfc7421a5 Mon Sep 17 00:00:00 2001
From: Mitja Devetak
Date: Fri, 3 May 2024 16:15:37 +0200
Subject: [PATCH 13/13] remove Plots as dependency
---
Project.toml | 2 --
1 file changed, 2 deletions(-)
diff --git a/Project.toml b/Project.toml
index 2b181f4..f903ae9 100644
--- a/Project.toml
+++ b/Project.toml
@@ -12,7 +12,6 @@ JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
MAT = "23992714-dd62-5051-b70f-ba57cb901cac"
NamedTupleTools = "d9ec5142-1e00-5aa0-9d6a-321866360f50"
-Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
@@ -24,6 +23,5 @@ JLD2 = "0.4"
JuliaFormatter = "1.0.56"
MAT = "0.10"
NamedTupleTools = "0.14"
-Plots = "1.40"
StatsBase = "0.34"
julia = "1.9"
|