Skip to content

Commit af65de6

Browse files
committed
Merge branch 'develop' into refactor/310_plus_typehints
2 parents 1548455 + 88ecaa3 commit af65de6

12 files changed

Lines changed: 140 additions & 17 deletions

.github/workflows/basic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ jobs:
129129
runs-on: ubuntu-latest
130130
steps:
131131
- uses: actions/checkout@v4
132-
- uses: crate-ci/typos@v1.31.2
132+
- uses: crate-ci/typos@v1.33.1

.github/workflows/extra.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,4 @@ jobs:
180180
runs-on: ubuntu-latest
181181
steps:
182182
- uses: actions/checkout@v4
183-
- uses: crate-ci/typos@v1.31.2
183+
- uses: crate-ci/typos@v1.33.1

install/gen_deps_environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ dependencies:
1313
- DFO-LS
1414
- mpmath
1515
- ax-platform>=0.5.0
16+
- petsc
17+
- petsc4py

install/testing_requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
flake8==7.2.0
22
coverage>=7.5
3-
pytest==8.3.5
3+
pytest==8.4.0
44
pytest-cov==6.1.1
5-
pytest-timeout==2.3.1
5+
pytest-timeout==2.4.0
66
mock==5.2.0
77
python-dateutil==2.9.0.post0
88
anyio==4.9.0
9-
matplotlib==3.10.1
9+
matplotlib==3.10.3
1010
mpmath==1.3.0
1111
rich==14.0.0

libensemble/gen_funcs/persistent_aposmm.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
def cdist(XA, XB, metric="euclidean"):
2626
"""Compute the pairwise Euclidean distances"""
2727

28-
# Just so dont have to change the call
28+
# Just so we don't have to change the call
2929
if metric != "euclidean":
3030
raise ValueError("Only 'euclidean' metric is supported in this implementation.")
3131

@@ -120,6 +120,11 @@ def aposmm(H, persis_info, gen_specs, libE_info):
120120
`test_persistent_aposmm_with_grad <https://github.com/Libensemble/libensemble/blob/develop/libensemble/tests/regression_tests/test_persistent_aposmm_with_grad.py>`_
121121
for an example where past function values are given to libEnsemble/APOSMM.
122122
123+
.. seealso::
124+
125+
`test_aposmm_starting_point_finder <https://github.com/Libensemble/libensemble/blob/develop/libensemble/tests/unit_tests/test_aposmm_starting_point_finder.py>`_
126+
for an example the APOSMM r_k radius logic is adjusted to produce a certain number of localopt starting points.
127+
123128
"""
124129
"""
125130
Description of intermediate variables in aposmm:

libensemble/tests/functionality_tests/test_uniform_sampling_cancel.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,38 +88,38 @@ def create_H0(persis_info, gen_specs, sim_max):
8888
sim_max = 500
8989
exit_criteria = {"sim_max": sim_max, "wallclock_max": 300}
9090

91-
aspec1 = {
91+
a_spec_1 = {
9292
"alloc_f": gswf,
9393
"user": {
9494
"batch_mode": True,
9595
"num_active_gens": 1,
9696
},
9797
}
9898

99-
aspec2 = {
99+
a_spec_2 = {
100100
"alloc_f": gswf,
101101
"user": {
102102
"batch_mode": True,
103103
"num_active_gens": 2,
104104
},
105105
}
106106

107-
aspec3 = {
107+
a_spec_3 = {
108108
"alloc_f": fast_gswf,
109109
"user": {},
110110
}
111111

112-
aspec4 = {
112+
a_spec_4 = {
113113
"alloc_f": ensure_one_active_gen,
114114
"user": {},
115115
}
116116

117-
aspec5 = {
117+
a_spec_5 = {
118118
"alloc_f": give_pregenerated_sim_work,
119119
"user": {},
120120
}
121121

122-
allocs = {1: aspec1, 2: aspec2, 3: aspec3, 4: aspec4, 5: aspec5}
122+
allocs = {1: a_spec_1, 2: a_spec_2, 3: a_spec_3, 4: a_spec_4, 5: a_spec_5}
123123

124124
if is_manager:
125125
print("Testing cancellations with non-persistent gen functions")

libensemble/tests/regression_tests/test_persistent_aposmm_pounders.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# TESTSUITE_COMMS: local mpi tcp
1818
# TESTSUITE_NPROCS: 4
1919
# TESTSUITE_EXTRA: true
20-
# TESTSUITE_EXCLUDE: true
2120

2221
import multiprocessing
2322
import sys

libensemble/tests/regression_tests/test_persistent_aposmm_tao_blmvm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# TESTSUITE_COMMS: local mpi tcp
1616
# TESTSUITE_NPROCS: 4
1717
# TESTSUITE_EXTRA: true
18-
# TESTSUITE_EXCLUDE: true
1918

2019
import multiprocessing
2120
import sys

libensemble/tests/regression_tests/test_persistent_aposmm_tao_nm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# TESTSUITE_COMMS: local mpi tcp
1616
# TESTSUITE_NPROCS: 4
1717
# TESTSUITE_EXTRA: true
18-
# TESTSUITE_EXCLUDE: true
1918

2019
import multiprocessing
2120
import sys

libensemble/tests/regression_tests/test_with_app_persistent_aposmm_tao_nm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
# TESTSUITE_COMMS: local
2020
# TESTSUITE_NPROCS: 4
2121
# TESTSUITE_EXTRA: true
22-
# TESTSUITE_EXCLUDE: true
2322

2423
import multiprocessing
2524
import sys

0 commit comments

Comments
 (0)