merlin.composite¶
-
merlin.composite.
chips_and_specs
(point, acquired, keyed_specs, chips_fn)[source]¶ Returns chips and specs for a dict of specs
Parameters: - point – (tuple): (x, y) which is within the extents of a chip
- acquired – (str): ISO8601 date range
- keyed_specs – (dict): {key: [spec1, spec2,], key2: [spec3, spec4]}
- chips_fn (function) – Accepts x, y, acquired, ubids. Returns chips.
Returns: {key: (chips, specs), key2: (chips, specs), ...}
Return type: dict
-
merlin.composite.
locate
(point, spec)[source]¶ Returns chip_x, chip_y and all chip locations given a point and spec
Parameters: - point (sequence) – sequence of x,y
- spec (dict) – chip spec
Returns: (chip_x, chip_y, chip_locations), where chip_locations is a two dimensional chip-shaped numpy array of (x,y)
Return type: tuple