Files
slsDetectorPackage/python/CMakeLists.txt
maliakal_d 4dfcb829b3
Build on RHEL9 docker image / build (push) Successful in 4m42s
Build on RHEL8 docker image / build (push) Successful in 5m6s
Run Simulator Tests on local RHEL8 / build (push) Successful in 23m23s
Run Simulator Tests on local RHEL9 / build (push) Successful in 19m45s
1010/jf chip1 2 part3 (#1619)
* cli and test side wip

* server side upto imp

* almost done, need to pick up from last pr to get chipindex

* update activatetime also for exptime

* use chipindex and fix the cli  put

* minor

* tests pass

* binary in

* hdr mode works

* binaries in

* cannot cap activation time with 8 bit storage

* update activation time when changin exptime  only if hdr enabled

* update activation time no matter if hdr enabled or not (when changing exptime), its anyway not enabled

* jf binary in

* enable hdr only after setting activation time

* jf binary in

* fix enable by reading reg again

* swapped timeout and activation time, select bits reversed also for 1.2 chipversion

* inversion select removed in firmware

* jungfrau binary in

* minor: err message

* fix

* fixed autocomplete for synchrortron

* should now ++17 as well

* added hdr to python

* minor

* updated the help for hdr

* updated the help for python api and the pybindings minor refactor

* minor typo in pybind

* fixed pybind error
2026-11-05 16:16:40 +01:00

93 lines
2.0 KiB
CMake
Executable File

# SPDX-License-Identifier: LGPL-3.0-or-other
# Copyright (C) 2021 Contributors to the SLS Detector Package
pybind11_add_module(_slsdet
src/main.cpp
src/enums.cpp
src/detector.cpp
src/network.cpp
src/pattern.cpp
src/scan.cpp
src/current.cpp
src/hdr.cpp
src/duration.cpp
src/DurationWrapper.cpp
src/pedestal.cpp
)
target_link_libraries(_slsdet PUBLIC
slsDetectorStatic
)
set_target_properties(_slsdet PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/slsdet
)
#Copy Python code
set( PYTHON_FILES
slsdet/__init__.py
slsdet/adcs.py
slsdet/bits.py
slsdet/dacs.py
slsdet/powers.py
slsdet/decorators.py
slsdet/detector_property.py
slsdet/detector.py
slsdet/defines.py
slsdet/eiger.py
slsdet/enums.py
slsdet/errors.py
slsdet/gaincaps.py
slsdet/pattern.py
slsdet/PatternGenerator.py
slsdet/gotthard2.py
slsdet/moench.py
slsdet/proxy.py
slsdet/ctb.py
slsdet/jungfrau.py
slsdet/mythen3.py
slsdet/registers.py
slsdet/temperature.py
slsdet/lookup.py
slsdet/utils.py
)
foreach(FILE ${PYTHON_FILES})
configure_file( ${FILE}
${CMAKE_BINARY_DIR}/bin/${FILE} )
endforeach(FILE ${PYTHON_FILES})
configure_file( scripts/basic.py
${CMAKE_BINARY_DIR}/basic.py
)
configure_file( scripts/test_virtual.py
${CMAKE_BINARY_DIR}/test_virtual.py
)
configure_file(scripts/frameSynchronizerPullSocket.py
${CMAKE_BINARY_DIR}/bin/frameSynchronizerPullSocket.py COPYONLY)
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/../VERSION
${CMAKE_BINARY_DIR}/bin/slsdet/VERSION
)
if(SLS_INSTALL_PYTHONEXT)
install(TARGETS _slsdet
EXPORT "${TARGETS_EXPORT_NAME}"
LIBRARY DESTINATION slsdet
COMPONENT python
)
install(
FILES ${PYTHON_FILES}
DESTINATION slsdet
COMPONENT python
)
install(
FILES ../VERSION
DESTINATION slsdet
COMPONENT python
)
endif()