Skip to content

Commit

Permalink
make DIME default for sampler
Browse files Browse the repository at this point in the history
  • Loading branch information
gboehl committed Oct 26, 2022
1 parent 30f8d09 commit c240158
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file modified pydsge/examples/dfi_sampler.h5
Binary file not shown.
Binary file modified pydsge/tests/resources/estimation.npz
Binary file not shown.
5 changes: 3 additions & 2 deletions pydsge/tests/test_estimation.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""This file contains the test for the estimation of the model."""

import os
import numpy as np
import pandas as pd
from pydsge import DSGE, example
from pathlib import Path # for windows-Unix compatibility


def test_estimation(create=False):
Expand Down Expand Up @@ -35,7 +35,8 @@ def test_estimation(create=False):
mod.mcmc_summary()
this_sample = mod.sampler.get_chain()[0, 0]

save_path = Path("pydsge/tests/resources/estimation.npz")
pth = os.path.dirname(__file__)
save_path = os.path.join(pth, "resources", "estimation.npz")

if create:
with open(save_path, "wb") as f:
Expand Down

0 comments on commit c240158

Please sign in to comment.