get_efd_client¶
- lsst.ts.scheduler.utils.get_efd_client(efd_name: str, mock: bool = False) Any ¶
Utility function to get an EFD client.
This method helps deal with the condition where library cannot be imported and a mock client is needed for unit testing.
- Parameters:
- Returns:
- efd_client
lsst_efd_client.EfdClient
orunittest.mock.AsyncMock
EFD client.
- efd_client
- Raises:
- RuntimeError:
If
efd_name
is not valid.