Skip to content

Commit

Permalink
Bugfix release 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Koncopd committed Feb 29, 2024
1 parent c60215f commit 51a0294
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scarches/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
'[email protected]'
])

__version__ = '0.6.0'
__version__ = '0.6.1'
5 changes: 3 additions & 2 deletions scarches/models/base/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import numpy as np
import torch
from torch.distributions import Normal
from anndata import AnnData, read
from scipy.sparse import issparse

Expand Down Expand Up @@ -132,12 +133,12 @@ def _load_params(cls, dir_path: str, map_location: Optional[str] = None):
# This catches the following error:
# RuntimeError: Attempting to deserialize object on a CUDA device
# but torch.cuda.is_available() is False.
# If you are running on a CPU-only machine, please use torch.load with
# If you are running on a CPU-only machine, please use torch.load with
# map_location=torch.device('cpu') to map your storages to the CPU.
except RuntimeError:
with open(setup_dict_path, "rb") as handle:
attr_dict = UnpicklerCpu(handle).load()


model_state_dict = torch.load(model_path, map_location=map_location)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from scarches import __author__, __email__, __version__
except ImportError: # Deps not yet installed
__author__ = __email__ = ''
__version__ = '0.6.0'
__version__ = '0.6.1'

# otherwise readthedocs fails
# because somewhere in the dependency tree there is the sklearn deprecated package
Expand Down

0 comments on commit 51a0294

Please sign in to comment.