Skip to content

Commit

Permalink
Merge pull request #60 from databio/dev
Browse files Browse the repository at this point in the history
Release 0.7.1
  • Loading branch information
khoroshevskyi authored Oct 15, 2024
2 parents 827509d + 5b5fff6 commit 1e83da8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bbconf/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.7.0"
__version__ = "0.7.1"
11 changes: 9 additions & 2 deletions bbconf/config_parser/bedbaseconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,18 @@ def _init_boto3_client(
warnings.warn(f"Error in creating boto3 client object: {e}", UserWarning)
return None

def _init_r2v_object(self) -> Region2VecExModel:
def _init_r2v_object(self) -> Union[Region2VecExModel, None]:
"""
Create Region2VecExModel object using credentials provided in config file
"""
return Region2VecExModel(self.config.path.region2vec)
try:
return Region2VecExModel(self.config.path.region2vec)
except Exception as e:
_LOGGER.error(f"Error in creating Region2VecExModel object: {e}")
warnings.warn(
f"Error in creating Region2VecExModel object: {e}", UserWarning
)
return None

def upload_s3(self, file_path: str, s3_path: Union[Path, str]) -> None:
"""
Expand Down
3 changes: 2 additions & 1 deletion requirements/requirements-all.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
yacman >= 0.9.1
sqlalchemy >= 2.0.0
geniml[ml] >= 0.4.2
geniml[ml] >= 0.4.3
geniml[ml] < 0.5.0
psycopg >= 3.1.15
colorlogs
pydantic >= 2.9.0
Expand Down

0 comments on commit 1e83da8

Please sign in to comment.