rfwtools.mya.get_pv_value
- rfwtools.mya.get_pv_value(PV, datetime, deployment='ops')[source]
Method for performing a point-type myquery myaweb request. Returns the only the PV value.
- Parameters:
PV (
str) – The EPICS channel to look updatetime (
datetime) – A datetime object representing the point in time for which the query should be performeddeployment (
str) – The name of a valid MYA deployment (defaults to ‘ops’, other useful ones are ‘hist’, and ‘dev’)
- Returns:
The archived value of PV at datetime according to MYA deployment deployment
- Return type:
str
- Raises:
ValueError – If the myquery point service returns an HTTP error response.