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

Add __version__ attribute to botorch package #45

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 8 additions & 0 deletions botorch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
#!/usr/bin/env python3

import os
import re

from . import acquisition, exceptions, models, optim, posteriors, test_functions
from .cross_validation import batch_cross_validation
from .fit import fit_gpytorch_model
from .gen import gen_candidates_scipy, gen_candidates_torch, get_best_candidates
from .utils import manual_seed


# get version string from setup.py
with open(os.path.join(os.path.dirname(__file__), os.pardir, "setup.py"), "r") as f:
__version__ = re.search(r"version=['\"]([^'\"]*)['\"]", f.read(), re.M).group(1)


__all__ = [
"acquisition",
"batch_cross_validation",
Expand Down