Skip to content

Commit

Permalink
Update _core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgayoso authored Nov 3, 2024
1 parent 0971731 commit fd61be8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scib_metrics/benchmark/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ def __init__(
self._n_jobs = n_jobs
self._progress_bar = progress_bar

if self._bio_conservation_metrics is None and self._batch_correction_metrics is None:
raise ValueError("Either batch or bio metrics must be defined.")


self._metric_collection_dict = {}
if self._bio_conservation_metrics is not None:
self._metric_collection_dict.update({"Bio conservation": self._bio_conservation_metrics})
Expand Down

0 comments on commit fd61be8

Please sign in to comment.