From e82c43213d11fd5f53ddf812d89b2cb76beecdf3 Mon Sep 17 00:00:00 2001 From: Noah Franz Date: Thu, 11 Jul 2024 16:46:00 -0700 Subject: [PATCH] fix import bug --- pyproject.toml | 5 +++-- src/syncfit/mcmc.py | 2 +- src/syncfit/models/thermalsyn_v2.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 299bb96..892af37 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ['setuptools>=42'] +requires = ['setuptools>=64'] build-backend = "setuptools.build_meta" [project] @@ -30,7 +30,8 @@ classifiers = [ dependencies = [ "numpy>=1.20", "matplotlib", - "emcee" + "emcee", + "dynesty" ] [project.optional-dependencies] diff --git a/src/syncfit/mcmc.py b/src/syncfit/mcmc.py index 00b3a72..afc205d 100644 --- a/src/syncfit/mcmc.py +++ b/src/syncfit/mcmc.py @@ -45,7 +45,7 @@ def do_dynesty(nu:list[float], F_mJy:list[float], F_error:list[float], dynesty_args = model.get_kwargs(nu, F_mJy, F_error, lum_dist=lum_dist, t=t, p=fix_p) ndim = len(model.get_labels(p=fix_p)) rstate = np.random.default_rng(seed) - + # construct the sampler and run it # NOTE: I give it the lnprob instead of loglik because there can be some other # priors that are built into the lnprob that can not be in the dynesty prior diff --git a/src/syncfit/models/thermalsyn_v2.py b/src/syncfit/models/thermalsyn_v2.py index 5e49b84..720b1c5 100644 --- a/src/syncfit/models/thermalsyn_v2.py +++ b/src/syncfit/models/thermalsyn_v2.py @@ -42,7 +42,7 @@ import numpy as np from scipy import special from scipy import optimize -import .Constants as C +import Constants as C def a_fun(Theta): '''Utility function defined in eq. (1), MQ21