epicsdev 3.3.4__tar.gz → 3.3.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {epicsdev-3.3.4 → epicsdev-3.3.5}/PKG-INFO +1 -1
- epicsdev-3.3.5/config/ai_epicsdev_pp.py +85 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/config/epicsdev_pp.py +5 -2
- {epicsdev-3.3.4 → epicsdev-3.3.5}/docs/generate_server.md +1 -2
- epicsdev-3.3.5/docs/imagegen_imagin.png +0 -0
- epicsdev-3.3.5/docs/imagegen_oneRow.png +0 -0
- epicsdev-3.3.5/docs/imagegen_roi_ampl.png +0 -0
- epicsdev-3.3.5/docs/imagegen_roi_horz.png +0 -0
- epicsdev-3.3.5/docs/imagegen_roi_vet.png +0 -0
- epicsdev-3.3.5/docs/imagegen_rot30.png +0 -0
- epicsdev-3.3.5/docs/imagin_rotate30.png +0 -0
- epicsdev-3.3.5/docs/imagin_rotate30_horz.png +0 -0
- epicsdev-3.3.5/docs/imagin_rotate30_vert.png +0 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/epicsdev/epicsdev.py +5 -4
- {epicsdev-3.3.4 → epicsdev-3.3.5}/pyproject.toml +1 -1
- {epicsdev-3.3.4 → epicsdev-3.3.5}/uv.lock +2 -2
- {epicsdev-3.3.4 → epicsdev-3.3.5}/LICENSE +0 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/README.md +0 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/config/multiadc_pp.py +0 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/docs/epicsdev_continuous_integration.md +0 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/docs/generate_opi.md +0 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/docs/generate_opi.py +0 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/docs/imagegenUsage.md +0 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/docs/template.py +0 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/epicsdev/README.md +0 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/epicsdev/__init__.py +0 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/epicsdev/imagegen.py +0 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/epicsdev/multiadc.py +0 -0
- {epicsdev-3.3.4 → epicsdev-3.3.5}/epicsdev/putlog.py +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"""AI-generated Pypeto control page for the epicsDev:0 live EPICS IOC.
|
|
2
|
+
This page exposes the PVs requested by the user as a live control panel in the
|
|
3
|
+
pypeto GUI. The file is intended to be loaded by the pypeto application as a
|
|
4
|
+
configuration module, e.g. via `python -m pypeto -c config -f ai_epicsdev_pp`.
|
|
5
|
+
"""
|
|
6
|
+
# pylint: disable=invalid-name
|
|
7
|
+
__version__ = 'v0.1.0 2026-11-14'
|
|
8
|
+
|
|
9
|
+
_ = ''
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def span(x, y=1):
|
|
13
|
+
return {'span': [x, y]}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def color(*v):
|
|
17
|
+
return {'color': v[0]} if len(v) == 1 else {'color': list(v)}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def font(size):
|
|
21
|
+
return {'font': ['Arial', size]}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def just(i):
|
|
25
|
+
return {'justify': {0: 'left', 1: 'center', 2: 'right'}[i]}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
#LargeFont = {'color': 'light gray', **font(18), 'fgColor': 'dark green'}
|
|
29
|
+
ButtonFont = {'font': ['Open Sans Extrabold', 14]}
|
|
30
|
+
#HeaderColor = {**color('lightCyan'), **just(1)}
|
|
31
|
+
lColor = color('lightGreen')
|
|
32
|
+
PyPath = 'python -m'
|
|
33
|
+
|
|
34
|
+
PREFIX = 'epicsDev:0:'
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class PyPage():
|
|
38
|
+
def __init__(self, instance=PREFIX, title='epicsDev:0'):
|
|
39
|
+
"""Create the pypeto control page for an epicsDev IOC."""
|
|
40
|
+
self.namespace = 'PVA'
|
|
41
|
+
self.title = title
|
|
42
|
+
self.page = {**color(240, 240, 240)}
|
|
43
|
+
self.columns = {
|
|
44
|
+
1: {'width': 130, 'justify': 'right'},
|
|
45
|
+
2: {'width': 110},
|
|
46
|
+
3: {'width': 130, 'justify': 'right'},
|
|
47
|
+
4: {'width': 110},
|
|
48
|
+
5: {'width': 130, 'justify': 'right'},
|
|
49
|
+
6: {'width': 110},
|
|
50
|
+
7: {'width': 110},
|
|
51
|
+
8: {'width': 110},
|
|
52
|
+
9: {'width': 110},
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
D = instance
|
|
56
|
+
|
|
57
|
+
PaneP2P = 'c01Mean c01Peak2Peak'
|
|
58
|
+
PaneWF = 'c01Waveform'
|
|
59
|
+
Plot = {
|
|
60
|
+
'Plot': {
|
|
61
|
+
'launch': f'{PyPath} pvplot Y-5:5 -aV:{D} -#0"{PaneP2P}" -#1"{PaneWF}"',
|
|
62
|
+
**lColor,
|
|
63
|
+
**ButtonFont,
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
self.rows = [
|
|
68
|
+
['Device:', D, 'Server:', D + 'server', 'Version:', D + 'VERSION'],
|
|
69
|
+
['Host:', D + 'HOSTNAME', 'StartTOD:', D + 'STARTTOD', 'Uptime:', D + 'UPTIME'],
|
|
70
|
+
['CPU load:', D + 'CPU_LOAD', 'Heartbeat:', D + 'HEARTBEAT', 'Alarm:', D + 'alarm'],
|
|
71
|
+
['Status:', {D + 'status': span(3, 1)}, 'Verbose:', D + 'verbose', 'Cycle:', D + 'cycle'],
|
|
72
|
+
['Sleep:', D + 'sleep', 'Cycle time:', D + 'cycleTime', 'Throughput:', D + 'throughput'],
|
|
73
|
+
['Record length:', D + 'recordLength', 'Noise:', D + 'noiseLevel', 'Image:', D + 'image'],
|
|
74
|
+
# [{**HeaderColor}, 'Signal', 'PV', 'Signal', 'PV', 'Signal', 'PV', 'Signal', 'PV'],
|
|
75
|
+
['Mean:', D + 'c01Mean', 'Offset:', D + 'c01Offset', 'P2P:', D + 'c01Peak2Peak', 'V/div:', D + 'c01VoltsPerDiv'],
|
|
76
|
+
['Waveform:', {D + 'c01Waveform': span(5, 1)}, 'Time axis:', D + 'tAxis'],
|
|
77
|
+
['Waveform array:', D + 'waveform', 'Image data:', D + 'image', Plot],
|
|
78
|
+
['Live data:', {D + 'status': span(2, 1)}, 'Host:', D + 'HOSTNAME', 'Alarm:', D + 'alarm'],
|
|
79
|
+
]
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
if __name__ == '__main__':
|
|
83
|
+
page = PyPage()
|
|
84
|
+
print(page.title)
|
|
85
|
+
print(len(page.rows))
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
"""Pypet page for epicdev.epicsdev module"""
|
|
2
|
-
#
|
|
1
|
+
"""Pypet page for epicdev.epicsdev module."""
|
|
2
|
+
# pylint: disable=invalid-name
|
|
3
|
+
# pylint: disable=missing-function-docstring
|
|
4
|
+
# pylint: disable=multiple-statements
|
|
5
|
+
|
|
3
6
|
__version__ = 'v3.3.4 2026-11-12'# updated to match multiadc and epicsdev versions
|
|
4
7
|
print(f'epicsScope {__version__}')
|
|
5
8
|
|
|
@@ -19,8 +19,7 @@ Copy the [server template](https://github.com/eicorg/epicsdev/blob/main/docs/tem
|
|
|
19
19
|
|
|
20
20
|
### Check if basic functionality is working
|
|
21
21
|
```bash
|
|
22
|
-
|
|
23
|
-
python -m my_server
|
|
22
|
+
uv run python -m my_server
|
|
24
23
|
```
|
|
25
24
|
Check from another terminal that the server publishes templated PVs:
|
|
26
25
|
```bash
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# pylint: disable=invalid-name
|
|
3
3
|
# pylint: disable=line-too-long
|
|
4
4
|
# pylint: disable=broad-exception-caught
|
|
5
|
-
__version__= 'v3.3.
|
|
5
|
+
__version__= 'v3.3.5 2026-11-15'# replace colons in prefix with double underscores for file name, to avoid problems with colons in file names
|
|
6
6
|
#TODO: publish with ifChanged=True, does not work for arrays
|
|
7
7
|
#TODO: ifChanged does not work for enums
|
|
8
8
|
|
|
@@ -444,7 +444,7 @@ def init_epicsdev(prefix:str, pvDefs:list, verbose=0, serverStateChanged=None,
|
|
|
444
444
|
if recall and autosaveDir is not None:
|
|
445
445
|
try:
|
|
446
446
|
autosaveFile = os.path.join(autosaveDir, f'{prefix[:-1]}.cache')
|
|
447
|
-
with open(autosaveFile, "r") as json_file:
|
|
447
|
+
with open(autosaveFile, "r", encoding="utf-8") as json_file:
|
|
448
448
|
pvcache = json.load(json_file)
|
|
449
449
|
except Exception:
|
|
450
450
|
print(f'WARNING: pvCache file {autosaveFile} not found. Using default values')
|
|
@@ -463,7 +463,7 @@ def init_epicsdev(prefix:str, pvDefs:list, verbose=0, serverStateChanged=None,
|
|
|
463
463
|
printe(f'Permission denied to create {autosaveDir}. You can define the root directory in OPERATIONS environment variable or disable autosaving.')
|
|
464
464
|
sys.exit(1)
|
|
465
465
|
autosaveFile = os.path.join(autosaveDir, f'{prefix[:-1]}.cache')
|
|
466
|
-
C_.cachefd = open(autosaveFile, 'w')
|
|
466
|
+
C_.cachefd = open(autosaveFile, 'w', encoding="utf-8")
|
|
467
467
|
printi(f'Autosave enabled. Saving to {autosaveFile}')
|
|
468
468
|
else:
|
|
469
469
|
printi('Autosave disabled')
|
|
@@ -485,7 +485,8 @@ def init_epicsdev(prefix:str, pvDefs:list, verbose=0, serverStateChanged=None,
|
|
|
485
485
|
listDir = '/tmp/pvlist/' if listDir is None else listDir
|
|
486
486
|
if not os.path.exists(listDir):
|
|
487
487
|
os.makedirs(listDir)
|
|
488
|
-
|
|
488
|
+
safe_prefix = prefix[:-1].replace(':', '__')
|
|
489
|
+
filepath = f'{listDir}{safe_prefix}.txt'
|
|
489
490
|
printi(f'Writing list of PVs to {filepath}')
|
|
490
491
|
with open(filepath, 'w', encoding="utf-8") as f:
|
|
491
492
|
for _pvname in pvs:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
version = 1
|
|
2
|
-
revision =
|
|
2
|
+
revision = 3
|
|
3
3
|
requires-python = ">=3.10"
|
|
4
4
|
resolution-markers = [
|
|
5
5
|
"python_full_version >= '3.12'",
|
|
@@ -44,7 +44,7 @@ wheels = [
|
|
|
44
44
|
|
|
45
45
|
[[package]]
|
|
46
46
|
name = "epicsdev"
|
|
47
|
-
version = "3.3.
|
|
47
|
+
version = "3.3.4"
|
|
48
48
|
source = { editable = "." }
|
|
49
49
|
dependencies = [
|
|
50
50
|
{ name = "p4p" },
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|