Skip to content

Commit 9429b90

Browse files
committed
return necessary function - update pyproject.toml for new pixi
1 parent 63c5f5a commit 9429b90

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

libensemble/ensemble.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,3 +375,11 @@ def save_output(self, basename: str, append_attrs: bool = True):
375375
)
376376
else:
377377
save_libE_output(self.H, self.persis_info, basename, self.nworkers, append_attrs=append_attrs)
378+
379+
def _get_option(self, specs, name):
380+
"""Gets a specs value, underlying spec is either a dict or a class"""
381+
attr = getattr(self, specs)
382+
if isinstance(attr, dict):
383+
return attr.get(name)
384+
else:
385+
return getattr(attr, name)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ include = ["libensemble*"]
4848
[tool.setuptools.dynamic]
4949
version = {attr = "libensemble.version.__version__"}
5050

51-
[tool.pixi.project]
51+
[tool.pixi.workspace]
5252
channels = ["conda-forge"]
5353
platforms = ["osx-arm64", "linux-64", "osx-64"]
5454

0 commit comments

Comments
 (0)