Skip to content

Commit

Permalink
Backport PR #1431: Fix warning for old model version when using scArc…
Browse files Browse the repository at this point in the history
…hes (#1433)

Co-authored-by: Gregor Sturm <[email protected]>
  • Loading branch information
meeseeksmachine and grst authored Mar 14, 2022
1 parent b163621 commit 02e739d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scvi/model/base/_archesmixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def load_query_data(
adata_manager = model.get_anndata_manager(adata, required=True)

version_split = adata_manager.registry[_constants._SCVI_VERSION_KEY].split(".")
if version_split[1] < "8" and version_split[0] == "0":
if int(version_split[1]) < 8 and int(version_split[0]) == 0:
warnings.warn(
"Query integration should be performed using models trained with version >= 0.8"
)
Expand Down

0 comments on commit 02e739d

Please sign in to comment.