Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The purpose of environment store (EnvStore) is to keep records of all transitions so that they can be retrieved later using the timestamp of an event. There are three types of EnvStore:

  • epics
  • scans
  • step


EnvStore Envstore epics and scan scans are created by default when "epics" or "scan" keyword is found in the configs. The variables and values are stored as a dictionary in this format:

...

This is done by first locating alg and segment_id that store this variable then matching dgram(s) in the EnvStore is retrieved by searching with timestamp. We then get the value from dgram.epics.alg[segment_id].var_name.


EnvStore step is created when "config" is found as an attribute of a detector in config(s) by default and has detector names with 'config' attribute stored in cfgscan_detnames property (e.g. configs[0].tmoopal[0].config.user.black_level . The store will have the detector name as its env_name. We can retrieve the value and step event by→ 'tmoopal' is stored cfgscan_detnames). 

sdet = run.Detector('tmoopal')

...