Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Adds a check on whether conda is installed when using isolati… #284

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/poli/core/util/isolation/instancing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import configparser
import importlib
import logging
import shutil
import subprocess
from pathlib import Path

Expand Down Expand Up @@ -308,16 +307,6 @@ def instance_function_as_isolated_process(
quiet: bool = False,
**kwargs_for_black_box,
) -> ExternalFunction:
# Check if the user has conda installed
if shutil.which("conda") is None:
raise RuntimeError(
"Conda is not installed. For poli's isolation mechanisms to work, "
"we need conda to be installed.\n"
"If you are not interested in using conda, you can install all the "
"relevant dependencies for black boxes using pip and optional arguments.\n"
"Check the documentation of the black box you are interested in for more information."
)

# Register the problem if it hasn't been registered.
register_isolated_function(name=name, quiet=quiet)

Expand Down
13 changes: 0 additions & 13 deletions src/poli/objective_repository/ehrlich/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

from __future__ import annotations

import warnings

import numpy as np

from poli.core.abstract_black_box import AbstractBlackBox
Expand Down Expand Up @@ -108,12 +106,6 @@ def __init__(
num_workers: int = None,
evaluation_budget: int = float("inf"),
):
warnings.warn(
"The EhrlichBlackBox class is deprecated and will be removed in a future version. "
" Please use EhrlichHoloBlackBox after installing with pip install poli[ehrlich].",
DeprecationWarning,
)

super().__init__(batch_size, parallelize, num_workers, evaluation_budget)
self.alphabet = alphabet
self.sequence_length = sequence_length
Expand Down Expand Up @@ -442,11 +434,6 @@ def create(
Closed-Form Test Functions for Biophysical Sequence Optimization Algorithms.
arXiv preprint arXiv:2407.00236. https://arxiv.org/abs/2407.00236
"""
warnings.warn(
"The EhrlichProblemFactory class is deprecated and will be removed in a future version. "
" Please use EhrlichHoloProblemFactory after installing with pip install poli[ehrlich].",
DeprecationWarning,
)
if seed is not None:
seed_python_numpy_and_torch(seed)

Expand Down