Skip to content

Commit

Permalink
Merge branch 'develop' into docs/prev1_propose_refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jlnav committed Sep 18, 2023
2 parents 845049f + 0d71e93 commit 9bc51ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
- name: Install surmise
if: matrix.os != 'macos-latest' && steps.cache.outputs.cache-hit != 'true'
run: |
pip install --upgrade git+https://github.com/surmising/surmise.git@develop
pip install --upgrade git+https://github.com/bandframework/surmise.git@develop
- name: Build ytopt and dependencies
if: matrix.python-version != '3.11' && matrix.os != 'windows-latest' && matrix.os != 'macos-latest'
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/surmise.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Required: Surmise_

Note that currently the github fork https://github.com/mosesyhc/surmise should be used::

python -m pip install --upgrade git+https://github.com/mosesyhc/surmise.git
pip install --upgrade git+https://github.com/bandframework/surmise.git@develop

The :doc:`Borehole Calibration tutorial<../tutorials/calib_cancel_tutorial>` uses this generator as an example of the capability to cancel pending simulations.

Expand Down
7 changes: 4 additions & 3 deletions libensemble/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,12 @@ def _kill_workers(self) -> None:
def _save_every_k(self, fname: str, count: int, k: int) -> None:
"""Saves history every kth step"""
count = k * (count // k)
filename = fname.format(self.date_start, count)
date_start = self.date_start
if platform.system() == "Windows":
filename = filename.replace(":", "-") # ":" is invalid in windows filenames
date_start = date_start.replace(":", "-") # ":" is invalid in windows filenames
filename = fname.format(date_start, count)
if not os.path.isfile(filename) and count > 0:
for old_file in glob.glob(fname.format(self.date_start, "*")):
for old_file in glob.glob(fname.format(date_start, "*")):
os.remove(old_file)
np.save(filename, self.hist.H)

Expand Down

0 comments on commit 9bc51ce

Please sign in to comment.