From 775309a1a3ff948ab6801561e7f80409712c7394 Mon Sep 17 00:00:00 2001 From: Pedro Fontanarrosa Date: Tue, 20 Feb 2024 09:58:59 -0800 Subject: [PATCH] Fixes see to delete this before merging #40 --- BVAR/VARinfer.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/BVAR/VARinfer.py b/BVAR/VARinfer.py index 687e465..6a39b21 100644 --- a/BVAR/VARinfer.py +++ b/BVAR/VARinfer.py @@ -3,7 +3,7 @@ import pymc as pm import arviz as az import pytensor.tensor as at -from .VARsim import VARSimulator +from ..model_simulate.VARsim import VARSimulator from .utils import read_parameters from base_model.base_model import BaseModel @@ -202,13 +202,12 @@ def run_inference_large(self): plt.savefig("plot-posterior.pdf") -if __name__ == '__main__': +# if __name__ == '__main__': # Import parameters from JSON file - # FIXME: #40 see to delete this before merging + # parameters = read_parameters('parameters.json') + # simulator = VARSimulator(**parameters) + # simulator.run("VARsim") - parameters = read_parameters('parameters.json') - simulator = VARSimulator(**parameters) - simulator.run("VARsim") - - infer = VARInfer(simulator.data) - infer.run_inference() + # infer = VARInfer(simulator.data) + # infer.run_inference() + # infer.run_inference_large()