Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ ci:
autoupdate_schedule: 'monthly'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-toml
- id: no-commit-to-branch
args: [-b, master]

- repo: https://github.com/psf/black
rev: 23.10.1
rev: 24.10.0
hooks:
- id: black
name: black
Expand All @@ -19,7 +19,7 @@ repos:
types: [python]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.14.1
hooks:
- id: mypy
exclude: ^docs/conf.py
Expand Down
1 change: 0 additions & 1 deletion yaqd_spectra_physics/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define version."""


import pathlib
import subprocess

Expand Down
249 changes: 0 additions & 249 deletions yaqd_spectra_physics/spectra-physics-millennia.avpr
Original file line number Diff line number Diff line change
@@ -1,249 +0,0 @@
{
"config": {
"baud_rate": {
"default": 9600,
"doc": "Dip switch S1 on laser head determines baud rate (consult manual). Default is 9600.",
"origin": "uses-uart",
"type": "int"
},
"enable": {
"default": true,
"doc": "Disable this daemon. The kind entry-point will not attempt to start this daemon.",
"origin": "is-daemon",
"type": "boolean"
},
"limits": {
"default": [
0.2,
5.0
],
"doc": "Lasing power limits (Watts).",
"type": "limits"
},
"log_level": {
"default": "info",
"doc": "Set daemon log-level.",
"origin": "is-daemon",
"type": {
"name": "level",
"symbols": [
"debug",
"info",
"notice",
"warning",
"error",
"critical",
"alert",
"emergency"
],
"type": "enum"
}
},
"log_to_file": {
"default": false,
"doc": "Optionally force logging to a file.",
"origin": "is-daemon",
"type": "boolean"
},
"make": {
"default": null,
"origin": "is-daemon",
"type": [
"null",
"string"
]
},
"model": {
"default": null,
"origin": "is-daemon",
"type": [
"null",
"string"
]
},
"port": {
"doc": "TCP port for daemon to occupy.",
"origin": "is-daemon",
"type": "int"
},
"refresh_wait": {
"default": 30,
"doc": "Wait interval, in seconds, to poll state when idle. Default is 30 sec.",
"type": "int"
},
"serial": {
"default": null,
"doc": "Serial number for the particular device represented by the daemon",
"origin": "is-daemon",
"type": [
"null",
"string"
]
},
"serial_port": {
"origin": "uses-uart",
"type": "string"
}
},
"doc": "Millennia serial interface",
"fields": {
"power": {
"getter": "get_power",
"setter": "set_power",
"type": "float"
}
},
"installation": {
"PyPI": "https://pypi.org/project/yaqd-spectra-physics"
},
"links": {
"bugtracker": "https://github.com/yaq-project/yaqd-spectra-physics/issues",
"source": "https://github.com/yaq-project/yaqd-spectra-physics"
},
"messages": {
"busy": {
"doc": "Returns true if daemon is currently busy.",
"origin": "is-daemon",
"request": [],
"response": "boolean"
},
"direct_serial_write": {
"doc": "Expose direct access to the serial port to clients.\n\nThis should not be encouraged for normal use, but may be very important for debugging.\nIf a device is expected to return data, it should be logged at the INFO level, not returned to the client.\nThis is done to allow long tasks to be run asynchronously, and to explicitly discourage use of this method except when debugging.\nSetting `busy` to true is encouraged, but individual daemon writers should consider their own use case.\n",
"origin": "uses-serial",
"request": [
{
"name": "message",
"type": "bytes"
}
],
"response": "string"
},
"get_config": {
"doc": "Full configuration for the individual daemon as defined in the TOML file.\nThis includes defaults and shared settings not directly specified in the daemon-specific TOML table.\n",
"origin": "is-daemon",
"request": [],
"response": "string"
},
"get_config_filepath": {
"doc": "String representing the absolute filepath of the configuration file on the host machine.\n",
"origin": "is-daemon",
"request": [],
"response": "string"
},
"get_state": {
"doc": "Get version of the running daemon",
"origin": "is-daemon",
"request": [],
"response": "string"
},
"id": {
"doc": "JSON object with information to identify the daemon, including name, kind, make, model, serial.\n",
"origin": "is-daemon",
"request": [],
"response": {
"type": "map",
"values": [
"null",
"string"
]
}
},
"query": {
"doc": "Issue serial command and receive response. Command checks for and logs errors.",
"request": [
{
"name": "message",
"type": "bytes"
}
],
"response": "string"
},
"shutdown": {
"doc": "Cleanly shutdown (or restart) daemon.",
"origin": "is-daemon",
"request": [
{
"default": false,
"name": "restart",
"type": "boolean"
}
],
"response": "null"
}
},
"protocol": "spectra-physics-millennia",
"requires": [],
"state": {
"c1": {
"default": "0",
"doc": "measured diode currents (Amperes)",
"type": "string"
},
"c2": {
"default": "0",
"doc": "measured diode currents (Amperes)",
"type": "string"
},
"error_code": {
"default": "0",
"doc": "Code for status that displays on controller. See manual Appendix A.",
"type": "string"
},
"power": {
"default": "0",
"doc": "measured laser power (Watts)",
"type": "string"
},
"set_power": {
"default": "0",
"doc": "destination power",
"type": "string"
}
},
"traits": [
"is-daemon",
"uses-serial",
"uses-uart"
],
"types": [
{
"name": "mode",
"symbols": [
"P",
"C%"
],
"type": "enum"
},
{
"items": "float",
"name": "limits",
"type": "array"
},
{
"fields": [
{
"name": "shape",
"type": {
"items": "int",
"type": "array"
}
},
{
"name": "typestr",
"type": "string"
},
{
"name": "data",
"type": "bytes"
},
{
"name": "version",
"type": "int"
}
],
"logicalType": "ndarray",
"name": "ndarray",
"type": "record"
}
]
}