Skip to content

Commit

Permalink
Add pdbp import to optimagic/estimagic init files
Browse files Browse the repository at this point in the history
  • Loading branch information
timmens committed Nov 12, 2024
1 parent 8b2a284 commit 5001533
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/estimagic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import contextlib
import warnings
from dataclasses import dataclass

try:
import pdbp # noqa: F401
except ImportError:
contextlib.suppress(Exception)

from estimagic import utilities
from estimagic.bootstrap import BootstrapResult, bootstrap
from estimagic.estimate_ml import LikelihoodResult, estimate_ml
Expand Down
7 changes: 7 additions & 0 deletions src/optimagic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
from __future__ import annotations

import contextlib

try:
import pdbp # noqa: F401
except ImportError:
contextlib.suppress(Exception)

from optimagic import constraints, mark, utilities
from optimagic.algorithms import algos
from optimagic.benchmarking.benchmark_reports import (
Expand Down

0 comments on commit 5001533

Please sign in to comment.