rfwtools.mya

This module contains functions for interacting with the MYA EPICS archiver.

These methods require access to an internal JLab network (onsite, VPN, etc.).

Basic Usage Example:

from rfwtools.mya import get_pv_value
from datetime import datetime
import sys

try:
    val = get_pv_value('R1M1GSET', datetime(year=2019, month=11, day=13, hour=11))
except ValueError as ex:
    print(f"Error retrieving archived value. {ex}", file=sys.stderr)

Functions

get_json(url)

Simple function for making an HTTP GET request that should return a valid JSON content-type.

get_pv_value(PV, datetime[, deployment])

Method for performing a point-type myquery myaweb request.