CpEfdClient¶
- class lsst.cp.pipe.CpEfdClient(efdInstance='usdf_efd', log=None)¶
Bases:
object
An EFD client to retrieve calibration results.
- Parameters:
- efdInstance
str
, optional EFD instance name to connect to.
- log
logging.Logger
, optional Log to write messages to.
- efdInstance
Methods Summary
getEfdMonochromatorData
([dataSeries, ...])Retrieve Electrometer data from the EFD.
getSchemaDtype
(topicName)Get datatypes for a topic.
parseMonochromatorStatus
(data, dateStr)Determine monochromator status for a specific date.
query
(query)Execute an EFD query.
selectTimeSeries
(topicName[, fields, ...])Query a topic for a time series.
Methods Documentation
- getEfdMonochromatorData(dataSeries=None, dateMin=None, dateMax=None)¶
Retrieve Electrometer data from the EFD.
- Parameters:
- Returns:
- results
pandas.DataFrame
The table of results returned from the EFD.
- results
- getSchemaDtype(topicName)¶
Get datatypes for a topic.
- parseMonochromatorStatus(data, dateStr)¶
Determine monochromator status for a specific date.
- Parameters:
- data
astropy.table.Table
The dataframe of monochromator results from the EFD.
- dateStr
str
The date to look up in the status for.
- data
- Returns:
- query(query)¶
Execute an EFD query.
- selectTimeSeries(topicName, fields=[], startDate=None, endDate=None)¶
Query a topic for a time series.
- Parameters:
- topicName
str
Database “topic” to query.
- fields
list
, optional List of fields to return. If empty, all fields are returned.
- startDate
astropy.time.Time
, optional Start date (in UTC) to limit the results returned.
- endDate
astropy.time.Time
, optional End date (in UTC) to limit the results returned.
- topicName
- Returns:
- table
astropy.table.Table
A table containing the fields requested, with each row corresponding to one date (available in the
"time"
column).
- table