Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
Signed-off-by: Joe <[email protected]>
  • Loading branch information
RoaCode authored Oct 23, 2024
2 parents 6dc99f2 + 4a63869 commit da9edcb
Show file tree
Hide file tree
Showing 49 changed files with 61 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-api-for-breaking-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/enforce-community-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/package-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package-testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-api-comparison.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/publish-test-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sbom-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ 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 }}
dependency-dict: '{"tests": ["ruff"]}'
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
Expand Down
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 7 additions & 4 deletions src/tm_devices/drivers/pi/tsp_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()")
1 change: 1 addition & 0 deletions tests/sim_devices/daq/daq6510.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ devices:
- q: eventlog.clear()
- q: status.clear()
- q: reset()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/dmm/dmm6500.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ devices:
- q: eventlog.clear()
- q: status.clear()
- q: reset()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/dmm/dmm7510.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ devices:
- q: eventlog.clear()
- q: status.clear()
- q: reset()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/dmm/dmm7512.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ devices:
- q: eventlog.clear()
- q: status.clear()
- q: reset()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2450.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ devices:
- q: eventlog.clear()
- q: status.clear()
- q: reset()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2460.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2461.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ devices:
- q: eventlog.clear()
- q: status.clear()
- q: reset()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2470.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ devices:
- q: eventlog.clear()
- q: status.clear()
- q: reset()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2601a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2601b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2601b_pulse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2602a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2602b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2604a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2604b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2606b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2611a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2611b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2612a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2612b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2614a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2614b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2634a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2634b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2635a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2635b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2636a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2636b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2651a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu2657a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ devices:
- q: print([[0]])
r: 0
- q: waitcomplete()
- q: collectgarbage()
error:
status_register:
- q: print(status.standard.event)
Expand Down
1 change: 1 addition & 0 deletions tests/sim_devices/smu/smu6430.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ devices:
r: '1'
- q: '*RST'
- q: '*CLS'
- q: collectgarbage()
error:
status_register:
- q: '*ESR?'
Expand Down
Loading

0 comments on commit da9edcb

Please sign in to comment.