From 2d105ccad285318111e33a974bb1725cd5010e02 Mon Sep 17 00:00:00 2001 From: Noah Franz Date: Thu, 11 Jul 2024 17:49:48 -0700 Subject: [PATCH] fix minor import bug --- docs/conf.py | 8 +++----- pyproject.toml | 1 + src/syncfit/_version.py | 2 +- src/syncfit/models/thermalsyn_v2.py | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index ab70c21..1bc2b7b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,7 +14,7 @@ # import sys # sys.path.insert(0, os.path.abspath('.')) -# import syncfit +import syncfit from typing import List import sys import os @@ -23,7 +23,6 @@ sys.path.insert(0, os.path.abspath(".")) sys.path.insert(0, os.path.abspath("../")) sys.path.insert(0, os.path.abspath("../src/syncfit")) # needed for autodocs -sys.path.insert(0, os.path.abspath("../src/syncfit/models")) # needed for autodocs # -- Project information ----------------------------------------------------- @@ -32,9 +31,8 @@ author = 'Noah Franz, Collin Christy' # The full version, including alpha/beta/rc tags -from _version import __version__ as _v -release = _v -version = _v +release = syncfit.__version__ +version = syncfit.__version__ # -- General configuration --------------------------------------------------- diff --git a/pyproject.toml b/pyproject.toml index 892af37..97f013b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ classifiers = [ dependencies = [ "numpy>=1.20", "matplotlib", + "scipy", "emcee", "dynesty" ] diff --git a/src/syncfit/_version.py b/src/syncfit/_version.py index d3ec452..3ced358 100644 --- a/src/syncfit/_version.py +++ b/src/syncfit/_version.py @@ -1 +1 @@ -__version__ = "0.2.0" +__version__ = "0.2.1" diff --git a/src/syncfit/models/thermalsyn_v2.py b/src/syncfit/models/thermalsyn_v2.py index 720b1c5..6ce3b17 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 +from . import Constants as C def a_fun(Theta): '''Utility function defined in eq. (1), MQ21