|
19 | 19 | 'AGIPD500K', |
20 | 20 | 'DSSC1M', |
21 | 21 | 'LPD1M', |
22 | | - 'LPDMini', |
23 | 22 | 'JUNGFRAU', |
24 | 23 | 'identify_multimod_detectors', |
25 | 24 | ] |
@@ -1430,8 +1429,30 @@ class DSSC1M(XtdfDetectorBase): |
1430 | 1429 | module_shape = (128, 512) |
1431 | 1430 |
|
1432 | 1431 |
|
1433 | | -class LPDBase: |
1434 | | - """Base LPD class supporting parallel gain mode.""" |
| 1432 | +@multimod_detectors |
| 1433 | +class LPD1M(XtdfDetectorBase): |
| 1434 | + """An interface to LPD-1M data. |
| 1435 | +
|
| 1436 | + Parameters |
| 1437 | + ---------- |
| 1438 | + data: DataCollection |
| 1439 | + A data collection, e.g. from :func:`.RunDirectory`. |
| 1440 | + modules: set of ints, optional |
| 1441 | + Detector module numbers to use. By default, all available modules |
| 1442 | + are used. |
| 1443 | + detector_name: str, optional |
| 1444 | + Name of a detector, e.g. 'FXE_DET_LPD1M-1'. This is only needed |
| 1445 | + if the dataset includes more than one LPD detector. |
| 1446 | + min_modules: int |
| 1447 | + Include trains where at least n modules have data. Default is 1. |
| 1448 | + parallel_gain: bool |
| 1449 | + Set to True to read this data as parallel gain data, where high, medium |
| 1450 | + and low gain data are stored sequentially within each train. This will |
| 1451 | + repeat the pulse & cell IDs from the first 1/3 of each train, and add gain |
| 1452 | + stage labels from 0 (high-gain) to 2 (low-gain). |
| 1453 | + """ |
| 1454 | + _source_re = re.compile(r'(?P<detname>.+_LPD1M.*)/DET/(?P<modno>\d+)CH') |
| 1455 | + module_shape = (256, 256) |
1435 | 1456 |
|
1436 | 1457 | def __init__(self, data: DataCollection, detector_name=None, modules=None, |
1437 | 1458 | *, min_modules=1, parallel_gain=False): |
@@ -1515,56 +1536,6 @@ def _make_image_index(self, tids, inner_ids, inner_name='pulse'): |
1515 | 1536 | ) |
1516 | 1537 |
|
1517 | 1538 |
|
1518 | | -@multimod_detectors |
1519 | | -class LPD1M(LPDBase, XtdfDetectorBase): |
1520 | | - """An interface to LPD-1M data. |
1521 | | -
|
1522 | | - Parameters |
1523 | | - ---------- |
1524 | | - data: DataCollection |
1525 | | - A data collection, e.g. from :func:`.RunDirectory`. |
1526 | | - modules: set of ints, optional |
1527 | | - Detector module numbers to use. By default, all available modules |
1528 | | - are used. |
1529 | | - detector_name: str, optional |
1530 | | - Name of a detector, e.g. 'FXE_DET_LPD1M-1'. This is only needed |
1531 | | - if the dataset includes more than one LPD detector. |
1532 | | - min_modules: int |
1533 | | - Include trains where at least n modules have data. Default is 1. |
1534 | | - parallel_gain: bool |
1535 | | - Set to True to read this data as parallel gain data, where high, medium |
1536 | | - and low gain data are stored sequentially within each train. This will |
1537 | | - repeat the pulse & cell IDs from the first 1/3 of each train, and add gain |
1538 | | - stage labels from 0 (high-gain) to 2 (low-gain). |
1539 | | - """ |
1540 | | - _source_re = re.compile(r'(?P<detname>.+_LPD1M.*)/DET/(?P<modno>\d+)CH') |
1541 | | - module_shape = (256, 256) |
1542 | | - |
1543 | | - |
1544 | | -@multimod_detectors |
1545 | | -class LPDMini(LPDBase, XtdfDetectorBase): |
1546 | | - """An interface to LPD-Mini data. |
1547 | | -
|
1548 | | - Parameters |
1549 | | - ---------- |
1550 | | - data: DataCollection |
1551 | | - A data collection, e.g. from :func:`.RunDirectory`. |
1552 | | - modules: set of ints, optional |
1553 | | - Detector module numbers to use. By default, all available modules |
1554 | | - are used. |
1555 | | - detector_name: str, optional |
1556 | | - Name of a detector, e.g. 'FXE_DET_LPD_MINI'. This is only needed |
1557 | | - if the dataset includes more than one LPD detector. |
1558 | | - parallel_gain: bool |
1559 | | - Set to True to read this data as parallel gain data, where high, medium |
1560 | | - and low gain data are stored sequentially within each train. This will |
1561 | | - repeat the pulse & cell IDs from the first 1/3 of each train, and add gain |
1562 | | - stage labels from 0 (high-gain) to 2 (low-gain). |
1563 | | - """ |
1564 | | - _source_re = re.compile(r'(?P<detname>.+_LPD_MINI.*)/DET/(?P<modno>\d+)CH') |
1565 | | - module_shape = (256, 256) |
1566 | | - |
1567 | | - |
1568 | 1539 | @multimod_detectors |
1569 | 1540 | class JUNGFRAU(MultimodDetectorBase): |
1570 | 1541 | """An interface to JUNGFRAU data. |
|
0 commit comments