Skip to content

Commit

Permalink
updated version, and geniml usage
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Nov 28, 2023
1 parent 3252a03 commit 1bc0a64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bbconf/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.0"
__version__ = "0.4.0a5"
10 changes: 4 additions & 6 deletions bbconf/bbconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,8 @@ def __init__(self, config_path: str = None, database_only: bool = False):
CFG_PATH_TEXT2VEC_KEY, DEFAULT_TEXT2VEC_MODEL
)
_LOGGER.debug("Setting up qdrant database connection...")
if self.config[CFG_QDRANT_KEY].get(CFG_QDRANT_API_KEY, None):
os.environ["QDRANT_API_KEY"] = self.config[CFG_QDRANT_KEY].get(
CFG_QDRANT_API_KEY
)
self._qdrant_backend = self._init_qdrant_backend()

if self.config[CFG_PATH_KEY].get(CFG_PATH_REGION2VEC_KEY) and self.config[
CFG_PATH_KEY
].get(CFG_PATH_VEC2VEC_KEY):
Expand Down Expand Up @@ -221,11 +218,11 @@ def __str__(self):
return res

@property
def config(self) -> yacman.YAMLConfigManager:
def config(self) -> dict:
"""
Config used to initialize the object
:return yacman.YAMLConfigManager: bedbase configuration file contents
:return dict: bedbase configuration file contents
"""
return self._config

Expand Down Expand Up @@ -519,6 +516,7 @@ def _init_qdrant_backend(self) -> QdrantBackend:
collection=self._config[CFG_QDRANT_KEY][CFG_QDRANT_COLLECTION_NAME_KEY],
qdrant_host=self._config[CFG_QDRANT_KEY][CFG_QDRANT_HOST_KEY],
qdrant_port=self._config[CFG_QDRANT_KEY][CFG_QDRANT_PORT_KEY],
qdrant_api_key=self._config[CFG_QDRANT_KEY][CFG_QDRANT_API_KEY],
)

def _create_t2bsi_object(self) -> Union[text2bednn.Text2BEDSearchInterface, None]:
Expand Down

0 comments on commit 1bc0a64

Please sign in to comment.