mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00
17 lines
354 B
Python
17 lines
354 B
Python
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
|
|
|
|
from slsdet import Detector, patternParameters
|
|
|
|
d = Detector()
|
|
pat = patternParameters()
|
|
|
|
#Access to members of the structure using numpy arrays
|
|
pat.patlimits = 0x0, 0xa
|
|
|
|
d.setPattern(pat)
|
|
|
|
#Load pattern from file
|
|
pat.load("/some/dir/some.pat")
|