Skip to content

Commit

Permalink
Merge pull request #44 from NSLS-II/doc-rel-notes-v0.4.0
Browse files Browse the repository at this point in the history
Release notes for v0.4.0
  • Loading branch information
mrakitin authored Aug 11, 2023
2 parents 2efadb8 + eebe0c4 commit 29ea036
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 25 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ name: Build Documentation
on:
push:
pull_request:
workflow_dispatch:
release:
types: [created]

jobs:
build_docs:
# pull requests are a duplicate of a branch push if they are from within
# the same repo. Skip these
# pull requests are a duplicate of a branch push if within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository

runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -34,7 +37,7 @@ jobs:
uses: supercharge/[email protected]

- name: Start Sirepo Docker container
uses: NSLS-II/start-sirepo-action@v1
uses: NSLS-II/start-sirepo-action@v2
with:
docker-binary: docker

Expand All @@ -54,13 +57,14 @@ jobs:
mamba-version: "*"
channels: conda-forge

- name: Install dependencies
- name: Install documentation-building requirements
run: |
# For reference: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html.
set -vxeo pipefail
conda env list
mamba install -c conda-forge shadow3 srwpy pandoc
# mamba install -c conda-forge shadow3 srwpy pandoc
mamba install -c conda-forge pandoc
pip install --upgrade pip wheel
pip install -v .
pip install -r requirements-dev.txt
Expand All @@ -76,7 +80,8 @@ jobs:
path: docs/build/html/

- name: Deploy documentation to nsls-ii.github.io
if: github.repository_owner == 'NSLS-II' && github.ref_name == 'main'
# if: github.repository_owner == 'NSLS-II' && github.ref_name == 'main'
if: github.event_name == 'release'
# We pin to the SHA, not the tag, for security reasons.
# https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
uses: peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501 # v3.7.3
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: pre-commit

on:
pull_request:
push:
pull_request:
workflow_dispatch:

jobs:
pre-commit:
# pull requests are a duplicate of a branch push if within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ name: Unit Tests
on:
push:
pull_request:
workflow_dispatch:
# schedule:
# - cron: '00 4 * * *' # daily at 4AM

jobs:
run_tests:
# pull requests are a duplicate of a branch push if within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository

runs-on: ${{ matrix.host-os }}
strategy:
matrix:
Expand All @@ -32,7 +36,7 @@ jobs:
uses: supercharge/[email protected]

- name: Start Sirepo Docker container
uses: NSLS-II/start-sirepo-action@v1
uses: NSLS-II/start-sirepo-action@v2
with:
docker-binary: docker

Expand All @@ -52,13 +56,13 @@ jobs:
mamba-version: "*"
channels: conda-forge

- name: Install dependencies
- name: Install the package and its dependencies
run: |
# For reference: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html.
set -vxeo pipefail
conda env list
mamba install -c conda-forge shadow3 srwpy
# mamba install -c conda-forge shadow3 srwpy
pip install --upgrade pip wheel
pip install -v .
pip install -r requirements-dev.txt
Expand Down
41 changes: 37 additions & 4 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,40 @@
============
=========================
Installation instructions
=========================

Installation
============
------------

The package works with Python 3.8+ and can be installed from both PyPI and conda-forge.

To install the package using the ``pip`` package manager, run the following command:

.. code:: bash
$ python3 -m pip install bloptools
To install the package using the ``conda`` package manager, run the following command:

.. code:: bash
$ conda install -c conda-forge bloptools
If you'd like to use the Sirepo backend and ``sirepo-bluesky`` ophyd objects, please
follow the `Sirepo/Sirepo-Bluesky installation & configuration instructions
<https://nsls-ii.github.io/sirepo-bluesky/installation.html>`_.


Run tests
---------

.. code:: bash
$ pytest -vv -s -x --pdb
Build documentation
-------------------

At the command line::
.. code:: bash
$ pip install bloptools
$ make -C docs/ html
18 changes: 15 additions & 3 deletions docs/source/release-history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,24 @@
Release History
===============

v0.4.0 (2023-08-11)
-------------------

- Easier-to-use syntax when building the agent.
- Modular and stateful agent design for better usability.
- Added the ability to save/load both data and hyperparameters.
- Added passive degrees of freedom.
- Added a number of `test functions / artificial landscapes for optimization
<https://en.wikipedia.org/wiki/Test_functions_for_optimization>`_.
- Updated the Sphinx documentation theme to `furo <https://github.com/pradyunsg/furo>`_.


v0.3.0 (2023-06-17)
-------------------

- Implemented multi-task optimization
- Simplified the syntax on initializing the agent
- Resolved issues discovered at ISS
- Implemented multi-task optimization.
- Simplified the syntax on initializing the agent.
- Resolved issues discovered at NSLS-II ISS.


v0.2.0 (2023-04-25)
Expand Down
8 changes: 0 additions & 8 deletions docs/source/tutorials/latent-toroid-dimensions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,6 @@
"agent.plot_feasibility()\n",
"agent.plot_acquisition(strategy=[\"ei\", \"pi\", \"ucb\"])"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "efd5ab4f",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 29ea036

Please sign in to comment.