config.py 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. """
  2. This is the configuration File for KCG - Kapture Control Gui
  3. For possible config settings check this file or the documentation
  4. """
  5. # ------------[ Language of the GUI ]------------------
  6. # NOTE: This value will be overwritten when the language is changed in the gui-settings
  7. # possible languages:
  8. # en_GB - English
  9. # de_DE - German
  10. language ="en_GB"
  11. # ------------[ Default Data Save Location ]-----------
  12. # default_save_location: use "pwd" for current working
  13. # directory KCG will always save in a subdirectory to
  14. # this given path and save files in this directory
  15. default_save_location = "pwd"
  16. # default_subdirectory_name_format: this is the
  17. # naming scheme for the subdirectory in which the
  18. # files are saved. Format of this string:
  19. # "{tag1}text{tag2}text" etc.
  20. # possible tags:
  21. # {dateG} will produce e.g. 04.01.2015
  22. # {dateGd} will produce e.g. 04_01_2015
  23. # {dateA} will pdoduce e.g. 01-04-2015
  24. # {times} will produce e.g. 14_04
  25. # {timel} will produce e.g. 14_04_12
  26. # {d} the Day in 2 digit format
  27. # {m} the Month in 2 digit format
  28. # {y} the Year in 4 digit Format
  29. # {H} the Hour in 2 digit format
  30. # {M} the minute in 2 digit format
  31. # {S} the seconds in 2 digit format
  32. # {timestamp} unix timestamp without msec
  33. # {user} the current logged in user
  34. # {sessionname} Ask for session name at startup
  35. # {ask} always ask for a foldername
  36. #default_subdirectory_name = "{user}_{dateGd}-{timel}_{sessionname}"
  37. # default_subdirectory_name = "{sessionname}"
  38. default_subdirectory_name = 't'
  39. # reask on cancel in dialog or use {user}_{dateGd}-{timel} as default when cancel is pressed?
  40. force_ask = False
  41. # Show advanced table view per default? (boolean value)
  42. show_advanced_control = False
  43. # ------------[ EPICS Log PVs ]------------
  44. # These are PVs that will be possible to insert into log files
  45. # This variable is to be a list consisting of touples of two entries,
  46. # the first ist the Text that describes the value and the second is the EPICS PV that
  47. # holds that value
  48. epics_log_entry_pvs = [
  49. ("Beam Energy (GeV)", "A:SR:BeamInfo:01:Energy"),
  50. ("Beam Current (mA)", "A:SR:BeamInfo:01:Current"),
  51. ("Beam Lifetime (s)", "A:SR:BeamInfo:01:Lifetime"),
  52. ("Beam Lifetime (H:M:S)", "A:SR:BeamInfo:01:Lifetime:String"),
  53. ("Injection Rate (mA/s)", "A:SR:BeamInfo:01:InjRate"),
  54. ("Injection Rate (mA/5s)", "A:SR:BeamInfo:01:InjRate:5s"),
  55. ("Fill Number", "A:SR:OperationStatus:01:FillNumber")
  56. ]
  57. # This pv is used to determine if epics pvs are accessible
  58. epics_test_pv = "A:SR:BeamInfo:01:Current"
  59. # Path to your epics base installation
  60. epics_base_path = "/opt/epics/base/"
  61. # -----------[ Default Measurement Log Entries ]------------
  62. # List of Entries that are default to save in Log
  63. # Possible Values are:
  64. # "Number of Orbits"
  65. # "Number of Skipped Orbits"
  66. # "Number of Acquisitions"
  67. # "Time between Acquisitions"
  68. # "Pilot Bunch Simulator"
  69. # "Header saved"
  70. # "T/H Delay"
  71. # "ADC 1 Delay"
  72. # "ADC 2 Delay"
  73. # "ADC 3 Delay"
  74. # "ADC 4 Delay"
  75. # All of the description text entries in epics_log_entry_pvs, see above
  76. # NOTE: These entries have to match the aforementioned strings exactly
  77. default_log_entries = [
  78. "Number of Orbits",
  79. "Number of Skipped Orbits",
  80. "Number of Acquisitions",
  81. "Time between Acquisitions",
  82. "Fill Number",
  83. "Beam Energy (GeV)",
  84. "Beam Current (mA)"
  85. ]
  86. # ------------[ Machine Settings ]-----------
  87. # Bunches per turn of accelerator (integer value)
  88. bunches_per_turn = 184
  89. # Save headerinformation in file (bool value)
  90. save_header = True
  91. # Revolution time (double value)
  92. tRev =3.6825476109875985e-07
  93. # -------------------------------------------
  94. # ------------[ Look and Feel ]--------------
  95. # -------------------------------------------
  96. # ------------[ Icons ]----------------------
  97. # these are locations for icons used throughout the gui
  98. newPlotLiveIcon= "icons/graph.svg"
  99. newPlotDataIcon= "icons/folder.svg"
  100. timingIcon = "icons/clock.svg"
  101. singleReadIcon = "icons/project.svg"
  102. acquireSettingsIcon = "icons/wrench.svg"
  103. startIcon = "icons/media-play-black.svg"
  104. stopIcon = "icons/media-stop.svg"
  105. logIcon = "icons/clipboard.svg"
  106. logCommentIcon = "icons/clipboard_comm.svg"
  107. guiIcon = "icons/KCG_Logo_r.png"
  108. # -----------[ End Icons ]-------------------
  109. # Style:
  110. # possible values:
  111. # Whatever you want (means default Qt Style)
  112. # blue - Blue style, has some bugs
  113. # style = 'blue'
  114. style = 'default'
  115. # -------------------------------------------
  116. # ------------[ End Look and Feel ]--------------
  117. # -------------------------------------------