diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index f3e544ab3..4b5d68010 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -11,7 +11,7 @@ env: jobs: build: - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/CMakeLists.txt b/CMakeLists.txt index 27559f982..49ce025eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,7 +57,7 @@ endif() # Patch libzmq to set minimum cmake version to 3.15 to avoid warnings # with newer cmake versions # Patch is applied in the FetchContent_Declare -set(SLS_LIBZMQ_VERSION "4.3.4") +set(SLS_LIBZMQ_VERSION "4.3.5") find_program(PATCH_EXECUTABLE patch) if(NOT PATCH_EXECUTABLE) @@ -139,7 +139,7 @@ else() FetchContent_Declare( libzmq URL ${CMAKE_CURRENT_SOURCE_DIR}/libs/libzmq/libzmq-${SLS_LIBZMQ_VERSION}.tar.gz - URL_HASH MD5=cc20b769ac10afa352e5ed2769bb23b3 + URL_HASH MD5=cfb80c6ad694cacc2f7c99bf44e8b686 PATCH_COMMAND ${CMAKE_COMMAND} -E chdir patch -p1 < ${CMAKE_CURRENT_SOURCE_DIR}/libs/libzmq/libzmq_cmake_version.patch UPDATE_DISCONNECTED 1 ) diff --git a/README.md b/README.md index c2640d805..f0b2e6f14 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ To use the basic building blocks, meaning sls_detector_get/put and the shared li Additionally the core requires the following dependencies: - * ZeroMQ 4.3.4 (packaged in libs) + * ZeroMQ 4.3.5 (packaged in libs) * rapidjson 1.1.0 (packaged in libs) > **Note:** Both ZeroMQ and rapidjson are bundled in libs. One does not need to pre-install them on the system. Alternatively, one can fetch ZeroMQ from GitHub by passing the cmake options ``-DSLS_FETCH_ZEROMQ_FROM_GITHUB=ON``. @@ -350,8 +350,8 @@ git submodule update --init ### Zeromq **v8.0.0+**: -zeromq (v4.3.4) is built -* by default from tar file in repo (libs/libzmq/libzmq-4.3.4.tar.gz) +zeromq (v4.3.5) is built +* by default from tar file in repo (libs/libzmq/libzmq-4.3.5.tar.gz) * or use advanced option SLS_FETCH_ZMQ_FROM_GITHUB [link]. **v7.x.x and older**: diff --git a/docs/src/dependencies.rst b/docs/src/dependencies.rst index a4e49d577..8af4508b0 100644 --- a/docs/src/dependencies.rst +++ b/docs/src/dependencies.rst @@ -23,7 +23,7 @@ the shared libraries these are needed: Additionally the core requires the following dependencies: - * ZeroMQ 4.3.4 (packaged in libs) + * ZeroMQ 4.3.5 (packaged in libs) * rapidjson 1.1.0 (packaged in libs) .. note:: diff --git a/docs/src/installation.rst b/docs/src/installation.rst index 0dfb85a36..347173cc9 100644 --- a/docs/src/installation.rst +++ b/docs/src/installation.rst @@ -425,8 +425,8 @@ is to use conda | **Zeromq** | v8.0.0+: -| zeromq (v4.3.4) is built -| * by default from tar file in repo (libs/libzmq/libzmq-4.3.4.tar.gz) +| zeromq (v4.3.5) is built +| * by default from tar file in repo (libs/libzmq/libzmq-4.3.5.tar.gz) | * or use advanced option SLS_FETCH_ZMQ_FROM_GITHUB [`link `__]. | | v7.x.x and older: diff --git a/libs/libzmq/libzmq-4.3.4.tar.gz b/libs/libzmq/libzmq-4.3.4.tar.gz deleted file mode 100644 index 537b380f1..000000000 Binary files a/libs/libzmq/libzmq-4.3.4.tar.gz and /dev/null differ diff --git a/libs/libzmq/libzmq-4.3.5.tar.gz b/libs/libzmq/libzmq-4.3.5.tar.gz new file mode 100644 index 000000000..40623d750 Binary files /dev/null and b/libs/libzmq/libzmq-4.3.5.tar.gz differ diff --git a/pyproject.toml b/pyproject.toml index dfe4e31cc..2ae1af893 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,12 @@ -[tool.scikit-build.metadata.version] +[[tool.dynamic-metadata]] provider = "scikit_build_core.metadata.regex" +field = "version" input = "VERSION" regex = '^(?P\d+(?:\.\d+)*(?:[\.\+\w]+)?)$' result = "{version}" [build-system] -requires = [ "scikit-build-core>=0.10", "pybind11", "numpy",] +requires = [ "scikit-build-core>=1.1", "pybind11", "numpy",] build-backend = "scikit_build_core.build" [project] diff --git a/python/slsdet/detector.py b/python/slsdet/detector.py index 9f1d08202..4f0e0277a 100755 --- a/python/slsdet/detector.py +++ b/python/slsdet/detector.py @@ -831,10 +831,10 @@ class Detector(CppDetectorApi): Note ---- Sets up the following for every module:\n - \t\t[Eiger] txdelay_left to (2 \* mod_index \* n_delay), \n - \t\t[Eiger] txdelay_right to ((2 \* mod_index + 1) \* n_delay) and \n - \t\t[Eiger] txdelay_frame to (2 \* num_modules \* n_delay) \n - \t\t[Jungfrau][Moench][Mythen3] txdelay_frame to (num_modules \* n_delay)\n\n + \t\t[Eiger] txdelay_left to (2 * mod_index * n_delay), \n + \t\t[Eiger] txdelay_right to ((2 * mod_index + 1) * n_delay) and \n + \t\t[Eiger] txdelay_frame to (2 * num_modules * n_delay) \n + \t\t[Jungfrau][Moench][Mythen3] txdelay_frame to (num_modules * n_delay)\n\n Please refer txdelay_left, txdelay_right and txdelay_frame for details. """ return self.getTransmissionDelay() diff --git a/python/src/detector.cpp b/python/src/detector.cpp index 6d1cc72c2..c3f8693a4 100644 --- a/python/src/detector.cpp +++ b/python/src/detector.cpp @@ -944,6 +944,8 @@ void init_det(py::module &m) { py::arg()); CppDetectorApi.def("clearRxROI", (void (Detector::*)()) & Detector::clearRxROI); + CppDetectorApi.def("isCompleteRxRoi", (bool (Detector::*)() const) & + Detector::isCompleteRxRoi); CppDetectorApi.def( "getFileFormat", (Result(Detector::*)(sls::Positions) const) &