Skip to content

Commit 7c18391

Browse files
Merge pull request #182 from daisybio/development
New version: 1.2.7
2 parents 89f399b + 2ca80af commit 7c18391

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
# the built documents.
5757
#
5858
# The short X.Y version.
59-
version = "1.2.6"
59+
version = "1.2.7"
6060
# The full version, including alpha/beta/rc tags.
61-
release = "1.2.6"
61+
release = "1.2.7"
6262

6363
# The language for content autogenerated by Sphinx. Refer to documentation
6464
# for a list of supported languages.

drevalpy/experiment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,12 +802,12 @@ def randomize_train_predict(
802802
return
803803

804804
cl_features_rand: FeatureDataset | None = None
805-
if cl_features is not None:
805+
if cl_features is not None and view in cl_features.view_names:
806806
cl_features_rand = cl_features.copy()
807807
cl_features_rand.randomize_features(view, randomization_type=randomization_type) # type: ignore[union-attr]
808808

809809
drug_features_rand: FeatureDataset | None = None
810-
if drug_features is not None:
810+
if drug_features is not None and view in drug_features.view_names:
811811
drug_features_rand = drug_features.copy()
812812
drug_features_rand.randomize_features(view, randomization_type=randomization_type) # type: ignore[union-attr]
813813

drevalpy/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def main(args) -> None:
305305
baselines = []
306306

307307
# NaiveMeanEffectsPredictor is always run as it is needed for evaluation
308-
if "NaiveMeanEffectsPredictor" not in args.baselines:
308+
if "NaiveMeanEffectsPredictor" not in baselines:
309309
baselines.append(MODEL_FACTORY["NaiveMeanEffectsPredictor"])
310310

311311
# TODO Allow for custom randomization tests maybe via config file

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "drevalpy"
3-
version = "1.2.6"
3+
version = "1.2.7"
44
description = "Drug response evaluation of cancer cell line drug response models in a fair setting"
55
authors = ["DrEvalPy development team"]
66
license = "GPL-3.0"

0 commit comments

Comments
 (0)