Skip to content

Commit

Permalink
fix import bug
Browse files Browse the repository at this point in the history
  • Loading branch information
noahfranz13 committed Jul 11, 2024
1 parent 38a18b0 commit e82c432
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ['setuptools>=42']
requires = ['setuptools>=64']
build-backend = "setuptools.build_meta"

[project]
Expand Down Expand Up @@ -30,7 +30,8 @@ classifiers = [
dependencies = [
"numpy>=1.20",
"matplotlib",
"emcee"
"emcee",
"dynesty"
]

[project.optional-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/syncfit/mcmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/syncfit/models/thermalsyn_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e82c432

Please sign in to comment.