Skip to content

Commit b8b819f

Browse files
author
Arthur Glowacki
committed
Update to translating tetramm scalers to proper names
1 parent f0509c3 commit b8b819f

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

reference/Scaler_to_PV_map.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ BeamLines:
3030
OCR3: 2iddXMAP:dxp3:OutputCountRate
3131
OCR4: 2iddXMAP:dxp4:OutputCountRate
3232
XBIC: 2idd:scaler1_cts1.D
33-
US_FM: 2iddtmm1:Current3:MeanValue_RBV
33+
US_FM:
34+
- 2iddtmm1:Current3:MeanValue_RBV
35+
- 2iddtmm1:Current3
3436
TimeNormalizedScalers:
3537
Timing: [2idd:3820:mca1.VAL, 50000000.0]
3638
Scalers:

src/io/file/mda_io.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,14 @@ void MDA_IO<T_real>::_load_extra_pvs_vector()
12601260
data_struct::Scaler_Map<T_real> s_map;
12611261
s_map.values.resize(o_map.values.rows(), o_map.values.cols());
12621262
s_map.values.setZero(o_map.values.rows(), o_map.values.cols());
1263-
s_map.name = tokens[1];
1263+
if (data_struct::Scaler_Lookup::inst()->search_pv(tokens[0] + ":" + tokens[1], label, is_time_normalized, beamline))
1264+
{
1265+
s_map.name = label;
1266+
}
1267+
else
1268+
{
1269+
s_map.name = e_pv.name;
1270+
}
12641271

12651272
if(t1idx != std::string::npos)
12661273
{

0 commit comments

Comments
 (0)