padre_meddea.util.pixels#
Provides tools to deal with pixels
Functions
|
Given pixel id infomration, return the asic numbers and channel numbers |
|
Given an asic number and a pixel number return the pixelid |
|
|
|
Given unparsed pixel ids, return strings for each |
|
Given a pixel number, return a standardized string. |
Classes
|
A list of pixels |
- class padre_meddea.util.pixels.PixelList(*args, **kwargs)[source]#
A list of pixels
- Parameters:
- Raises:
Examples
>>> from padre_meddea.util import PixelList >>> px_list = PixelList(asics=[0, 0], pixels=[0, 1]) # two pixels both from asic 0 >>> px_list = PixelList(asics=[0, 1], pixels=[8, 9]) # two small pixels, one from asic 0 and another from asic 1 >>> px_list = PixelList(pixelids=[51738, 51720]) # using pixel ids >>> large_pixs = PixelList().all_large() # every large pixel >>> small_pixs = PixelList().all_small() # every large pixel >>> large_pixs_det1 = PixelList().all_large(asics=[1]) # all large pixels from asic 1
- padre_meddea.util.pixels.get_pixelid(asic_num: int, pixel_num: int) int[source]#
Given an asic number and a pixel number return the pixelid
- padre_meddea.util.pixels.parse_pixelids(ids)[source]#
Given pixel id infomration, return the asic numbers and channel numbers