Skip to content

Commit

Permalink
remove chaospy
Browse files Browse the repository at this point in the history
  • Loading branch information
gboehl committed Jul 11, 2024
1 parent 4f64a4c commit 12964f4
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 18 deletions.
1 change: 0 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ dill
scipy
sympy
tqdm
chaospy
cloudpickle
h5py
pyyaml
Expand Down
Binary file modified pydsge/examples/dfi_sampler.h5
Binary file not shown.
13 changes: 0 additions & 13 deletions pydsge/mpile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
"""contains functions related to (re)compiling the model with different parameters
"""


import time
import dill
import tqdm
import random
import chaospy
import numpy as np
from emcwrap import get_prior_sample, get_prior
from grgrlib.multiprocessing import serializer
Expand Down Expand Up @@ -36,17 +34,6 @@ def posterior_sampler(self, nsamples, seed=0, verbose=True):
return sample


def sample_box(self, dim0, dim1=None, bounds=None, lp_rule=None):
"""Sample from a hypercube"""

bnd = bounds or np.array(self.fdict["prior_bounds"])
dim1 = dim1 or self.ndim
rule = lp_rule or "S"
res = chaospy.Uniform(0, 1).sample(size=(dim0, dim1), rule=rule)
res = (bnd[1] - bnd[0]) * res + bnd[0]
return res


def prior_sampler(
self,
nsamples,
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
numba
numpy<=1.26.4
numpy
pandas
pathos
dill
scipy
tqdm
chaospy
cloudpickle
h5py
pyyaml
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@
install_requires=[
"numba",
"emcee",
"numpy<=1.26.4",
"numpy",
"pandas",
"pathos",
"dill",
"tqdm",
"chaospy",
"cloudpickle",
"h5py",
"pyyaml",
Expand Down

0 comments on commit 12964f4

Please sign in to comment.