STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
backend.config Namespace Reference

Functions

str find_elodin_db ()

Variables

 ELODIN_DIR
 CACHE_DIR
 RUN_RE = re.compile(r"^daq_(?P<sim>sim_)?(?P<date>\d{8})_(?P<time>\d{6})$")
 DESCRIPTIONS_PATH
 _video = os.environ.get("WEBVIEWER_VIDEO_DIR", "").strip()
Path VIDEO_DIR = Path(_video).expanduser() if _video else None
 VIDEO_TZ = os.environ.get("WEBVIEWER_VIDEO_TZ", "America/Los_Angeles")
 MAX_DOWNLOAD_BYTES_PER_SEC = int(os.environ.get("WEBVIEWER_MAX_DOWNLOAD_BPS", "0"))

Detailed Description

Paths, binary discovery, and run-name conventions for the webviewer backend.

Function Documentation

◆ find_elodin_db()

str backend.config.find_elodin_db ( )
Locate the elodin-db binary the same way export_elodin_db.sh does.

Definition at line 56 of file config.py.

Variable Documentation

◆ _video

backend.config._video = os.environ.get("WEBVIEWER_VIDEO_DIR", "").strip()
protected

Definition at line 41 of file config.py.

◆ CACHE_DIR

backend.config.CACHE_DIR
Initial value:
1= Path(
2 os.environ.get(
3 "WEBVIEWER_CACHE_DIR", str(Path(__file__).resolve().parent.parent / ".cache")
4 )
5).expanduser()

Definition at line 17 of file config.py.

◆ DESCRIPTIONS_PATH

backend.config.DESCRIPTIONS_PATH
Initial value:
1= Path(
2 os.environ.get("WEBVIEWER_DESCRIPTIONS_PATH", str(ELODIN_DIR / "run_descriptions.json"))
3).expanduser()

Definition at line 35 of file config.py.

◆ ELODIN_DIR

backend.config.ELODIN_DIR
Initial value:
1= Path(
2 os.environ.get("ELODIN_DB_DIR", str(Path.home() / ".local/share/elodin"))
3).expanduser()

Definition at line 11 of file config.py.

◆ MAX_DOWNLOAD_BYTES_PER_SEC

backend.config.MAX_DOWNLOAD_BYTES_PER_SEC = int(os.environ.get("WEBVIEWER_MAX_DOWNLOAD_BPS", "0"))

Definition at line 53 of file config.py.

◆ RUN_RE

backend.config.RUN_RE = re.compile(r"^daq_(?P<sim>sim_)?(?P<date>\d{8})_(?P<time>\d{6})$")

Definition at line 28 of file config.py.

◆ VIDEO_DIR

Path backend.config.VIDEO_DIR = Path(_video).expanduser() if _video else None

Definition at line 42 of file config.py.

◆ VIDEO_TZ

backend.config.VIDEO_TZ = os.environ.get("WEBVIEWER_VIDEO_TZ", "America/Los_Angeles")

Definition at line 46 of file config.py.