Skip to content
Draft
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
9 changes: 8 additions & 1 deletion libensemble/executors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
from libensemble.executors.executor import Executor
from libensemble.executors.mpi_executor import MPIExecutor

__all__ = ["Executor", "MPIExecutor"]
# FluxExecutor is optional - requires flux-core Python bindings
try:
from libensemble.executors.flux_executor import FluxExecutor # noqa: F401

__all__ = ["Executor", "MPIExecutor", "FluxExecutor"]
except ImportError:
# flux-core not available - FluxExecutor won't be importable
__all__ = ["Executor", "MPIExecutor"]
Loading