Skip to content
Snippets Groups Projects

Safe snap fix for enumerated pvs, model daq shmem buffer size fix

2 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
27 self.mbmio_val_to_num = {'ZRST':0, 'ONST':1, 'TWST':2, 'THST':3, 'FRST':4, 'FVST':5, 'SXST':6,
28 'SVST':7, 'EIST':8, 'NIST':9, 'TEST':10, 'ELST':11, 'TVST':12, 'TTST':13,
29 'FTST':14, 'FFST':15}
30
31 with open(db_file_path) as file:
32 lines = file.readlines()
33 lines = [line.strip() for line in lines]
34
35 last_chan_name = ""
36 in_bracket = False
37 line_num = 0
38
39 for line in lines:
40 line_num += 1
41 if line.startswith("grecord("):
42 type = line.split(',')[0][8:]
  • 108 new_snap_file_lines += line
    109 continue
    110
    111 if inBurtHeader == True:
    112 new_snap_file_lines += line
    113 continue
    114
    115 split_line = line.split()
    116 chan_name = split_line[0]
    117 value = split_line[2]
    118 if db.is_enum(chan_name):
    119 #print(f"Found enum : {split_line[0]}, value : '{split_line[2]}', ", end='')
    120
    121 if db.check_enum_value(chan_name, value) == False:
    122 #print(f"Enum check Failed! possible {db.get_all_enum_values(chan_name)}", end="")
    123 if float(value) >= 0 and float(value) < len(db.get_all_enum_values(chan_name)):
  • Ezekiel Dohmen added 1 commit

    added 1 commit

    • ba6d43b4 - Cleanup, check float parse error

    Compare with previous version

  • Ezekiel Dohmen mentioned in commit 5985ec4f

    mentioned in commit 5985ec4f

  • Please register or sign in to reply
    Loading