ImageNameServiceClient

class lsst.ts.utils.ImageNameServiceClient(url: str, csc_index: int, source: str)

Bases: object

Client for the Image Name Service.

Parameters:
urlstr

The image service host. Must be handled by CSC configuration.

csc_indexint

The index of the CSC, needed for some CSCs which have multiple instances running.

sourcestr

The two letter ID that the service uses for CSC verification. * Electrometer: EM, * FiberSpectrograph: FS, * ComCam: CM, * GenericCamera: GC, * MainCamera: MC, * AuxTel: AT, * TestStand: TS

Attributes:
sourcestr

The ID used by the service for CSC verification.

urlstr

The URL of the image service.

csc_indexstr

The index of the CSC, used to handle multi instance CSCs.

loglogging.Logger

The log for the object.

Methods Summary

get_next_obs_id(num_images)

Get the observing ID(s).

Methods Documentation

async get_next_obs_id(num_images: int) tuple[list[int], list[str]]

Get the observing ID(s).

Parameters:
num_imagesint

The number of images to get.

Returns:
image_sequence_arraylist of int

The sequence numbers (e.g. 2).

valueslist of str

The returned IDs (e.g [‘EM1_O_20221208_000008’])

Raises:
ValueError

If num_images is less than 1.