From bbdc08a10eae8dd3b5d0f1b665295584f85ff875 Mon Sep 17 00:00:00 2001 From: Sadman Ahmed Shanto Date: Fri, 22 Dec 2023 21:28:26 -0600 Subject: [PATCH] doing relative imports to see if this fixes the doc site generation issue --- squadds/calcs/transmon_cross.py | 2 +- squadds/core/analysis.py | 2 +- squadds/core/db.py | 4 ++-- squadds/core/utils.py | 2 +- squadds/database/contributor.py | 6 +++--- squadds/database/utils.py | 2 +- squadds/interpolations/interpolator.py | 2 +- squadds/interpolations/physics.py | 6 +++--- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/squadds/calcs/transmon_cross.py b/squadds/calcs/transmon_cross.py index ffc91636..ed577964 100644 --- a/squadds/calcs/transmon_cross.py +++ b/squadds/calcs/transmon_cross.py @@ -1,7 +1,7 @@ import numpy as np import matplotlib.pyplot as plt import scqubits as scq -from calcs.qubit import QubitHamiltonian +from .qubit import QubitHamiltonian from scqubits.core.transmon import Transmon from pyEPR.calcs import Convert from scipy.constants import e, h, hbar diff --git a/squadds/core/analysis.py b/squadds/core/analysis.py index 016a2302..ac55718b 100644 --- a/squadds/core/analysis.py +++ b/squadds/core/analysis.py @@ -1,5 +1,5 @@ import pandas as pd -from squadds.calcs import * +from ..calcs import * import seaborn as sns from metrics import * import matplotlib.pyplot as plt diff --git a/squadds/core/db.py b/squadds/core/db.py index 75e28893..de9dcf94 100644 --- a/squadds/core/db.py +++ b/squadds/core/db.py @@ -1,10 +1,10 @@ -from design_patterns import SingletonMeta +from .design_patterns import SingletonMeta from datasets import get_dataset_config_names from datasets import load_dataset from tabulate import tabulate import pprint import pandas as pd -from utils import * +from .utils import * class SQuADDS_DB(metaclass=SingletonMeta): diff --git a/squadds/core/utils.py b/squadds/core/utils.py index 3f33c6b4..5ecbee2a 100644 --- a/squadds/core/utils.py +++ b/squadds/core/utils.py @@ -3,7 +3,7 @@ import getpass import os from huggingface_hub import HfApi, HfFolder -from globals import ENV_FILE_PATH +from .globals import ENV_FILE_PATH import pandas as pd import numpy as np diff --git a/squadds/database/contributor.py b/squadds/database/contributor.py index 08ef03f3..5f2bf265 100644 --- a/squadds/database/contributor.py +++ b/squadds/database/contributor.py @@ -4,9 +4,9 @@ from datetime import datetime from dotenv import load_dotenv -from squadds.core.globals import * -from squadds.core.utils import * -from squadds.database.checker import Checker +from ..core.globals import * +from ..core.utils import * +from ..database.checker import Checker from huggingface_hub import HfApi, HfFolder, login load_dotenv(ENV_FILE_PATH) diff --git a/squadds/database/utils.py b/squadds/database/utils.py index 77c5f8bc..f5f84ec6 100644 --- a/squadds/database/utils.py +++ b/squadds/database/utils.py @@ -1,6 +1,6 @@ """Utilities for the database package.""" from pathlib import Path -from squadds.core.globals import * +from ..core.globals import * import json import hashlib diff --git a/squadds/interpolations/interpolator.py b/squadds/interpolations/interpolator.py index 3ef5ee34..e8595c06 100644 --- a/squadds/interpolations/interpolator.py +++ b/squadds/interpolations/interpolator.py @@ -1,5 +1,5 @@ from abc import ABC, abstractmethod -from squadds.core import Analyzer +from ..core import Analyzer import pandas as pd class Interpolator(ABC): diff --git a/squadds/interpolations/physics.py b/squadds/interpolations/physics.py index a8dafedd..b3f99d5b 100644 --- a/squadds/interpolations/physics.py +++ b/squadds/interpolations/physics.py @@ -1,7 +1,7 @@ -from squadds.interpolations import Interpolator +from .interpolator import Interpolator import pandas as pd -from squadds.calcs import * -from squadds.core import * +from ..calcs import * +from ..core import * from pyEPR.calcs import Convert def string_to_float(string):