-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1385 from Libensemble/release/v_1.4.1
Release/v 1.4.1
- Loading branch information
Showing
8 changed files
with
86 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,4 +163,4 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: crate-ci/[email protected].3 | ||
- uses: crate-ci/[email protected].4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -254,4 +254,4 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: crate-ci/[email protected].3 | ||
- uses: crate-ci/[email protected].4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
flake8==7.1.0 | ||
coverage==7.3.1 | ||
pytest==8.3.1 | ||
pytest==8.3.2 | ||
pytest-cov==5.0.0 | ||
pytest-timeout==2.3.1 | ||
mock==5.1.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
""" | ||
Runs libEnsemble with Latin hypercube sampling and check no warning. | ||
Execute using MPI (e.g. 3 workers): | ||
mpiexec -np 4 python test_mpi_warning.py | ||
The number of concurrent evaluations of the objective function will be 4-1=3. | ||
""" | ||
|
||
# Do not change these lines - they are parsed by run-tests.sh | ||
# TESTSUITE_COMMS: mpi | ||
# TESTSUITE_NPROCS: 4 | ||
|
||
import numpy as np | ||
import os | ||
import time | ||
|
||
from libensemble import Ensemble | ||
from libensemble.gen_funcs.sampling import latin_hypercube_sample as gen_f | ||
|
||
# Import libEnsemble items for this test | ||
from libensemble.sim_funcs.simple_sim import norm_eval as sim_f | ||
from libensemble.specs import ExitCriteria, GenSpecs, SimSpecs | ||
|
||
from libensemble import logger | ||
|
||
# Main block is necessary only when using local comms with spawn start method (default on macOS and Windows). | ||
if __name__ == "__main__": | ||
log_file = "ensemble_check_warning.log" | ||
logger.set_level("MANAGER_WARNING") | ||
logger.set_filename(log_file) | ||
|
||
sampling = Ensemble() | ||
sampling.libE_specs.save_every_k_sims = 100 | ||
sampling.sim_specs = SimSpecs(sim_f=sim_f) | ||
sampling.gen_specs = GenSpecs( | ||
gen_f=gen_f, | ||
outputs=[("x", float, 2)], | ||
user={ | ||
"gen_batch_size": 100, | ||
"lb": np.array([-3, -2]), | ||
"ub": np.array([3, 2]), | ||
}, | ||
) | ||
|
||
sampling.exit_criteria = ExitCriteria(sim_max=100) | ||
sampling.add_random_streams() | ||
|
||
if sampling.is_manager: | ||
if os.path.exists(log_file): | ||
os.remove(log_file) | ||
|
||
sampling.run() | ||
if sampling.is_manager: | ||
print("len:", len(sampling.H)) | ||
time.sleep(0.2) | ||
assert os.path.exists(log_file) | ||
assert os.stat(log_file).st_size == 0, "Unexpected warning" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "1.4.0" | ||
__version__ = "1.4.1" |