Commit Graph

3421 Commits

Author SHA1 Message Date
Josh Horton
7bc31e1df5 Fix 1-4 interpolation for core-dummy interactions (#1856)
* Change the 1-4 interpolation to be on by default.
* Add htf tests including tests for 1-4 interpolation.

---------

Co-authored-by: Hannah Baumann <43765638+hannahbaumann@users.noreply.github.com>
Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>
2026-04-28 15:05:48 +01:00
Alyssa Travitz
82558ea7cd update changelog for perses deprecation planned in v1.12 (#1966) 2026-04-27 12:29:20 -07:00
Irfan Alibay
403ecbd794 Add CLI septop gather tests for current SepTop AnalysisUnit behaviour (#1960)
* Add CLI septop gather tests for current SepTop AnalysisUnit behaviour

* Add a bit of docs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>
2026-04-27 11:19:57 -07:00
Alyssa Travitz
8d229cffe3 membrane CLI support (#1896)
* initial cli ideas

* clean up names

* add test

* update docstrings and fix imports

* fix tests

* use gufe gzip branch

* clean up fixtures

* update fixtures

* adding membrane component to tests

* add membrane barostat check

* make output more consistent and add membrane args test

* error messages

* revert some out of scope typing things

* tidying fixtures

* update protein arg parsing

* clearer var naming

* add protein validate

* add validation

* fix handling for membrane solvents

* update docstring

* point to membrane tutorial branch

* linking

* remove redundant validation

* remove unneeded type hints

* Update src/openfecli/commands/plan_rbfe_network.py

Co-authored-by: Mike Henry <11765982+mikemhenry@users.noreply.github.com>

* Update src/openfecli/parameters/protein.py

Co-authored-by: Mike Henry <11765982+mikemhenry@users.noreply.github.com>

* clean up suggestions

* use click BadParameter

* testing arg errors

* update examplenotebook branch

* add news item

* use BadParameter

* fix test comments

---------

Co-authored-by: Mike Henry <11765982+mikemhenry@users.noreply.github.com>
2026-04-27 09:05:43 -07:00
Irfan Alibay
dd7b9febbc Switch multistate data to use a specific version's DOI (#1959) 2026-04-27 09:01:24 -07:00
Josh Horton
909d29ad25 Plain MD restart support (#1884)
* split md protocol to setup and simulate, add restart support

* allow for resume in any stage

* add a single run dynamics function

* update restart to only look for checkpoints, split out remaining step logic, update tests

---------

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>
2026-04-27 16:04:28 +01:00
Irfan Alibay
be6cd88414 Add resume support to SepTop (#1949)
Add resume support to SepTopProtocol.
2026-04-24 14:55:18 +01:00
Hannah Baumann
fc6689eaf1 User guide updates membrane (#1933)
* Membrane support prototype start

* Point to corresponding branch in gufe

* Make plain md protocol membrane ready

* Dry run for membrane system for debugging

* Add box vectors to modeller

* Adapt htf to allow for membrane barostat

* Fix test

* Add test files membrane

* Change test to cpu

* Prints for debugging

* Some more debugginh stuff, remove later

* Small fix

* Temporarily use branches for openmmtools and openmmforcefield

* Small fixes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* support membrane in gather

* First pass membrane support for SepTop protocol

* Change validation solvent

* Move changes in solvent validation to validate_solvent

* Some small fixes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add membrane test septop

* Change box vector units for handling membrane barostat

* Test box vectors SepTop more

* First pass at ABFE membrane prototype

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Remove some prints

* Revert box changes

* Some fixes in SepTop to fix tests

* Apply suggestion from @hannahbaumann

* Add tests for system creation

* FIx test

* Add ABFE membrane tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* More tests membrane septop and more dry outputs in septop

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add validation for box vector in ProteinMembraneComponent

* Adapt gather for membranes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* small changes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Modify box vectors plain md

* Address review comments

* Remove unnecessary prints

* Subclass membrane test

* Small fix

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove unnecessary import

* Remove prints

* Small fix

* Small fix

* Larger change to checks for BaseSolventComponent, SolvatedPDBComponent, and adding barostat settings

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Some more changes

* Small fix

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* ABFE enforce timestep complex solvent the same

* Update test files

* Update environment.yaml with new openmmtools and openmmforcefield versions

* Remove unnecessary checks for box_vectors which are handled in gufe

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update openfe/protocols/openmm_afe/equil_binding_afe_method.py

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>

* Attempt at rewriting validate_solvent

* Move get barostat to self

* Simplify mapping in test

* Add validator for surface_tension and membrane barostat

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add membrane barostat to adaptive settings rfe protocol

* Add validation/warning for barostat component mismatch

* Fix tests (except CLI)

* More merge fixes

* Remove unnecessary imports

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add test files

* Update tests

* Add lipid ff in adaptive settings

* remove commented out lines

* Update test abfe

* Update ABFE results with new settings

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix solvent validation

* change env to gufe main

* Apply suggestion from @hannahbaumann

* Remove files from before src layout change

* Update tests

* Small fix

* mark slow tests

* Update env file

* Small fix

* Update src/openfe/protocols/openmm_afe/equil_binding_afe_method.py

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>

* Update src/openfe/protocols/openmm_afe/equil_binding_afe_method.py

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>

* Update src/openfe/protocols/openmm_rfe/_rfe_utils/relative.py

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>

* Update src/openfe/protocols/openmm_utils/system_validation.py

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>

* Address review comments 1

* update doc string

* Update src/openfe/tests/protocols/openmm_abfe/test_abfe_protocol.py

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>

* Update src/openfe/tests/protocols/openmm_abfe/test_abfe_protocol.py

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>

* Update src/openfe/tests/protocols/openmm_abfe/test_abfe_protocol.py

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>

* Update src/openfe/tests/protocols/openmm_abfe/test_abfe_protocol.py

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>

* Address review comments 2

* Address review comments 3

* fix mypy

* Fix system creation tests

* Roundtrip box vectors to remove vec3 issues

* Roundtrip box vectors to remove vec3 issues

* Remove unnecessary imports

* Apply suggestion from @hannahbaumann

* Test mypy failure

* Test mypy failure 2

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* some fixes

* small fixes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update test files

* Update SepTop results settings

* add more tests for adaptive settings and others

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add news entry

* Fix for box vectors hybtop

* Make test slow again

* Make mypy happy

* try to make mypy happy again

* Adapt gather RFE membrane component types

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use reference platform for the membrane energy test

* Add ChemicalSystem Component validation to Protocols

* Add test for chemicalsystem validation

* Apply suggestions from code review

Co-authored-by: Josh Horton <joshua.horton@openforcefield.org>

* Update with slight variation to @jthorton 's suggestion

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* point gufe back at main

* Drop lipid17 from adaptive settings

* just a tiny nit change

* fix typo

* Add extra class to openfecli check

* Add total particle checks to abfe protocol tests

* remove lipid17 check from adaptive settings

* remove lipid17 check from adaptive settings

* Add some checks for number of particles & residues

* Fix up some tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Minimized protein

* Update protein

* Revert back to old protein

* Apply suggestion from @hannahbaumann

* Remove box roundtrip and fix solvent from get_components

* Merge conflicts

* Update src/openfe/tests/protocols/openmm_abfe/test_abfe_protocol.py

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix merge conflict

* Forgot another one

* Move box roundtrip to _pre_equilibrate

* First go at modifying the user guide for membranes and ABFE and SepTop

* some small fixes

* Add adaptive_settings to user guide

* Add example code loading protein membrane

* Add box vector explanation

* Some smaller changes

* Make adaptive settings subheading

* Some more changes

* Add warning adaptive settings

* Update docs/guide/setup/defining_protocols.rst

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>

* Addressing review comments

* some more updates

* Test out subheadings

* Restructure user guide

* merge conflicts

* Small fix

* some small updates

* addressing review comments

* Small fix

* address review comments

* small fix

* Add news entry

* Update docs/guide/setup/chemical_systems_and_thermodynamic_cycles.rst

Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>

* Update docs/guide/setup/defining_protocols.rst

Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>

* Update docs/guide/setup/chemical_systems_and_thermodynamic_cycles.rst

Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>

* Addres review comment

* Update docs/guide/setup/chemical_systems_and_thermodynamic_cycles.rst

Co-authored-by: Josh Horton <Josh.Horton@newcastle.ac.uk>

* Update docs/guide/setup/chemical_systems_and_thermodynamic_cycles.rst

Co-authored-by: Josh Horton <Josh.Horton@newcastle.ac.uk>

* Address review comment

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>
Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>
Co-authored-by: Josh Horton <Josh.Horton@newcastle.ac.uk>
Co-authored-by: Josh Horton <joshua.horton@openforcefield.org>
2026-04-24 14:03:06 +02:00
Alyssa Travitz
90846148c9 update systems and components docs for completeness (#1954)
* update systems and components docs for completeness

* add SolvatedPDBComponent

---------

Co-authored-by: Hannah Baumann <43765638+hannahbaumann@users.noreply.github.com>
2026-04-24 13:17:31 +02:00
Irfan Alibay
e6dd981b11 Update resume data zenodo hash (#1957) 2026-04-24 11:33:08 +01:00
Irfan Alibay
c81d27cf0d Add Analysis unit for Septop (#1937)
* Add an Analysis unit to SepTopProtocol.
* Update PDB writing via MDTraj in AFE and SepTop Protocols to account for box dimensions with mdtraj_from_openmm utility.
* Split up some SepTop tests into different files.
* Updated the CLI gathering to account for post openfe v1.11 Analysis units

---------

Co-authored-by: Hannah Baumann <43765638+hannahbaumann@users.noreply.github.com>
2026-04-24 10:00:06 +01:00
Irfan Alibay
7959cc6e74 Only warn if forces mismatch in hash check (#1914)
* Only warn if forces mismatch in hash check
2026-04-22 18:21:59 +01:00
Ashley Mitchell
8c088e7ada Rename Ashley Mitchell in CITATION.cff (#1951) 2026-04-21 06:58:32 +01:00
Irfan Alibay
b501e2ed3c Add validate method for SepTop (#1946)
Add a validate method for SepTopProtocol.
2026-04-17 15:45:33 +01:00
Irfan Alibay
528a59764f Septop move files (#1932)
* Reorganize SepTop classes into different modules
2026-04-16 21:06:27 +01:00
Hannah Baumann
0af4cab4ed Add membrane support to OpenFE Protocols (#1561)
* Add membrane support to Hybrid Topology, AHFE, ABFE, SepTop and PlainMD Protocols.
* Update relevant system creation tooling

---------

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>
Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>
Co-authored-by: Josh Horton <Josh.Horton@newcastle.ac.uk>
Co-authored-by: Josh Horton <joshua.horton@openforcefield.org>
2026-04-16 19:06:11 +01:00
Irfan Alibay
0978b4dd07 Mark espaloma test as xfail for issue #1940 (#1941) 2026-04-16 17:59:57 +01:00
Irfan Alibay
c60db0685a SepTop: slightly refactor _execute calls (#1930)
* Move execute back to base unit class and move deserialization calls from run to execute
2026-04-09 11:21:39 +01:00
Irfan Alibay
fab07ca639 fix prepare message for RFE (#1915)
* fix prepare log message for RFE

* fix prepare log message for AFE
2026-04-08 21:04:15 +01:00
Irfan Alibay
7654820009 Add ahfe resume test to be integration (#1931) 2026-04-08 20:22:40 +01:00
Alyssa Travitz
41f1684706 bump openmm to v8.4 (#1909) 2026-04-07 21:26:54 +00:00
pre-commit-ci[bot]
5544db53f9 [pre-commit.ci] pre-commit autoupdate (#1916)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/tox-dev/pyproject-fmt: v2.11.1 → v2.21.0](https://github.com/tox-dev/pyproject-fmt/compare/v2.11.1...v2.21.0)
- [github.com/astral-sh/ruff-pre-commit: v0.14.10 → v0.15.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.10...v0.15.9)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-04-07 09:09:50 -07:00
Mike Henry
dd2ee4bbd2 Simplify how to install correct cuda-version (#1910)
* Simplify how to install correct cuda-version

* fix rst syntax
2026-04-01 10:27:26 -07:00
Alyssa Travitz
c2297d5a44 update links in PR templates (#1907) 2026-03-31 07:42:38 -07:00
Alyssa Travitz
09d629a199 ruff format code in docstrings (#1908) 2026-03-31 07:27:22 -07:00
Alyssa Travitz
adb19162b5 Release v1.10.0 (#1902)
* Updated CHANGELOG for 1.10.10

* clean up links

* consistent formatting

* add link to new docs
v1.10.0
2026-03-30 16:07:38 -07:00
Irfan Alibay
8fcd47b4df Update the userguide CLI docs to mention resuming (#1878)
* Modify quickrun to allow resuming

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* store protocol dag using transformation key

* use assert_click_success

* Update the CLI quickrun help info

* Add userguide documentation on how to use quickrun

* this reference instead?

* fix things a little bit

* update the title

* Update environment.yml

* Update docs/guide/cli/quickrun.rst

Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>

* update for new name for now

* Update docs/guide/cli/quickrun.rst

Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>

* update for new changes

* Add to the execution guide instead

* some fixes

* Add `>` where it's a CLI command

* formatting fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alyssa Travitz <alyssa.travitz@omsf.io>
Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>
2026-03-30 14:47:02 -07:00
Irfan Alibay
2f2aa9e26d Fix typo in quickrun execution error message. (#1906) 2026-03-30 07:53:07 -07:00
Alyssa Travitz
ec0a1131ce CI: add feedstock build test (#1905)
* split off cron test into its own test

* add feedstock build test for release prep

* add yq

* temp run on PR to main for testing

* update syntax for using with yq github action

* fix straggling '

* fix the path

* fix gufe version

* update dispatch triggers
2026-03-30 07:33:00 -07:00
Alyssa Travitz
456e9c40c1 unify CI runner naming conventions (#1904) 2026-03-27 13:05:05 -07:00
Alyssa Travitz
a1e2273360 update feedstock CI test for v1 (#1900)
* meta.yaml -> recipe.yaml

* leave a note
2026-03-26 22:59:46 +00:00
Irfan Alibay
a15edcc441 Modify quickrun to allow resuming (#1848)
* Modify quickrun to allow resuming

* fix the gather tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add check for protocol_dag.json

* add basic test

* clearer language, hopefully

* store protocol dag using transformation key

* another tmpdir -> tmp_path fix

* add error handling check

* fix naming in test

* add news item

* use assert_click_success

* add test for interrupted job

* remove checkpoint when a job has completed successfully

* add handling for checkpoint error handling without --resume

* clean up logic

* check for warning

* add docs

* make a cache dir

* use clickexception

* update error message

* update kwarg

* keep everything in the quickrun cache

* clearer message

* it's ProtocolDAG not protocolDAG

* bump CI

* bump CI

* include output json in caching hash (#1890)

* first pass at adding caching with output json

* add (hopefully) helpful execution information

* add resume command

* fix testing path

* check that output file isn't created early

* clean up tests

* line break

* fix some comments to say cache instead of checkpoint

* fix typo in news item

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alyssa Travitz <alyssa.travitz@omsf.io>
Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>
2026-03-26 16:37:25 +00:00
Alyssa Travitz
421c9a0aa7 min pin interchange (#1901) 2026-03-26 14:09:26 +00:00
Alyssa Travitz
ad1033fe32 quickrun testing: check default filename creation (#1898)
* quickrun testing: check default filename creation

* check that output file isn't created early
2026-03-25 21:33:13 +00:00
Alyssa Travitz
cd17b547b6 tests: migrate from using deprecated tmpdir to preferred tmp_path (#1873)
* tmpdir -> tmp_path

* cleaning up conventions in md protocol test

* more tmpdir -> tmp_path

* migrate abfe tmpdir to tmp_path

* update tmp factory for lomap test data

* tmpdir -> tmp_path in septop tests

* tidy things up for consistency

* filepath formatting
2026-03-24 07:10:21 -07:00
Irfan Alibay
461bf6017e Fixing various typos (#1882)
* Playing around with codespell

* revert some things

---------

Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>
2026-03-19 18:11:03 -07:00
Alyssa Travitz
c5a27ae226 update abfe test data (#1862)
* update abfe test data

* fixing regression test data

* add tests for prior behavior

* Minor fix to support ABFE gathering with openfe v1.9+ (#1876)

* Minor fix to try to unblock v1.10

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add comment

* More exposition

* update expected results

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alyssa Travitz <alyssa.travitz@omsf.io>

* add news item

---------

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-03-19 21:41:10 +00:00
Irfan Alibay
81da72f393 Don't use the CUDA platform by default in tests (#1881) 2026-03-19 13:52:14 -07:00
Irfan Alibay
ee5a558fbc Add resuming support in AFE Protocols (#1808)
* Add resuming support to multistate AFE Protocols

---------

Co-authored-by: Josh Horton <Josh.Horton@newcastle.ac.uk>
2026-03-17 12:41:34 +00:00
Mike Henry
d69baa614b Use GitHub API to fetch latest release/version (#1870)
* Use GitHub API to fetch latest release/version

* Make it easier to copy and paste into other repos

* add some auth

* used auth version everywhere
2026-03-10 14:52:07 -07:00
Irfan Alibay
031e13ccd1 Add resume support to HybridTop simulation unit (#1774)
* Add resume support for HybridTop multistate simulations

---------

Co-authored-by: Josh Horton <Josh.Horton@newcastle.ac.uk>
2026-03-09 16:12:35 +00:00
Alyssa Travitz
6c0ea0fdef small typing fix to make mypy happy (#1865) 2026-03-06 11:49:39 -08:00
Alyssa Travitz
d0cc4c7938 pin interchange (#1860) 2026-03-02 10:42:14 -07:00
Mike Henry
a64bd4427e Update openfe analysis pin (#1859)
* bump min pin of openfe_analysis to fix https://github.com/OpenFreeEnergy/openfe/issues/1834

* add note in changelog about RMSD analysis fixed
2026-02-25 11:27:02 -08:00
Alyssa Travitz
591c9b70fc deprecate perses functionality (#1857)
* add tests that should fail

* add deprecation warnings

* news item

* raises-> warns fix

* Update news/deprecate_perses.rst

Co-authored-by: Mike Henry <11765982+mikemhenry@users.noreply.github.com>

* add issues link

---------

Co-authored-by: Mike Henry <11765982+mikemhenry@users.noreply.github.com>
2026-02-25 18:40:34 +00:00
Alyssa Travitz
f6cb213c89 add xfail to ahfe cpu test (#1851) 2026-02-17 17:25:22 -08:00
Alyssa Travitz
90764128f6 Updated CHANGELOG for 1.9.1 (#1850) v1.9.1 2026-02-16 08:29:38 -08:00
Alyssa Travitz
8ed873a8b6 fix logging.config import in cli.py (#1849) 2026-02-16 08:18:45 -08:00
Irfan Alibay
53d3dad90f Safely close reporter and clear GPU contexts to avoid UnboundLocalErrors (#1846)
* Safely close reporter and clear GPU contexts to avoid UnboundLocalErrors

Added try/except block to safely close things in case there's an unbound variable.

* small fix

small fix

* Also improve deletion for the hybridtop protocol

Added error handling for reporter closure and context clearing.

* Add news item

* Update news/issue-1845.rst

Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>

---------

Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>
2026-02-16 08:14:16 -08:00
Mike Henry
89d1948894 fix api break test (#1844) 2026-02-12 15:58:01 -08:00