slic issueshttps://gitlab.psi.ch/groups/slic/-/issues2022-01-12T12:18:21+01:00https://gitlab.psi.ch/slic/slic/-/issues/2Marker with many adjs2022-01-12T12:18:21+01:00augustin_sMarker with many adjsCurrently:
----------
```python
d = DummyAdjustable()
m = Marker(d)
```
Sets a marker `m` on the current position of `d`. The name of the marker, and the stored position can be set. Markers show up automatically in the GoTo tab of the ...Currently:
----------
```python
d = DummyAdjustable()
m = Marker(d)
```
Sets a marker `m` on the current position of `d`. The name of the marker, and the stored position can be set. Markers show up automatically in the GoTo tab of the GUI.
Requested:
----------
```python
d1 = DummyAdjustable(name="dummy 1")
d2 = DummyAdjustable(name="dummy 2")
...
m = Marker(d1, d2, ...)
```
Sets a marker `m` on the current positions of all given `d*`. This would be useful, e.g., when 3D positions are supposed to be bookmarked.augustin_saugustin_shttps://gitlab.psi.ch/slic/slic/-/issues/3TaskGroup or AdjustableGroup2022-01-10T12:38:43+01:00augustin_sTaskGroup or AdjustableGroupAdd classes with methods:
```
adjs.get_all_current_values()
adjs.set_all_target_values(vals)
tasks.wait_for_all()
tasks.stop_all()
```Add classes with methods:
```
adjs.get_all_current_values()
adjs.set_all_target_values(vals)
tasks.wait_for_all()
tasks.stop_all()
```https://gitlab.psi.ch/slic/slic/-/issues/5Meta data2022-01-10T12:42:35+01:00augustin_sMeta data- scan info sending: which additional meta data?
- store good/bad step (according to condition) to meta data (as step info)- scan info sending: which additional meta data?
- store good/bad step (according to condition) to meta data (as step info)https://gitlab.psi.ch/slic/slic/-/issues/6dict: name -> obj2022-01-10T12:44:07+01:00augustin_sdict: name -> objEase access to adjs/devs via dict: name -> obj
Can be auto-generated from Registry...Ease access to adjs/devs via dict: name -> obj
Can be auto-generated from Registry...https://gitlab.psi.ch/slic/slic/-/issues/7Smarter channel lists2022-01-10T12:52:43+01:00augustin_sSmarter channel listsFor all channel types (BS, detectors, PVs):
1. To avoid treating each character of `string` as separate channel:
`channels=string` -> `channels=[string]`
2. To ease writing the lists:
```
chs = [
{"name": "NAME", ...},
...
]
```
...For all channel types (BS, detectors, PVs):
1. To avoid treating each character of `string` as separate channel:
`channels=string` -> `channels=[string]`
2. To ease writing the lists:
```
chs = [
{"name": "NAME", ...},
...
]
```
or(!)
```
chs = {
"NAME": {...},
...
}
```
->
```
chs = {
"NAME": {"name": "NAME", ...},
...
}
```https://gitlab.psi.ch/slic/slic/-/issues/9Channel (currently detectors only) config2022-01-10T13:14:12+01:00augustin_sChannel (currently detectors only) configHow to handle detector (or more general channel) config?
- Store to config file? (which format?)
- Which parameters? (enabled modules, rate multiplier, ...)
- Write with "Detector Control" read with slic?How to handle detector (or more general channel) config?
- Store to config file? (which format?)
- Which parameters? (enabled modules, rate multiplier, ...)
- Write with "Detector Control" read with slic?augustin_saugustin_shttps://gitlab.psi.ch/slic/slic/-/issues/12Compatibility with new DAQ calls2022-02-03T15:30:12+01:00augustin_sCompatibility with new DAQ calls```python
import requests
broker_address = "http://sf-daq:10002"
```
Advance the run number in the DAQ for a given pgroup:
```python
parameters = {
'pgroup': 'p17502'
}
r = requests.get(f'{broker_address}/get_next_run_number', json...```python
import requests
broker_address = "http://sf-daq:10002"
```
Advance the run number in the DAQ for a given pgroup:
```python
parameters = {
'pgroup': 'p17502'
}
r = requests.get(f'{broker_address}/get_next_run_number', json=parameters)
r.json()
```
->
```python
<Response [200]>
{
'status': 'ok',
'message': '6'
}
```
Use that run_number in the retrieve request:
```python
parameters = {
"pgroup": "p17502",
"rate_multiplicator": 1,
"detectors": {
"JF06T32V02": {}
},
"run_number": 6,
"user_tag": "test_show",
"start_pulseid": 13984141064,
"stop_pulseid": 13984141064+100
}
r = requests.post(f'{broker_address}/retrieve_from_buffers', json=parameters)
r.json()
```
->
```python
<Response [200]>
{
'status': 'ok',
'message': 'OK',
'run_number': '6',
'acquisition_number': '0',
'unique_acquisition_number': '2902',
'files': [
'/sf/alvra/data/p17502/raw/run_000006/data/000000.JF06T32V02.h5'
]
}
```augustin_saugustin_shttps://gitlab.psi.ch/slic/slic/-/issues/13Logging2022-01-26T19:24:40+01:00augustin_sLogging- Replace printing with logging.
- Add a per beamline and/or per pgroup log file to enable retracing when what was done.- Replace printing with logging.
- Add a per beamline and/or per pgroup log file to enable retracing when what was done.augustin_saugustin_s