Skip to content

Commit fa951d7

Browse files
committed
libE_specs *may* always have a workflow_dir_path, as we're getting the attribute from the object. try the dynamic versioning again...
1 parent 21f6175 commit fa951d7

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

libensemble/ensemble.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -578,14 +578,11 @@ def save_output(self, basename: str, append_attrs: bool = True):
578578
Format: ``<basename>_results_History_length=<length>_evals=<Completed evals>_ranks=<nworkers>``
579579
"""
580580
if self.is_manager:
581-
if self._get_option("libE_specs", "workflow_dir_path"):
582-
save_libE_output(
583-
self.H,
584-
self.persis_info,
585-
basename,
586-
self.nworkers,
587-
dest_path=self.libE_specs.workflow_dir_path,
588-
append_attrs=append_attrs,
589-
)
590-
else:
591-
save_libE_output(self.H, self.persis_info, basename, self.nworkers, append_attrs=append_attrs)
581+
save_libE_output(
582+
self.H,
583+
self.persis_info,
584+
basename,
585+
self.nworkers,
586+
dest_path=self.libE_specs.workflow_dir_path,
587+
append_attrs=append_attrs,
588+
)

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ classifiers = [
3030
"Topic :: Scientific/Engineering",
3131
"Topic :: Software Development :: Libraries :: Python Modules",
3232
]
33-
version = "1.5.0"
33+
dynamic = ["version"]
3434

3535
[project.urls]
3636
Documentation = "https://libensemble.readthedocs.io/en/main/"
@@ -45,6 +45,9 @@ requires = ["setuptools", "wheel", "pip>=24.3.1,<26", "setuptools>=75.1.0,<79",
4545
where = ["."]
4646
include = ["libensemble*"]
4747

48+
[tool.setuptools.dynamic]
49+
version = {attr = "libensemble.version.__version__"}
50+
4851
[tool.pixi.project]
4952
channels = ["conda-forge"]
5053
platforms = ["osx-arm64", "linux-64", "osx-64"]

0 commit comments

Comments
 (0)