diff --git a/.github/workflows/check-api-for-breaking-changes.yml b/.github/workflows/check-api-for-breaking-changes.yml index fa0e2ad8..3cfe8dd6 100644 --- a/.github/workflows/check-api-for-breaking-changes.yml +++ b/.github/workflows/check-api-for-breaking-changes.yml @@ -5,6 +5,6 @@ on: branches: [main] jobs: check-api-for-breaking-changes: - uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-check-api-for-breaking-changes.yml@v1.4.1 + uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-check-api-for-breaking-changes.yml@v1.5.0 with: package-name: tm_devices diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 90b016b9..19a17da6 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -9,7 +9,7 @@ on: - cron: 17 16 * * 4 jobs: analyze: - uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-codeql-analysis.yml@v1.4.1 + uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-codeql-analysis.yml@v1.5.0 with: languages-array: '["python", "javascript"]' codeql-queries: security-extended,security-and-quality diff --git a/.github/workflows/enforce-community-standards.yml b/.github/workflows/enforce-community-standards.yml index 3bd1b73a..c720f76a 100644 --- a/.github/workflows/enforce-community-standards.yml +++ b/.github/workflows/enforce-community-standards.yml @@ -7,4 +7,4 @@ on: branches: [main] jobs: enforce-community-standards: - uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-enforce-community-standards.yml@v1.4.1 + uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-enforce-community-standards.yml@v1.5.0 diff --git a/.github/workflows/package-build.yml b/.github/workflows/package-build.yml index b2e69758..370e4ba0 100644 --- a/.github/workflows/package-build.yml +++ b/.github/workflows/package-build.yml @@ -12,7 +12,7 @@ concurrency: cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: package-build: - uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-package-build.yml@v1.4.1 + uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-package-build.yml@v1.5.0 with: package-name: tm_devices python-versions-array: '["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]' # when updating this, make sure to update all workflows that use this strategy diff --git a/.github/workflows/package-release.yml b/.github/workflows/package-release.yml index 1cd62ec6..253bca76 100644 --- a/.github/workflows/package-release.yml +++ b/.github/workflows/package-release.yml @@ -16,7 +16,7 @@ concurrency: group: pypi jobs: package-release: - uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-package-release.yml@v1.4.1 + uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-package-release.yml@v1.5.0 with: package-name: tm_devices repo-name: tektronix/tm_devices diff --git a/.github/workflows/package-testpypi.yml b/.github/workflows/package-testpypi.yml index fd10175c..3a1cd048 100644 --- a/.github/workflows/package-testpypi.yml +++ b/.github/workflows/package-testpypi.yml @@ -7,7 +7,7 @@ concurrency: group: pypi jobs: package-testpypi: - uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-package-testpypi.yml@v1.4.1 + uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-package-testpypi.yml@v1.5.0 with: package-name: tm_devices repo-name: tektronix/tm_devices diff --git a/.github/workflows/publish-api-comparison.yml b/.github/workflows/publish-api-comparison.yml index 0b2eee05..25f07662 100644 --- a/.github/workflows/publish-api-comparison.yml +++ b/.github/workflows/publish-api-comparison.yml @@ -6,7 +6,7 @@ on: types: [completed] jobs: publish-api-comparison: - uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-publish-api-comparison.yml@v1.4.1 + uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-publish-api-comparison.yml@v1.5.0 permissions: checks: write pull-requests: write diff --git a/.github/workflows/publish-test-results.yml b/.github/workflows/publish-test-results.yml index 08fbc825..5275ad06 100644 --- a/.github/workflows/publish-test-results.yml +++ b/.github/workflows/publish-test-results.yml @@ -6,7 +6,7 @@ on: types: [completed] jobs: publish-test-results: - uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-publish-test-results.yml@v1.4.1 + uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-publish-test-results.yml@v1.5.0 with: operating-systems-array: '["ubuntu", "windows", "macos"]' permissions: diff --git a/.github/workflows/sbom-scan.yml b/.github/workflows/sbom-scan.yml index 2f812711..d088152c 100644 --- a/.github/workflows/sbom-scan.yml +++ b/.github/workflows/sbom-scan.yml @@ -9,7 +9,7 @@ on: types: [published] jobs: sbom-scan: - uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-sbom-scan.yml@v1.4.1 + uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-sbom-scan.yml@v1.5.0 permissions: security-events: write contents: write diff --git a/.github/workflows/test-code.yml b/.github/workflows/test-code.yml index 55b19eb6..ce2edac1 100644 --- a/.github/workflows/test-code.yml +++ b/.github/workflows/test-code.yml @@ -10,7 +10,7 @@ concurrency: cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: test-code: - uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-test-code.yml@v1.4.1 + uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-test-code.yml@v1.5.0 with: repo-name: tektronix/tm_devices operating-systems-array: '["ubuntu", "windows", "macos"]' diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml index 621339f2..bbb81b5e 100644 --- a/.github/workflows/test-docs.yml +++ b/.github/workflows/test-docs.yml @@ -10,7 +10,7 @@ concurrency: cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: test-docs: - uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-test-docs.yml@v1.4.1 + uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-test-docs.yml@v1.5.0 with: node-version: 20 # The node version needs to stay in sync with .readthedocs.yml python-version: '3.11' # This needs to stay in sync with .readthedocs.yml and the tox config in pyproject.toml diff --git a/.github/workflows/update-python-and-pre-commit-dependencies.yml b/.github/workflows/update-python-and-pre-commit-dependencies.yml index 32318d61..919ea0b8 100644 --- a/.github/workflows/update-python-and-pre-commit-dependencies.yml +++ b/.github/workflows/update-python-and-pre-commit-dependencies.yml @@ -6,7 +6,7 @@ on: jobs: update-python-and-pre-commit-dependencies: if: ${{ github.actor == 'dependabot[bot]' && contains(github.head_ref, '/pip/') }} - uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-update-python-and-pre-commit-dependencies.yml@v1.4.1 + uses: tektronix/python-package-ci-cd/.github/workflows/_reusable-update-python-and-pre-commit-dependencies.yml@v1.5.0 with: commit-user-name: ${{ vars.TEK_OPENSOURCE_NAME }} commit-user-email: ${{ vars.TEK_OPENSOURCE_EMAIL }} @@ -14,6 +14,7 @@ jobs: update-pre-commit: true run-pre-commit: true pre-commit-hook-skip-list: pylint,pyright,pyright-verifytypes,pyroma,poetry-audit + pre-commit-repo-update-skip-list: https://github.com/executablebooks/mdformat export-dependency-groups: docs,tests permissions: contents: write diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a04a87d..28e7ba56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,12 +22,13 @@ Things to be included in the next release go here. - fix: TekScope2K active channel query needs VERBOSE and HEADER options enabled to function properly ---- - ### Added +- `collectgarbage()` is now called during cleanup of `TSPDevice` children. - Added USB Support for AFG31K and MDO3 models. +--- + ## v2.4.0 (2024-09-19) ### Merged Pull Requests diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py index 9f2016b2..0a1e9b89 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py @@ -136,3 +136,7 @@ def load_script( ################################################################################################ # Private Methods ################################################################################################ + + def _cleanup(self) -> None: + """Perform the cleanup defined for the device.""" + PIDevice._cleanup(self) # noqa: SLF001 diff --git a/src/tm_devices/drivers/pi/tsp_device.py b/src/tm_devices/drivers/pi/tsp_device.py index 81af7f8f..8506265d 100644 --- a/src/tm_devices/drivers/pi/tsp_device.py +++ b/src/tm_devices/drivers/pi/tsp_device.py @@ -277,7 +277,10 @@ def write_buffers(self, filepath: str, *args: str, sep: str = ",") -> None: ) self.export_buffers(filepath, *args, sep=sep) - -################################################################################################ -# Private Methods -################################################################################################ + ################################################################################################ + # Private Methods + ################################################################################################ + def _cleanup(self) -> None: + """Perform the cleanup defined for the device.""" + super()._cleanup() + self.write("collectgarbage()") diff --git a/tests/sim_devices/daq/daq6510.yaml b/tests/sim_devices/daq/daq6510.yaml index 8ac9e542..10e28ec8 100644 --- a/tests/sim_devices/daq/daq6510.yaml +++ b/tests/sim_devices/daq/daq6510.yaml @@ -12,6 +12,7 @@ devices: - q: eventlog.clear() - q: status.clear() - q: reset() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/dmm/dmm6500.yaml b/tests/sim_devices/dmm/dmm6500.yaml index e691e50e..e9852c7d 100644 --- a/tests/sim_devices/dmm/dmm6500.yaml +++ b/tests/sim_devices/dmm/dmm6500.yaml @@ -12,6 +12,7 @@ devices: - q: eventlog.clear() - q: status.clear() - q: reset() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/dmm/dmm7510.yaml b/tests/sim_devices/dmm/dmm7510.yaml index 4f1ea04e..a3ab4ecd 100644 --- a/tests/sim_devices/dmm/dmm7510.yaml +++ b/tests/sim_devices/dmm/dmm7510.yaml @@ -12,6 +12,7 @@ devices: - q: eventlog.clear() - q: status.clear() - q: reset() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/dmm/dmm7512.yaml b/tests/sim_devices/dmm/dmm7512.yaml index 8a494cc1..418d0f1b 100644 --- a/tests/sim_devices/dmm/dmm7512.yaml +++ b/tests/sim_devices/dmm/dmm7512.yaml @@ -12,6 +12,7 @@ devices: - q: eventlog.clear() - q: status.clear() - q: reset() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2450.yaml b/tests/sim_devices/smu/smu2450.yaml index 10236a21..1c8a7503 100644 --- a/tests/sim_devices/smu/smu2450.yaml +++ b/tests/sim_devices/smu/smu2450.yaml @@ -12,6 +12,7 @@ devices: - q: eventlog.clear() - q: status.clear() - q: reset() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2460.yaml b/tests/sim_devices/smu/smu2460.yaml index 5900db3e..e055d331 100644 --- a/tests/sim_devices/smu/smu2460.yaml +++ b/tests/sim_devices/smu/smu2460.yaml @@ -13,6 +13,7 @@ devices: - q: status.clear() - q: reset() - q: smu.source.sweeplinear("SolarCell", 0, 0.53, 56, 0.1) + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2461.yaml b/tests/sim_devices/smu/smu2461.yaml index 23df9025..45582f6c 100644 --- a/tests/sim_devices/smu/smu2461.yaml +++ b/tests/sim_devices/smu/smu2461.yaml @@ -12,6 +12,7 @@ devices: - q: eventlog.clear() - q: status.clear() - q: reset() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2470.yaml b/tests/sim_devices/smu/smu2470.yaml index b5e2df0a..e5c0ef55 100644 --- a/tests/sim_devices/smu/smu2470.yaml +++ b/tests/sim_devices/smu/smu2470.yaml @@ -12,6 +12,7 @@ devices: - q: eventlog.clear() - q: status.clear() - q: reset() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2601a.yaml b/tests/sim_devices/smu/smu2601a.yaml index bbd3a0fc..918892e9 100644 --- a/tests/sim_devices/smu/smu2601a.yaml +++ b/tests/sim_devices/smu/smu2601a.yaml @@ -22,6 +22,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2601b.yaml b/tests/sim_devices/smu/smu2601b.yaml index 11ea57a8..e08146ff 100644 --- a/tests/sim_devices/smu/smu2601b.yaml +++ b/tests/sim_devices/smu/smu2601b.yaml @@ -29,6 +29,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() - q: status.node_enable = 1 - q: print(status.node_enable) r: 1 diff --git a/tests/sim_devices/smu/smu2601b_pulse.yaml b/tests/sim_devices/smu/smu2601b_pulse.yaml index 24242f4e..8cfd52d2 100644 --- a/tests/sim_devices/smu/smu2601b_pulse.yaml +++ b/tests/sim_devices/smu/smu2601b_pulse.yaml @@ -31,6 +31,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2602a.yaml b/tests/sim_devices/smu/smu2602a.yaml index 4464171d..46bbdf5c 100644 --- a/tests/sim_devices/smu/smu2602a.yaml +++ b/tests/sim_devices/smu/smu2602a.yaml @@ -22,6 +22,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2602b.yaml b/tests/sim_devices/smu/smu2602b.yaml index 726bf119..6a85a12d 100644 --- a/tests/sim_devices/smu/smu2602b.yaml +++ b/tests/sim_devices/smu/smu2602b.yaml @@ -31,6 +31,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2604a.yaml b/tests/sim_devices/smu/smu2604a.yaml index 7cee65b8..7bda280a 100644 --- a/tests/sim_devices/smu/smu2604a.yaml +++ b/tests/sim_devices/smu/smu2604a.yaml @@ -22,6 +22,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2604b.yaml b/tests/sim_devices/smu/smu2604b.yaml index 182a3e6d..df0a1a25 100644 --- a/tests/sim_devices/smu/smu2604b.yaml +++ b/tests/sim_devices/smu/smu2604b.yaml @@ -31,6 +31,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2606b.yaml b/tests/sim_devices/smu/smu2606b.yaml index 6f825e06..b7958699 100644 --- a/tests/sim_devices/smu/smu2606b.yaml +++ b/tests/sim_devices/smu/smu2606b.yaml @@ -31,6 +31,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2611a.yaml b/tests/sim_devices/smu/smu2611a.yaml index 1596797e..f30cb484 100644 --- a/tests/sim_devices/smu/smu2611a.yaml +++ b/tests/sim_devices/smu/smu2611a.yaml @@ -22,6 +22,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2611b.yaml b/tests/sim_devices/smu/smu2611b.yaml index cd9810b9..f7e01632 100644 --- a/tests/sim_devices/smu/smu2611b.yaml +++ b/tests/sim_devices/smu/smu2611b.yaml @@ -31,6 +31,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2612a.yaml b/tests/sim_devices/smu/smu2612a.yaml index 0e13e831..4a0c4fc1 100644 --- a/tests/sim_devices/smu/smu2612a.yaml +++ b/tests/sim_devices/smu/smu2612a.yaml @@ -22,6 +22,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2612b.yaml b/tests/sim_devices/smu/smu2612b.yaml index 91008575..3355842c 100644 --- a/tests/sim_devices/smu/smu2612b.yaml +++ b/tests/sim_devices/smu/smu2612b.yaml @@ -31,6 +31,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2614a.yaml b/tests/sim_devices/smu/smu2614a.yaml index 43c21b49..08500e87 100644 --- a/tests/sim_devices/smu/smu2614a.yaml +++ b/tests/sim_devices/smu/smu2614a.yaml @@ -22,6 +22,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2614b.yaml b/tests/sim_devices/smu/smu2614b.yaml index 2fd9cebc..a6eda98f 100644 --- a/tests/sim_devices/smu/smu2614b.yaml +++ b/tests/sim_devices/smu/smu2614b.yaml @@ -31,6 +31,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2634a.yaml b/tests/sim_devices/smu/smu2634a.yaml index 224c4b58..73113d76 100644 --- a/tests/sim_devices/smu/smu2634a.yaml +++ b/tests/sim_devices/smu/smu2634a.yaml @@ -22,6 +22,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2634b.yaml b/tests/sim_devices/smu/smu2634b.yaml index b4a0bed0..b35e8f9c 100644 --- a/tests/sim_devices/smu/smu2634b.yaml +++ b/tests/sim_devices/smu/smu2634b.yaml @@ -31,6 +31,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2635a.yaml b/tests/sim_devices/smu/smu2635a.yaml index 354a6323..81b687a1 100644 --- a/tests/sim_devices/smu/smu2635a.yaml +++ b/tests/sim_devices/smu/smu2635a.yaml @@ -22,6 +22,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2635b.yaml b/tests/sim_devices/smu/smu2635b.yaml index 5547d027..271b6e3e 100644 --- a/tests/sim_devices/smu/smu2635b.yaml +++ b/tests/sim_devices/smu/smu2635b.yaml @@ -31,6 +31,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2636a.yaml b/tests/sim_devices/smu/smu2636a.yaml index ee527805..4b7954d6 100644 --- a/tests/sim_devices/smu/smu2636a.yaml +++ b/tests/sim_devices/smu/smu2636a.yaml @@ -22,6 +22,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2636b.yaml b/tests/sim_devices/smu/smu2636b.yaml index d7cf971f..6fef3be0 100644 --- a/tests/sim_devices/smu/smu2636b.yaml +++ b/tests/sim_devices/smu/smu2636b.yaml @@ -31,6 +31,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2651a.yaml b/tests/sim_devices/smu/smu2651a.yaml index 8861be87..f99a2492 100644 --- a/tests/sim_devices/smu/smu2651a.yaml +++ b/tests/sim_devices/smu/smu2651a.yaml @@ -31,6 +31,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu2657a.yaml b/tests/sim_devices/smu/smu2657a.yaml index 1c8db918..32550b72 100644 --- a/tests/sim_devices/smu/smu2657a.yaml +++ b/tests/sim_devices/smu/smu2657a.yaml @@ -31,6 +31,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event) diff --git a/tests/sim_devices/smu/smu6430.yaml b/tests/sim_devices/smu/smu6430.yaml index 3fb3be73..b4a109cb 100644 --- a/tests/sim_devices/smu/smu6430.yaml +++ b/tests/sim_devices/smu/smu6430.yaml @@ -19,6 +19,7 @@ devices: r: '1' - q: '*RST' - q: '*CLS' + - q: collectgarbage() error: status_register: - q: '*ESR?' diff --git a/tests/sim_devices/smu/smu6514.yaml b/tests/sim_devices/smu/smu6514.yaml index a5f2d89a..7ab91a7e 100644 --- a/tests/sim_devices/smu/smu6514.yaml +++ b/tests/sim_devices/smu/smu6514.yaml @@ -19,6 +19,7 @@ devices: r: '1' - q: '*RST' - q: '*CLS' + - q: collectgarbage() error: status_register: - q: '*ESR?' diff --git a/tests/sim_devices/smu/smu6517b.yaml b/tests/sim_devices/smu/smu6517b.yaml index af63e9d6..b2084dba 100644 --- a/tests/sim_devices/smu/smu6517b.yaml +++ b/tests/sim_devices/smu/smu6517b.yaml @@ -19,6 +19,7 @@ devices: r: '1' - q: '*RST' - q: '*CLS' + - q: collectgarbage() error: status_register: - q: '*ESR?' diff --git a/tests/sim_devices/ss/ss3706a.yaml b/tests/sim_devices/ss/ss3706a.yaml index c13bdfa1..561f23a8 100644 --- a/tests/sim_devices/ss/ss3706a.yaml +++ b/tests/sim_devices/ss/ss3706a.yaml @@ -32,6 +32,7 @@ devices: - q: print([[0]]) r: 0 - q: waitcomplete() + - q: collectgarbage() error: status_register: - q: print(status.standard.event)