Skip to content

Commit 70baba5

Browse files
authored
Merge branch 'main' into nevergrad-OneplusOne
2 parents 353eda3 + ae98a40 commit 70baba5

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

docs/rtd_environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@ dependencies:
4141
- types-jinja2 # dev, tests
4242
- sqlalchemy-stubs # dev, tests
4343
- sphinxcontrib-mermaid # dev, tests, docs
44+
- intersphinx-registry # docs
4445
- fides==0.7.4 # dev, tests

docs/source/conf.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
import os
2020
from importlib.metadata import version
2121

22+
from intersphinx_registry import get_intersphinx_mapping
23+
2224
year = dt.datetime.now().year
2325

2426
author = "Janos Gabler"
@@ -88,11 +90,9 @@
8890
"gh": ("https://github.com/optimagic-dev/optimagic/pulls/%s", "#"),
8991
}
9092

91-
intersphinx_mapping = {
92-
"numpy": ("https://docs.scipy.org/doc/numpy", None),
93-
"pandas": ("https://pandas.pydata.org/pandas-docs/stable", None),
94-
"python": ("https://docs.python.org/3.12", None),
95-
}
93+
intersphinx_mapping = get_intersphinx_mapping(
94+
packages={"numpy", "scipy", "pandas", "python"}
95+
)
9696

9797
linkcheck_ignore = [
9898
r"https://tinyurl\.com/*.",

environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ dependencies:
3131
- sphinx-design # docs
3232
- sphinx-panels # docs
3333
- sphinxcontrib-bibtex # docs
34+
- intersphinx-registry # docs
3435
- seaborn # dev, tests
3536
- mypy=1.14.1 # dev, tests
3637
- pyyaml # dev, tests

src/optimagic/parameters/check_constraints.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def check_fixes_and_bounds(constr_info, transformations, parnames):
241241
if is_invalid.any():
242242
info = pd.DataFrame(
243243
{
244-
"names": parnames[is_invalid],
244+
"names": np.array(parnames)[is_invalid],
245245
"lower_bounds": constr_info["lower_bounds"][is_invalid],
246246
"upper_bounds": constr_info["upper_bounds"][is_invalid],
247247
}

0 commit comments

Comments
 (0)