From a45dcfee2e1bcdee75cd0693e23ee04228ed660b Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Sun, 15 Nov 2026 16:18:09 +0100 Subject: [PATCH] SPDX: compound expressions for adapted files, LicenseRef-HDF5, tags on untagged files - Files adapted from other projects carry both licences: StrongPixelSet.cpp, SpotExtractorGPU.cu and the four GEMMI-derived structure_refinement files "GPL-3.0-only AND MPL-2.0"; FFBIDXIndexerCPU.cpp, LMSolver.{h,cpp} and xds-plugin/plugin.* "GPL-3.0-only AND BSD-3-Clause"; fpga/hls/parallel_stream.h "CERN-OHL-S-2.0 AND Apache-2.0"; fpga/hls/icmp.cpp and ip_header_checksum.h (HPCN UAM, with PSI modifications) "CERN-OHL-S-2.0 AND BSD-3-Clause". - writer/H5FDpoison_sec2.{c,h} and tests/enospc_shim.c: "OR HDF5" is not an SPDX id; now "OR LicenseRef-HDF5", with the text named (licenses/hdf5.txt). The poison driver wraps the stock sec2 driver rather than copying it (only the H5FD_class_t initialiser layout matches H5FDsec2.c), so the files stay dual-licensed (OR), not derived (AND). - 151 first-party files without a tag (CMake, shell, Python, frontend, docs JS, a few C++) get one: GPL-3.0-only, CERN-OHL-S-2.0 for fpga/, fpga/hls/ and fpga/scripts/, with the copyright line of the neighbouring files and the year the file was added. Generated and vendored code is not touched; fpga/pcie_driver/postinstall.sh and preuninstall.sh are left untagged, as they say they are taken from a blog post. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01UqXYdJDrM65gxsCn2PrbfK --- CMakeLists.txt | 3 +++ acquisition_device/CMakeLists.txt | 3 +++ broker/CMakeLists.txt | 3 +++ common/CMakeLists.txt | 3 +++ common/CorrelationCoefficient.cpp | 3 +++ common/GitInfoStamp.cmake | 3 +++ common/ROIDefinition.cpp | 3 +++ common/ROIDefinition.h | 3 +++ compression/CMakeLists.txt | 3 +++ detector_control/CMakeLists.txt | 3 +++ docker/build_images.sh | 2 ++ docker/build_in_rocky9.sh | 2 ++ docker/common/build-dbus.sh | 2 ++ docker/common/build-openssl.sh | 2 ++ docker/common/build-qt.sh | 2 ++ docker/common/install-cmake.sh | 2 ++ docker/common/install-eigen.sh | 2 ++ docker/common/install-ninja.sh | 2 ++ docker/ubuntu2404/aarch64-sbsa.cmake | 3 +++ docs/_ext/jfjoch_downloads.py | 3 +++ docs/_static/jfjoch_downloads.js | 3 +++ docs/conf.py | 3 +++ docs/images/rugnux_pipeline_fig.py | 2 ++ docs/landing/landing.js | 3 +++ fpga/CMakeLists.txt | 3 +++ fpga/hls/CMakeLists.txt | 3 +++ fpga/hls/icmp.cpp | 4 ++++ fpga/hls/ip_header_checksum.h | 4 ++++ fpga/hls/parallel_stream.h | 2 +- fpga/hls_simulation/CMakeLists.txt | 3 +++ fpga/host_library/CMakeLists.txt | 3 +++ fpga/scripts/check_hls.sh | 2 ++ fpga/scripts/print_hls_result.sh | 2 ++ fpga/scripts/setup.sh | 2 ++ frame_serialize/CMakeLists.txt | 3 +++ frontend/openapi-ts.config.ts | 5 +++++ frontend/src/App.tsx | 5 +++++ frontend/src/auth.ts | 5 +++++ frontend/src/components/AzIntSettings.tsx | 5 +++++ frontend/src/components/BraggIntegrationSettings.tsx | 5 +++++ frontend/src/components/ButtonWithSnackbar.tsx | 5 +++++ frontend/src/components/Calibration.tsx | 5 +++++ frontend/src/components/DarkMaskSettings.tsx | 5 +++++ frontend/src/components/DataCollection.tsx | 5 +++++ frontend/src/components/DataProcessingPlot.tsx | 5 +++++ frontend/src/components/DataProcessingPlots.tsx | 5 +++++ frontend/src/components/DataProcessingSettings.tsx | 5 +++++ frontend/src/components/DetectorSelection.tsx | 5 +++++ frontend/src/components/DetectorSettings.tsx | 5 +++++ frontend/src/components/DetectorStatus.tsx | 5 +++++ frontend/src/components/EmptyState.tsx | 5 +++++ frontend/src/components/ErrorMessage.tsx | 5 +++++ frontend/src/components/FileWriterSettings.tsx | 5 +++++ frontend/src/components/FpgaStatus.tsx | 5 +++++ frontend/src/components/ImageFormatSettings.tsx | 5 +++++ frontend/src/components/IndexingSettings.tsx | 5 +++++ frontend/src/components/InstrumentMetadata.tsx | 5 +++++ frontend/src/components/MaskVisualization.tsx | 5 +++++ frontend/src/components/MeasurementStatistics.tsx | 5 +++++ frontend/src/components/NumberTextField.tsx | 5 +++++ frontend/src/components/PixelMask.tsx | 5 +++++ frontend/src/components/PreviewImage.tsx | 5 +++++ frontend/src/components/ROI.tsx | 5 +++++ frontend/src/components/RugnuxCollectionPlots.tsx | 5 +++++ frontend/src/components/RugnuxHero.tsx | 5 +++++ frontend/src/components/RugnuxImage.tsx | 5 +++++ frontend/src/components/RugnuxPage.tsx | 5 +++++ frontend/src/components/RugnuxParts.tsx | 5 +++++ frontend/src/components/RugnuxProgress.tsx | 5 +++++ frontend/src/components/RugnuxSettings.tsx | 5 +++++ frontend/src/components/RugnuxShellPlots.tsx | 5 +++++ frontend/src/components/RugnuxStatus.tsx | 5 +++++ frontend/src/components/RugnuxStills.tsx | 5 +++++ frontend/src/components/RugnuxStructureViewer.tsx | 5 +++++ frontend/src/components/RugnuxTimeline.tsx | 5 +++++ frontend/src/components/RugnuxTriage.tsx | 5 +++++ frontend/src/components/SettingsPanel.tsx | 5 +++++ frontend/src/components/StatusBar.tsx | 5 +++++ frontend/src/components/TiffImageViewer.tsx | 5 +++++ frontend/src/components/ZeroMQPreview.tsx | 5 +++++ frontend/src/components/structure/MolstarCanvas.tsx | 5 +++++ frontend/src/components/structure/cootControls.ts | 5 +++++ frontend/src/components/structure/cootTrackball.ts | 5 +++++ frontend/src/components/structure/createPlugin.ts | 5 +++++ frontend/src/components/structure/densityCrop.ts | 5 +++++ frontend/src/components/structure/fitCamera.ts | 5 +++++ frontend/src/components/structure/loadBlobs.ts | 5 +++++ frontend/src/components/structure/loadMaps.ts | 5 +++++ frontend/src/components/structure/loadModel.ts | 5 +++++ frontend/src/components/structure/peakView.ts | 5 +++++ frontend/src/components/structure/reveal.ts | 5 +++++ frontend/src/components/tiffDecode.ts | 5 +++++ frontend/src/components/useUpload.ts | 5 +++++ frontend/src/index.tsx | 5 +++++ frontend/src/livePalette.ts | 5 +++++ frontend/src/theme.ts | 5 +++++ frontend/src/version.ts | 5 +++++ frontend/vite-env.d.ts | 5 +++++ frontend/vite.config.ts | 5 +++++ gen_python_client.sh | 2 ++ gitea_create_release.py | 2 ++ gitea_upload_file.py | 2 ++ image_analysis/CMakeLists.txt | 3 +++ image_analysis/azint/CMakeLists.txt | 3 +++ image_analysis/bragg_integration/CMakeLists.txt | 3 +++ image_analysis/bragg_prediction/CMakeLists.txt | 3 +++ image_analysis/geom_refinement/CMakeLists.txt | 2 ++ image_analysis/geom_refinement/LMSolver.cpp | 2 +- image_analysis/geom_refinement/LMSolver.h | 2 +- image_analysis/image_preprocessing/CMakeLists.txt | 3 +++ image_analysis/indexing/CMakeLists.txt | 3 +++ image_analysis/indexing/FFBIDXIndexerCPU.cpp | 2 +- image_analysis/lattice_search/CMakeLists.txt | 3 +++ image_analysis/roi/CMakeLists.txt | 3 +++ image_analysis/scale_merge/CMakeLists.txt | 3 +++ image_analysis/spot_finding/CMakeLists.txt | 3 +++ image_analysis/spot_finding/SpotExtractorGPU.cu | 2 +- image_analysis/spot_finding/StrongPixelSet.cpp | 2 +- image_analysis/structure_refinement/CMakeLists.txt | 3 +++ image_analysis/structure_refinement/ModelDensityMetal.metal | 2 +- image_analysis/structure_refinement/ModelMaskGPU.cu | 2 +- image_analysis/structure_refinement/ModelScaling.cpp | 2 +- .../structure_refinement/ModelStructureFactorsGPU.cpp | 2 +- image_puller/CMakeLists.txt | 3 +++ image_pusher/CMakeLists.txt | 3 +++ jungfrau/CMakeLists.txt | 3 +++ licenses/COLLECT.sh | 2 ++ make_doc.sh | 2 ++ preview/CMakeLists.txt | 3 +++ reader/CMakeLists.txt | 3 +++ receiver/CMakeLists.txt | 3 +++ tests/CMakeLists.txt | 3 +++ tests/FPGAPTPTest.cpp | 3 +++ tests/SearchSpaceGroupTest.cpp | 3 +++ tests/enospc_shim.c | 5 +++-- tests/nxmx_geometry_dials_test.py | 2 ++ tests/test_data/jfjoch_broker_test.py | 3 +++ tools/CMakeLists.txt | 2 ++ tools/battery/battery.py | 2 ++ tools/battery/depdata_check.py | 2 ++ tools/battery/doc_check.py | 2 ++ tools/battery/inputs.py | 3 +++ tools/battery/model_check.py | 2 ++ tools/battery/nullmodel.py | 3 +++ tools/battery/paper_plots.py | 2 ++ tools/battery/refine_parity.py | 2 ++ tools/battery/render.py | 3 +++ tools/battery/report.py | 3 +++ tools/battery/results/timing_platforms/timing_table.py | 2 ++ tools/battery/rugnux_anomalous.py | 2 ++ tools/battery/score.py | 3 +++ tools/battery/sgequiv.py | 3 +++ tools/battery/shelx_check.py | 2 ++ tools/battery/still/float32_to_int16.py | 3 +++ tools/battery/still/rugnux_stills_ab.py | 2 ++ tools/battery/still_battery.py | 2 ++ tools/battery/symmetry_evidence.py | 2 ++ tools/battery/test_score.py | 3 +++ tools/battery/timing.py | 3 +++ tools/notarize_macos.sh | 2 ++ update_version.sh | 2 ++ viewer/jfjoch_viewer.cpp | 3 +++ writer/CMakeLists.txt | 3 +++ writer/H5FDpoison_sec2.c | 5 +++-- writer/H5FDpoison_sec2.h | 5 +++-- xds-plugin/CMakeLists.txt | 3 +++ xds-plugin/plugin.cpp | 2 +- xds-plugin/plugin.h | 2 +- 168 files changed, 576 insertions(+), 18 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ffbc0828d..b17e90199 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + CMAKE_MINIMUM_REQUIRED(VERSION 3.26) # The VERSION file is the single source of truth for the version, and JFJOCH_VERSION carries it diff --git a/acquisition_device/CMakeLists.txt b/acquisition_device/CMakeLists.txt index 020a8f684..f9b4d4241 100644 --- a/acquisition_device/CMakeLists.txt +++ b/acquisition_device/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochAcquisitionDevice STATIC AcquisitionDevice.cpp AcquisitionDevice.h AcquisitionCounters.cpp AcquisitionCounters.h diff --git a/broker/CMakeLists.txt b/broker/CMakeLists.txt index ef27ff36c..45745fb89 100644 --- a/broker/CMakeLists.txt +++ b/broker/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + # OpenAPI model AUX_SOURCE_DIRECTORY(gen/model MODEL_SOURCES) ADD_LIBRARY(JFJochAPI STATIC ${MODEL_SOURCES}) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index f9e2c71fa..97d641f1a 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + # git header # the commit's SHA1, and whether the building workspace was dirty or not diff --git a/common/CorrelationCoefficient.cpp b/common/CorrelationCoefficient.cpp index 7c21dbb26..62bd3df02 100644 --- a/common/CorrelationCoefficient.cpp +++ b/common/CorrelationCoefficient.cpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +// SPDX-License-Identifier: GPL-3.0-only + // // Created by leonarski_f on 18.05.2026. // diff --git a/common/GitInfoStamp.cmake b/common/GitInfoStamp.cmake index 148993a98..fdd7395c1 100644 --- a/common/GitInfoStamp.cmake +++ b/common/GitInfoStamp.cmake @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + # Stamps GitInfo.cpp with the SHA of HEAD as it is NOW. Run with `cmake -P` on every build (see the # JFJochGitInfo target in CMakeLists.txt here), so the hash a binary reports is the commit it was # built from, not the one the tree held when it was last configured - a configure-time stamp once diff --git a/common/ROIDefinition.cpp b/common/ROIDefinition.cpp index 2e00abb69..7149bf53d 100644 --- a/common/ROIDefinition.cpp +++ b/common/ROIDefinition.cpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute +// SPDX-License-Identifier: GPL-3.0-only + // Copyright (2019-2024) Paul Scherrer Institute #include "ROIDefinition.h" diff --git a/common/ROIDefinition.h b/common/ROIDefinition.h index 0c197de05..53aa53897 100644 --- a/common/ROIDefinition.h +++ b/common/ROIDefinition.h @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute +// SPDX-License-Identifier: GPL-3.0-only + // Copyright (2019-2024) Paul Scherrer Institute #pragma once diff --git a/compression/CMakeLists.txt b/compression/CMakeLists.txt index 91ca775f0..a1d967ff5 100644 --- a/compression/CMakeLists.txt +++ b/compression/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(Compression STATIC lz4/lz4.c lz4/lz4.h diff --git a/detector_control/CMakeLists.txt b/detector_control/CMakeLists.txt index 1354cbb71..f686189b8 100644 --- a/detector_control/CMakeLists.txt +++ b/detector_control/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochDetector STATIC SLSDetectorWrapper.cpp SLSDetectorWrapper.h DectrisSimplonClient.cpp DectrisSimplonClient.h diff --git a/docker/build_images.sh b/docker/build_images.sh index d823bb75e..97a6bfe39 100755 --- a/docker/build_images.sh +++ b/docker/build_images.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only # Build (and optionally push) the jungfraujoch build-environment images, in parallel. # # Each docker//Dockerfile is a *self-contained build environment* (toolchain, static Qt, diff --git a/docker/build_in_rocky9.sh b/docker/build_in_rocky9.sh index 6f02a7a9d..698affaac 100755 --- a/docker/build_in_rocky9.sh +++ b/docker/build_in_rocky9.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only # Manually build the viewer inside one of the build-environment images and inspect its runtime .so # deps -- the quick way to confirm the static-libdbus + glib-off changes actually dropped the # dbus/systemd/glib/selinux tail. Defaults to the rocky9 image built by build_images.sh. diff --git a/docker/common/build-dbus.sh b/docker/common/build-dbus.sh index 481e52609..a4b989228 100755 --- a/docker/common/build-dbus.sh +++ b/docker/common/build-dbus.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only # Static libdbus, so the viewer links D-Bus in rather than pulling libdbus-1.so.3 -- and with it # libsystemd and libselinux -- at runtime. The viewer is a pure session-bus client, so the daemon-side # systemd/selinux features are off; built -fPIC so the archive links into Qt's PIE tools. diff --git a/docker/common/build-openssl.sh b/docker/common/build-openssl.sh index 756114d12..90fc7e837 100755 --- a/docker/common/build-openssl.sh +++ b/docker/common/build-openssl.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only # Static OpenSSL into /opt/openssl-$OPENSSL_VERSION. # # Shared by all four build images (docker/*/Dockerfile). The build context is docker/, so each diff --git a/docker/common/build-qt.sh b/docker/common/build-qt.sh index 9f20b4ee6..0ced1b47a 100755 --- a/docker/common/build-qt.sh +++ b/docker/common/build-qt.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only # Static Qt 6 (Core, Gui, Widgets, Charts, DBus) into $QT_PREFIX. # # Shared by all four build images (docker/*/Dockerfile). The build context is docker/, so each diff --git a/docker/common/install-cmake.sh b/docker/common/install-cmake.sh index efca13b61..6c9cedd6a 100755 --- a/docker/common/install-cmake.sh +++ b/docker/common/install-cmake.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only # CMake, pinned, from Kitware's own download host. # # Shared by all four build images (docker/*/Dockerfile). The build context is docker/, so each diff --git a/docker/common/install-eigen.sh b/docker/common/install-eigen.sh index e0d3d512f..a79f98441 100755 --- a/docker/common/install-eigen.sh +++ b/docker/common/install-eigen.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only # Eigen, the external find_package(Eigen3 3.4) dependency, into /opt/eigen-3.4. Header-only; # 3.4.x is required because Eigen's same-major-version rule rejects 5.x. # diff --git a/docker/common/install-ninja.sh b/docker/common/install-ninja.sh index 2582ce376..89ca4a8e7 100755 --- a/docker/common/install-ninja.sh +++ b/docker/common/install-ninja.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only # Ninja, pinned, from the upstream release binary. # # Shared by all four build images (docker/*/Dockerfile). The build context is docker/, so each diff --git a/docker/ubuntu2404/aarch64-sbsa.cmake b/docker/ubuntu2404/aarch64-sbsa.cmake index 5c94e3d8c..3c4f76841 100644 --- a/docker/ubuntu2404/aarch64-sbsa.cmake +++ b/docker/ubuntu2404/aarch64-sbsa.cmake @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + # Cross toolchain: x86_64 Ubuntu 24.04 build host -> aarch64 arm64 SBSA. # Covers DGX Spark (GB10, sm_121) and Grace Hopper (GH200, sm_90) alike -- same host architecture, # only the CUDA fatbin differs, and that is chosen with -DJFJOCH_CUDA_ARCHITECTURES. diff --git a/docs/_ext/jfjoch_downloads.py b/docs/_ext/jfjoch_downloads.py index 324ef7825..5fed0c762 100644 --- a/docs/_ext/jfjoch_downloads.py +++ b/docs/_ext/jfjoch_downloads.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + """Download buttons for the release archives, versioned from Sphinx's own ``release``. ``.. jfjoch-downloads:: rugnux`` (or ``viewer``) renders one card per platform with a button per diff --git a/docs/_static/jfjoch_downloads.js b/docs/_static/jfjoch_downloads.js index 5fd5f9d33..8aaac7a54 100644 --- a/docs/_static/jfjoch_downloads.js +++ b/docs/_static/jfjoch_downloads.js @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +// SPDX-License-Identifier: GPL-3.0-only + // Download pages: repoint the buttons at the newest published release. // // The page is rendered with links for the version the documentation was built for diff --git a/docs/conf.py b/docs/conf.py index d5e0f5f01..2bad618af 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + # Configuration file for the Sphinx documentation builder. # # For the full list of built-in configuration values, see the documentation: diff --git a/docs/images/rugnux_pipeline_fig.py b/docs/images/rugnux_pipeline_fig.py index 0191c5214..4cd76c353 100644 --- a/docs/images/rugnux_pipeline_fig.py +++ b/docs/images/rugnux_pipeline_fig.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """Extended Data Fig. 1 — Rugnux pipeline, per-image loop vs whole-dataset steps (minimal-text version).""" # Two figures in one style: the rotation path (rugnux_pipeline.svg) and the stills path diff --git a/docs/landing/landing.js b/docs/landing/landing.js index ba94b5979..c7414b5b7 100644 --- a/docs/landing/landing.js +++ b/docs/landing/landing.js @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +// SPDX-License-Identifier: GPL-3.0-only + // The front page: theme toggle and the download section's // "your system" highlight. The download buttons themselves are repointed at the newest release by // _static/jfjoch_downloads.js, shared with the Sphinx download pages. diff --git a/fpga/CMakeLists.txt b/fpga/CMakeLists.txt index 1e50b0b84..1e0e0553b 100644 --- a/fpga/CMakeLists.txt +++ b/fpga/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: CERN-OHL-S-2.0 + FIND_PROGRAM(VIVADO vivado DOC "Xilinx Vivado") IF (VIVADO) MESSAGE(STATUS "Xilinx Vivado found: ${VIVADO}") diff --git a/fpga/hls/CMakeLists.txt b/fpga/hls/CMakeLists.txt index 94ab47bd0..4d5dc1f19 100644 --- a/fpga/hls/CMakeLists.txt +++ b/fpga/hls/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: CERN-OHL-S-2.0 + ADD_LIBRARY( JFJochHLSCores STATIC jf_conversion.cpp data_collection_fsm.cpp diff --git a/fpga/hls/icmp.cpp b/fpga/hls/icmp.cpp index c3f811612..e68c911f5 100755 --- a/fpga/hls/icmp.cpp +++ b/fpga/hls/icmp.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019 HPCN Group, UAM Spain (hpcn-uam.es) +// SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +// SPDX-License-Identifier: CERN-OHL-S-2.0 AND BSD-3-Clause + /************************************************ BSD 3-Clause License diff --git a/fpga/hls/ip_header_checksum.h b/fpga/hls/ip_header_checksum.h index e594c8d36..053d82f7a 100644 --- a/fpga/hls/ip_header_checksum.h +++ b/fpga/hls/ip_header_checksum.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019 HPCN Group, UAM Spain (hpcn-uam.es) +// SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +// SPDX-License-Identifier: CERN-OHL-S-2.0 AND BSD-3-Clause + /************************************************ BSD 3-Clause License diff --git a/fpga/hls/parallel_stream.h b/fpga/hls/parallel_stream.h index 3d81521ff..408d030d5 100644 --- a/fpga/hls/parallel_stream.h +++ b/fpga/hls/parallel_stream.h @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: CERN-OHL-S-2.0 +// SPDX-License-Identifier: CERN-OHL-S-2.0 AND Apache-2.0 // Based on hls_stream.h from Xilinx VITIS HLS 2023.1 diff --git a/fpga/hls_simulation/CMakeLists.txt b/fpga/hls_simulation/CMakeLists.txt index 8122b6069..3320f9d00 100644 --- a/fpga/hls_simulation/CMakeLists.txt +++ b/fpga/hls_simulation/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochHLSSimulation STATIC HLSDevice.cpp HLSDevice.h diff --git a/fpga/host_library/CMakeLists.txt b/fpga/host_library/CMakeLists.txt index 5eaf0f69a..923ac4715 100644 --- a/fpga/host_library/CMakeLists.txt +++ b/fpga/host_library/CMakeLists.txt @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochDevice STATIC JungfraujochDevice.cpp JungfraujochDevice.h ../pcie_driver/jfjoch_fpga.h) diff --git a/fpga/scripts/check_hls.sh b/fpga/scripts/check_hls.sh index adec7ebe6..c2002facc 100644 --- a/fpga/scripts/check_hls.sh +++ b/fpga/scripts/check_hls.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: CERN-OHL-S-2.0 echo -e '\n\033[0;36m Utilization \033[0m\n' diff --git a/fpga/scripts/print_hls_result.sh b/fpga/scripts/print_hls_result.sh index 34bd52bc2..6beeff264 100644 --- a/fpga/scripts/print_hls_result.sh +++ b/fpga/scripts/print_hls_result.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: CERN-OHL-S-2.0 for i in */; do if [ -e $i/solution1/syn/report ]; diff --git a/fpga/scripts/setup.sh b/fpga/scripts/setup.sh index e38735d4a..5459a4153 100644 --- a/fpga/scripts/setup.sh +++ b/fpga/scripts/setup.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: CERN-OHL-S-2.0 HLS_IP_DIR=$PWD/action/ip diff --git a/frame_serialize/CMakeLists.txt b/frame_serialize/CMakeLists.txt index 60b38fe9f..c7bff21fc 100644 --- a/frame_serialize/CMakeLists.txt +++ b/frame_serialize/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(tinycbor STATIC tinycbor/cborparser_dup_string.c tinycbor/cborencoder.c diff --git a/frontend/openapi-ts.config.ts b/frontend/openapi-ts.config.ts index 9fe84523a..3993418c8 100644 --- a/frontend/openapi-ts.config.ts +++ b/frontend/openapi-ts.config.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { defineConfig } from '@hey-api/openapi-ts'; export default defineConfig({ diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 0be55a1d7..7eb75bbf3 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { ReactNode, useCallback, useMemo, useState } from 'react'; import { diff --git a/frontend/src/auth.ts b/frontend/src/auth.ts index b18fcc290..5e38e20d6 100644 --- a/frontend/src/auth.ts +++ b/frontend/src/auth.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {useSyncExternalStore} from "react"; // The bearer token of the current dataset. It lives in sessionStorage - per tab, gone when the tab diff --git a/frontend/src/components/AzIntSettings.tsx b/frontend/src/components/AzIntSettings.tsx index 20bdfbbf3..3948ab526 100644 --- a/frontend/src/components/AzIntSettings.tsx +++ b/frontend/src/components/AzIntSettings.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {ChangeEvent, memo, useEffect, useState} from 'react'; import {FormControlLabel, Checkbox, Stack, Radio, RadioGroup, Typography} from "@mui/material"; diff --git a/frontend/src/components/BraggIntegrationSettings.tsx b/frontend/src/components/BraggIntegrationSettings.tsx index d10cb25ba..1fa278641 100644 --- a/frontend/src/components/BraggIntegrationSettings.tsx +++ b/frontend/src/components/BraggIntegrationSettings.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo, useEffect, useState} from 'react'; import FormControl from "@mui/material/FormControl"; diff --git a/frontend/src/components/ButtonWithSnackbar.tsx b/frontend/src/components/ButtonWithSnackbar.tsx index ebe00c9a8..c8f8a5eac 100644 --- a/frontend/src/components/ButtonWithSnackbar.tsx +++ b/frontend/src/components/ButtonWithSnackbar.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo, SyntheticEvent, useState} from 'react'; import { diff --git a/frontend/src/components/Calibration.tsx b/frontend/src/components/Calibration.tsx index fca186d72..6190d9f7d 100644 --- a/frontend/src/components/Calibration.tsx +++ b/frontend/src/components/Calibration.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { memo, useState } from 'react'; import { Box, MenuItem, Stack, TextField, Typography } from "@mui/material"; diff --git a/frontend/src/components/DarkMaskSettings.tsx b/frontend/src/components/DarkMaskSettings.tsx index 5e59c1f40..798041973 100644 --- a/frontend/src/components/DarkMaskSettings.tsx +++ b/frontend/src/components/DarkMaskSettings.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo, useEffect, useState} from 'react'; import {Checkbox, FormControlLabel, Stack} from '@mui/material'; import _ from 'lodash'; diff --git a/frontend/src/components/DataCollection.tsx b/frontend/src/components/DataCollection.tsx index 73cf2990e..af67f6e1d 100644 --- a/frontend/src/components/DataCollection.tsx +++ b/frontend/src/components/DataCollection.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {ChangeEvent, memo, useState} from 'react'; import Paper from '@mui/material/Paper'; diff --git a/frontend/src/components/DataProcessingPlot.tsx b/frontend/src/components/DataProcessingPlot.tsx index 539b8badd..a53aff6f0 100644 --- a/frontend/src/components/DataProcessingPlot.tsx +++ b/frontend/src/components/DataProcessingPlot.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {ReactNode} from 'react'; import {useQuery} from "@tanstack/react-query"; diff --git a/frontend/src/components/DataProcessingPlots.tsx b/frontend/src/components/DataProcessingPlots.tsx index 8dbe43bd1..d93ecfae5 100644 --- a/frontend/src/components/DataProcessingPlots.tsx +++ b/frontend/src/components/DataProcessingPlots.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo, useState} from 'react'; import Paper from '@mui/material/Paper'; diff --git a/frontend/src/components/DataProcessingSettings.tsx b/frontend/src/components/DataProcessingSettings.tsx index f6b9d9830..5ef55cb50 100644 --- a/frontend/src/components/DataProcessingSettings.tsx +++ b/frontend/src/components/DataProcessingSettings.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo, ReactNode, useEffect, useState} from 'react'; import {Button, FormControlLabel, Grid, Slider, Stack, Switch, Typography} from "@mui/material"; diff --git a/frontend/src/components/DetectorSelection.tsx b/frontend/src/components/DetectorSelection.tsx index d38b1f1e7..22ee657d5 100644 --- a/frontend/src/components/DetectorSelection.tsx +++ b/frontend/src/components/DetectorSelection.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo, ReactNode, useEffect, useState} from 'react'; import Select, { SelectChangeEvent } from '@mui/material/Select'; diff --git a/frontend/src/components/DetectorSettings.tsx b/frontend/src/components/DetectorSettings.tsx index ee4888bc0..f9fbe7c4b 100644 --- a/frontend/src/components/DetectorSettings.tsx +++ b/frontend/src/components/DetectorSettings.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {ChangeEvent, memo, useEffect, useState} from 'react'; import {Box, Checkbox, Divider, FormControlLabel, FormGroup, Grid, List, ListItem, Stack, Switch, Tooltip} from "@mui/material"; diff --git a/frontend/src/components/DetectorStatus.tsx b/frontend/src/components/DetectorStatus.tsx index 63ca42bbf..a0207b20c 100644 --- a/frontend/src/components/DetectorStatus.tsx +++ b/frontend/src/components/DetectorStatus.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo} from 'react'; import Paper from '@mui/material/Paper'; diff --git a/frontend/src/components/EmptyState.tsx b/frontend/src/components/EmptyState.tsx index e53bf1ae7..6ed7e783c 100644 --- a/frontend/src/components/EmptyState.tsx +++ b/frontend/src/components/EmptyState.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { ReactNode } from "react"; import { Box, Typography } from "@mui/material"; diff --git a/frontend/src/components/ErrorMessage.tsx b/frontend/src/components/ErrorMessage.tsx index de16bb415..d687724b6 100644 --- a/frontend/src/components/ErrorMessage.tsx +++ b/frontend/src/components/ErrorMessage.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo, ReactNode} from 'react'; import {broker_status} from "../client"; diff --git a/frontend/src/components/FileWriterSettings.tsx b/frontend/src/components/FileWriterSettings.tsx index f3a7cd9e0..a1b0e887f 100644 --- a/frontend/src/components/FileWriterSettings.tsx +++ b/frontend/src/components/FileWriterSettings.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo, useEffect, useState} from 'react'; import {Checkbox, FormControlLabel, FormGroup, Select} from "@mui/material"; diff --git a/frontend/src/components/FpgaStatus.tsx b/frontend/src/components/FpgaStatus.tsx index c61b63d85..a2f730731 100644 --- a/frontend/src/components/FpgaStatus.tsx +++ b/frontend/src/components/FpgaStatus.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo, ReactNode} from 'react'; import Paper from '@mui/material/Paper'; diff --git a/frontend/src/components/ImageFormatSettings.tsx b/frontend/src/components/ImageFormatSettings.tsx index 9fa0753d1..f99a227fc 100644 --- a/frontend/src/components/ImageFormatSettings.tsx +++ b/frontend/src/components/ImageFormatSettings.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {ChangeEvent, memo, useEffect, useState} from 'react'; import {Checkbox, FormControlLabel, FormGroup, List, ListItem, Stack, Tooltip} from "@mui/material"; diff --git a/frontend/src/components/IndexingSettings.tsx b/frontend/src/components/IndexingSettings.tsx index e4d8e5192..add4a42b8 100644 --- a/frontend/src/components/IndexingSettings.tsx +++ b/frontend/src/components/IndexingSettings.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo, useEffect, useState} from 'react'; import {Stack, Typography, FormControlLabel, Checkbox} from "@mui/material"; diff --git a/frontend/src/components/InstrumentMetadata.tsx b/frontend/src/components/InstrumentMetadata.tsx index 36c246076..40d47b51a 100644 --- a/frontend/src/components/InstrumentMetadata.tsx +++ b/frontend/src/components/InstrumentMetadata.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {ChangeEvent, memo, useEffect, useState} from 'react'; import { diff --git a/frontend/src/components/MaskVisualization.tsx b/frontend/src/components/MaskVisualization.tsx index 703618676..4f5568965 100644 --- a/frontend/src/components/MaskVisualization.tsx +++ b/frontend/src/components/MaskVisualization.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { memo, useState } from "react"; import { ToggleButton, ToggleButtonGroup } from "@mui/material"; import SettingsPanel from "./SettingsPanel"; diff --git a/frontend/src/components/MeasurementStatistics.tsx b/frontend/src/components/MeasurementStatistics.tsx index d65b12358..ed8e6696c 100644 --- a/frontend/src/components/MeasurementStatistics.tsx +++ b/frontend/src/components/MeasurementStatistics.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo} from 'react'; import Paper from '@mui/material/Paper'; diff --git a/frontend/src/components/NumberTextField.tsx b/frontend/src/components/NumberTextField.tsx index 8bd8f47e2..a04146dc0 100644 --- a/frontend/src/components/NumberTextField.tsx +++ b/frontend/src/components/NumberTextField.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {ChangeEvent, memo, ReactNode, useEffect, useId, useRef, useState} from 'react'; import { diff --git a/frontend/src/components/PixelMask.tsx b/frontend/src/components/PixelMask.tsx index ee7dcfb06..6dc1bc0f6 100644 --- a/frontend/src/components/PixelMask.tsx +++ b/frontend/src/components/PixelMask.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {ChangeEvent, memo, useState} from 'react'; import Paper from '@mui/material/Paper'; diff --git a/frontend/src/components/PreviewImage.tsx b/frontend/src/components/PreviewImage.tsx index 52a7bcea7..932bbdbd6 100644 --- a/frontend/src/components/PreviewImage.tsx +++ b/frontend/src/components/PreviewImage.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {ChangeEvent, memo, useEffect, useRef, useState} from 'react'; import Paper from "@mui/material/Paper"; import { diff --git a/frontend/src/components/ROI.tsx b/frontend/src/components/ROI.tsx index 5569bb719..620ba9e16 100644 --- a/frontend/src/components/ROI.tsx +++ b/frontend/src/components/ROI.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo, ReactNode, useEffect, useRef, useState} from 'react'; import Paper from '@mui/material/Paper'; diff --git a/frontend/src/components/RugnuxCollectionPlots.tsx b/frontend/src/components/RugnuxCollectionPlots.tsx index 26aa9918a..a975f0ae8 100644 --- a/frontend/src/components/RugnuxCollectionPlots.tsx +++ b/frontend/src/components/RugnuxCollectionPlots.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {Box, Typography, useTheme} from "@mui/material"; import {useQuery} from "@tanstack/react-query"; import {plot_type, rugnux_live_status} from "../client"; diff --git a/frontend/src/components/RugnuxHero.tsx b/frontend/src/components/RugnuxHero.tsx index d27d9c266..d3aa41bfa 100644 --- a/frontend/src/components/RugnuxHero.tsx +++ b/frontend/src/components/RugnuxHero.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {Box, Tooltip, Typography} from "@mui/material"; import {keyframes} from "@mui/system"; import {rugnux_live_status} from "../client"; diff --git a/frontend/src/components/RugnuxImage.tsx b/frontend/src/components/RugnuxImage.tsx index 73bc5d2d7..007c77323 100644 --- a/frontend/src/components/RugnuxImage.tsx +++ b/frontend/src/components/RugnuxImage.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {useEffect, useRef, useState} from "react"; import {Box, Tooltip, Typography, useTheme} from "@mui/material"; import {TransformComponent, TransformWrapper} from "react-zoom-pan-pinch"; diff --git a/frontend/src/components/RugnuxPage.tsx b/frontend/src/components/RugnuxPage.tsx index 826d1f0b8..52c464c7e 100644 --- a/frontend/src/components/RugnuxPage.tsx +++ b/frontend/src/components/RugnuxPage.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {Alert, Box, Button, Collapse, Paper, Stack, Tooltip, Typography, useMediaQuery, useTheme} from "@mui/material"; import {keyframes} from "@mui/system"; import {useQuery, useQueryClient} from "@tanstack/react-query"; diff --git a/frontend/src/components/RugnuxParts.tsx b/frontend/src/components/RugnuxParts.tsx index b2637ebcc..9021799f4 100644 --- a/frontend/src/components/RugnuxParts.tsx +++ b/frontend/src/components/RugnuxParts.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {Alert, AlertTitle, Box, Chip, Paper, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Typography} from "@mui/material"; import {indigo, lime, deepOrange, grey} from "@mui/material/colors"; import {alpha, SxProps, Theme} from "@mui/material/styles"; diff --git a/frontend/src/components/RugnuxProgress.tsx b/frontend/src/components/RugnuxProgress.tsx index 8c662c9bd..0bd28c29a 100644 --- a/frontend/src/components/RugnuxProgress.tsx +++ b/frontend/src/components/RugnuxProgress.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {useEffect, useRef, useState} from "react"; import {Box, Tooltip, Typography, useTheme} from "@mui/material"; import {keyframes} from "@mui/system"; diff --git a/frontend/src/components/RugnuxSettings.tsx b/frontend/src/components/RugnuxSettings.tsx index 7a2ff11ad..5c7ada58e 100644 --- a/frontend/src/components/RugnuxSettings.tsx +++ b/frontend/src/components/RugnuxSettings.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {ChangeEvent, useEffect, useState} from 'react'; import {Button, FormControlLabel, Stack, Switch, Typography} from "@mui/material"; diff --git a/frontend/src/components/RugnuxShellPlots.tsx b/frontend/src/components/RugnuxShellPlots.tsx index 0d6ccea2a..dbfb3eca2 100644 --- a/frontend/src/components/RugnuxShellPlots.tsx +++ b/frontend/src/components/RugnuxShellPlots.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {useEffect, useRef, useState} from "react"; import {Box, Typography, useTheme} from "@mui/material"; import {rugnux_live_shell} from "../client"; diff --git a/frontend/src/components/RugnuxStatus.tsx b/frontend/src/components/RugnuxStatus.tsx index 4f38fa0cd..81df83658 100644 --- a/frontend/src/components/RugnuxStatus.tsx +++ b/frontend/src/components/RugnuxStatus.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo} from 'react'; import {Alert, Box, Grid, LinearProgress, Stack, Table, TableBody, TableCell, TableRow, Typography} from "@mui/material"; diff --git a/frontend/src/components/RugnuxStills.tsx b/frontend/src/components/RugnuxStills.tsx index e0254135e..279539131 100644 --- a/frontend/src/components/RugnuxStills.tsx +++ b/frontend/src/components/RugnuxStills.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {Box, Chip, LinearProgress, Stack, Table, TableBody, TableCell, TableHead, TableRow, Typography} from "@mui/material"; import {alpha} from "@mui/material/styles"; import {rugnux_live_stills} from "../client"; diff --git a/frontend/src/components/RugnuxStructureViewer.tsx b/frontend/src/components/RugnuxStructureViewer.tsx index 91603c0ae..f91f2cf75 100644 --- a/frontend/src/components/RugnuxStructureViewer.tsx +++ b/frontend/src/components/RugnuxStructureViewer.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import React, {useCallback, useEffect, useRef, useState} from "react"; import {Alert, Box, IconButton, Tooltip, Typography} from "@mui/material"; import ChevronLeftIcon from "@mui/icons-material/ChevronLeft"; diff --git a/frontend/src/components/RugnuxTimeline.tsx b/frontend/src/components/RugnuxTimeline.tsx index 5b095e0c4..d40f1eb27 100644 --- a/frontend/src/components/RugnuxTimeline.tsx +++ b/frontend/src/components/RugnuxTimeline.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {useEffect, useRef, useState} from "react"; import {Box, Tooltip, Typography} from "@mui/material"; import {keyframes} from "@mui/system"; diff --git a/frontend/src/components/RugnuxTriage.tsx b/frontend/src/components/RugnuxTriage.tsx index 6fa0cc35e..040be19e3 100644 --- a/frontend/src/components/RugnuxTriage.tsx +++ b/frontend/src/components/RugnuxTriage.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {Box, Tooltip} from "@mui/material"; import CheckCircleIcon from "@mui/icons-material/CheckCircle"; import WarningIcon from "@mui/icons-material/Warning"; diff --git a/frontend/src/components/SettingsPanel.tsx b/frontend/src/components/SettingsPanel.tsx index eb22d7307..a2a3b2870 100644 --- a/frontend/src/components/SettingsPanel.tsx +++ b/frontend/src/components/SettingsPanel.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { ReactNode } from "react"; import { Alert, Box, Button, Divider, Paper, Snackbar, Stack, Tooltip, Typography } from "@mui/material"; import { indigo } from "@mui/material/colors"; diff --git a/frontend/src/components/StatusBar.tsx b/frontend/src/components/StatusBar.tsx index 0353dd9fe..60f2068e0 100644 --- a/frontend/src/components/StatusBar.tsx +++ b/frontend/src/components/StatusBar.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo, useState} from 'react'; import AppBar from '@mui/material/AppBar'; diff --git a/frontend/src/components/TiffImageViewer.tsx b/frontend/src/components/TiffImageViewer.tsx index e84b3af4b..fd11955f2 100644 --- a/frontend/src/components/TiffImageViewer.tsx +++ b/frontend/src/components/TiffImageViewer.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { memo, useEffect, useMemo, useRef, useState } from "react"; import { Box, Button, CircularProgress, MenuItem, Paper, Select, Stack, TextField, Typography, diff --git a/frontend/src/components/ZeroMQPreview.tsx b/frontend/src/components/ZeroMQPreview.tsx index 3740b442e..769bf243d 100644 --- a/frontend/src/components/ZeroMQPreview.tsx +++ b/frontend/src/components/ZeroMQPreview.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {memo, useEffect, useState} from 'react'; import {FormControlLabel, Radio, RadioGroup} from "@mui/material"; diff --git a/frontend/src/components/structure/MolstarCanvas.tsx b/frontend/src/components/structure/MolstarCanvas.tsx index 7ee9c5459..237d1ba08 100644 --- a/frontend/src/components/structure/MolstarCanvas.tsx +++ b/frontend/src/components/structure/MolstarCanvas.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + // Adapted from aaredb (gitea.psi.ch/mx/aaredb, the PSI MX group's own code), frontend/src/components/Structure/MolstarCanvas.tsx at 8ece2c2. import React, { useEffect, useRef, useState } from 'react'; import { Box, Typography } from '@mui/material'; diff --git a/frontend/src/components/structure/cootControls.ts b/frontend/src/components/structure/cootControls.ts index 5a8e9f200..627a26606 100644 --- a/frontend/src/components/structure/cootControls.ts +++ b/frontend/src/components/structure/cootControls.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + // Adapted from aaredb (gitea.psi.ch/mx/aaredb, the PSI MX group's own code), frontend/src/components/Structure/molstar/cootControls.ts (camera sync and residue pick left out) at 8ece2c2. import { PluginContext } from 'molstar/lib/mol-plugin/context'; import { DefaultTrackballBindings } from 'molstar/lib/mol-canvas3d/controls/trackball'; diff --git a/frontend/src/components/structure/cootTrackball.ts b/frontend/src/components/structure/cootTrackball.ts index eca09462b..56df802f4 100644 --- a/frontend/src/components/structure/cootTrackball.ts +++ b/frontend/src/components/structure/cootTrackball.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + // Adapted from aaredb (gitea.psi.ch/mx/aaredb, the PSI MX group's own code), frontend/src/components/Structure/molstar/cootTrackball.ts at 8ece2c2. // Coot 0.9.8's virtual trackball — a port of the SGI trackball.c call Coot made // on every mouse-motion event (globjects.cc, glarea_motion_notify): spherical diff --git a/frontend/src/components/structure/createPlugin.ts b/frontend/src/components/structure/createPlugin.ts index bda17b067..dfcd8b4da 100644 --- a/frontend/src/components/structure/createPlugin.ts +++ b/frontend/src/components/structure/createPlugin.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + // Mol* setup follows AareDB (G. Gotthard, PSI): adapted from its frontend/src/components/Structure/molstar/createPlugin.ts at 8ece2c2. // Headless Mol* plugin (no mol-plugin-ui): the render core + state tree + // builders, driven entirely by our own charter-styled controls. ALL molstar diff --git a/frontend/src/components/structure/densityCrop.ts b/frontend/src/components/structure/densityCrop.ts index 3cf1597fe..d0ce1e9ec 100644 --- a/frontend/src/components/structure/densityCrop.ts +++ b/frontend/src/components/structure/densityCrop.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + // The density preparation of aaredb's density worker (gitea.psi.ch/mx/aaredb, the PSI MX group's own code, // frontend/public/structure-worker/density-worker.js at 8ece2c2): crop the periodic map to the model's box plus a // margin, carve it around the atoms, encode as CCP4 with the full cell's mean and RMS. aaredb computes diff --git a/frontend/src/components/structure/fitCamera.ts b/frontend/src/components/structure/fitCamera.ts index ed0e7e937..ee80163ec 100644 --- a/frontend/src/components/structure/fitCamera.ts +++ b/frontend/src/components/structure/fitCamera.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { PluginContext } from 'molstar/lib/mol-plugin/context'; import { Vec3 } from 'molstar/lib/mol-math/linear-algebra'; diff --git a/frontend/src/components/structure/loadBlobs.ts b/frontend/src/components/structure/loadBlobs.ts index 8083dbae2..2b17c6007 100644 --- a/frontend/src/components/structure/loadBlobs.ts +++ b/frontend/src/components/structure/loadBlobs.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { PluginContext } from 'molstar/lib/mol-plugin/context'; import { setSubtreeVisibility } from 'molstar/lib/mol-plugin/behavior/static/state'; import { Color } from 'molstar/lib/mol-util/color'; diff --git a/frontend/src/components/structure/loadMaps.ts b/frontend/src/components/structure/loadMaps.ts index 6d1ebed33..5c648d6d0 100644 --- a/frontend/src/components/structure/loadMaps.ts +++ b/frontend/src/components/structure/loadMaps.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + // Adapted from aaredb (gitea.psi.ch/mx/aaredb, the PSI MX group's own code), frontend/src/components/Structure/molstar/loadMaps.ts (+ the anomalous layer) at 8ece2c2. import { PluginContext } from 'molstar/lib/mol-plugin/context'; import { StateTransforms } from 'molstar/lib/mol-plugin-state/transforms'; diff --git a/frontend/src/components/structure/loadModel.ts b/frontend/src/components/structure/loadModel.ts index 8779a12bb..49c49347e 100644 --- a/frontend/src/components/structure/loadModel.ts +++ b/frontend/src/components/structure/loadModel.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + // Adapted from aaredb (gitea.psi.ch/mx/aaredb, the PSI MX group's own code), frontend/src/components/Structure/molstar/loadModel.ts (format option, atom coordinates) at 8ece2c2. import { PluginContext } from 'molstar/lib/mol-plugin/context'; import { StateObjectSelector } from 'molstar/lib/mol-state'; diff --git a/frontend/src/components/structure/peakView.ts b/frontend/src/components/structure/peakView.ts index 143ab4876..85e6bf4ea 100644 --- a/frontend/src/components/structure/peakView.ts +++ b/frontend/src/components/structure/peakView.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { PluginContext } from 'molstar/lib/mol-plugin/context'; import { Vec3 } from 'molstar/lib/mol-math/linear-algebra'; diff --git a/frontend/src/components/structure/reveal.ts b/frontend/src/components/structure/reveal.ts index 14a9e8103..1d14bcf1b 100644 --- a/frontend/src/components/structure/reveal.ts +++ b/frontend/src/components/structure/reveal.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { PluginContext } from 'molstar/lib/mol-plugin/context'; import { Quat, Vec3 } from 'molstar/lib/mol-math/linear-algebra'; diff --git a/frontend/src/components/tiffDecode.ts b/frontend/src/components/tiffDecode.ts index 266d874f4..62d7fe16a 100644 --- a/frontend/src/components/tiffDecode.ts +++ b/frontend/src/components/tiffDecode.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + // Minimal decoder for the baseline TIFFs the broker produces (uncompressed, // single-channel, contiguous — see preview/JFJochTIFF.cpp). Handles 8/16/32/64-bit // samples in unsigned / signed / IEEE-float formats and both byte orders. Kept diff --git a/frontend/src/components/useUpload.ts b/frontend/src/components/useUpload.ts index ce4c1877e..f171e077e 100644 --- a/frontend/src/components/useUpload.ts +++ b/frontend/src/components/useUpload.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { useState } from "react"; import { useMutation, UseMutationOptions } from "@tanstack/react-query"; diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx index 29ae0b1e3..ee28c7b7d 100644 --- a/frontend/src/index.tsx +++ b/frontend/src/index.tsx @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { StrictMode } from "react"; import { createRoot } from "react-dom/client"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; diff --git a/frontend/src/livePalette.ts b/frontend/src/livePalette.ts index 34fcc036f..fc4cb2bda 100644 --- a/frontend/src/livePalette.ts +++ b/frontend/src/livePalette.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {PaletteMode} from "@mui/material"; import {indigo, lime} from "@mui/material/colors"; import {SEMANTIC} from "./theme"; diff --git a/frontend/src/theme.ts b/frontend/src/theme.ts index f9c6bed2e..b6b69a253 100644 --- a/frontend/src/theme.ts +++ b/frontend/src/theme.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import {useCallback, useEffect, useState} from "react"; import {createTheme, PaletteMode} from "@mui/material"; import {indigo, lime} from "@mui/material/colors"; diff --git a/frontend/src/version.ts b/frontend/src/version.ts index 879a74429..7e944496e 100644 --- a/frontend/src/version.ts +++ b/frontend/src/version.ts @@ -1 +1,6 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + export const JFJOCH_VERSION : string = "1.0.0-rc.186"; \ No newline at end of file diff --git a/frontend/vite-env.d.ts b/frontend/vite-env.d.ts index 11f02fe2a..fa01b90f1 100644 --- a/frontend/vite-env.d.ts +++ b/frontend/vite-env.d.ts @@ -1 +1,6 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + /// diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index b76db11ca..c7bf55b37 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute + * SPDX-License-Identifier: GPL-3.0-only + */ + import { defineConfig } from 'vite' import react from '@vitejs/plugin-react-swc' diff --git a/gen_python_client.sh b/gen_python_client.sh index c5d7c3036..9cf1ea513 100755 --- a/gen_python_client.sh +++ b/gen_python_client.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only mkdir -p dist diff --git a/gitea_create_release.py b/gitea_create_release.py index aff34616d..402b5fe3e 100644 --- a/gitea_create_release.py +++ b/gitea_create_release.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only import os import sys diff --git a/gitea_upload_file.py b/gitea_upload_file.py index 1fa9201ea..e14e6cc6b 100644 --- a/gitea_upload_file.py +++ b/gitea_upload_file.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only # Uploads a file as an asset to the Gitea release for the tag in the VERSION file. # Uses only the standard library (no 'requests'), so it runs with a bare Python diff --git a/image_analysis/CMakeLists.txt b/image_analysis/CMakeLists.txt index fd1ab7b87..a4c91b37a 100644 --- a/image_analysis/CMakeLists.txt +++ b/image_analysis/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + # Eigen has to be resolved BEFORE Ceres is added below. Whichever find_package(Eigen3) runs first # creates the Eigen3::Eigen imported target, and every later one leaves an existing target alone -- # so the first one wins for the whole build, Ceres included. See the guard after Ceres for why that diff --git a/image_analysis/azint/CMakeLists.txt b/image_analysis/azint/CMakeLists.txt index 006e914a8..96753dbd9 100644 --- a/image_analysis/azint/CMakeLists.txt +++ b/image_analysis/azint/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochAzIntEngine STATIC AzIntEngine.cpp AzIntEngine.h AzIntEngineCPU.cpp AzIntEngineCPU.h) TARGET_LINK_LIBRARIES(JFJochAzIntEngine JFJochCommon) IF (JFJOCH_CUDA_AVAILABLE) diff --git a/image_analysis/bragg_integration/CMakeLists.txt b/image_analysis/bragg_integration/CMakeLists.txt index d90545394..ec007086f 100644 --- a/image_analysis/bragg_integration/CMakeLists.txt +++ b/image_analysis/bragg_integration/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochBraggIntegration STATIC BraggIntegrationEngine.cpp BraggIntegrationEngine.h diff --git a/image_analysis/bragg_prediction/CMakeLists.txt b/image_analysis/bragg_prediction/CMakeLists.txt index a6b166a04..ccd240bc7 100644 --- a/image_analysis/bragg_prediction/CMakeLists.txt +++ b/image_analysis/bragg_prediction/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochBraggPrediction STATIC BraggPrediction.cpp BraggPrediction.h diff --git a/image_analysis/geom_refinement/CMakeLists.txt b/image_analysis/geom_refinement/CMakeLists.txt index 397034851..dfdc58f7d 100644 --- a/image_analysis/geom_refinement/CMakeLists.txt +++ b/image_analysis/geom_refinement/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only ADD_LIBRARY(JFJochGeomRefinement STATIC BeamCenterFromBackground.cpp diff --git a/image_analysis/geom_refinement/LMSolver.cpp b/image_analysis/geom_refinement/LMSolver.cpp index 967ae965e..e5b647944 100644 --- a/image_analysis/geom_refinement/LMSolver.cpp +++ b/image_analysis/geom_refinement/LMSolver.cpp @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only +// SPDX-License-Identifier: GPL-3.0-only AND BSD-3-Clause // Adapted from https://github.com/ceres-solver/ceres-solver (internal/ceres/polynomial.cc, // include/ceres/internal/sphere_manifold_functions.h, householder_vector.h) diff --git a/image_analysis/geom_refinement/LMSolver.h b/image_analysis/geom_refinement/LMSolver.h index ee3b9657d..3eee579ed 100644 --- a/image_analysis/geom_refinement/LMSolver.h +++ b/image_analysis/geom_refinement/LMSolver.h @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only +// SPDX-License-Identifier: GPL-3.0-only AND BSD-3-Clause // The minimiser below follows Ceres Solver's trust-region Levenberg-Marquardt step for step - its // options, its Jacobi scaling, its damping and radius updates, its stopping rules, its box projection, diff --git a/image_analysis/image_preprocessing/CMakeLists.txt b/image_analysis/image_preprocessing/CMakeLists.txt index 7fa931935..4e7697230 100644 --- a/image_analysis/image_preprocessing/CMakeLists.txt +++ b/image_analysis/image_preprocessing/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochImagePreprocessing STATIC ImagePreprocessor.cpp ImagePreprocessor.h ImagePreprocessorCPU.cpp ImagePreprocessorCPU.h diff --git a/image_analysis/indexing/CMakeLists.txt b/image_analysis/indexing/CMakeLists.txt index 493a32ba4..b232ebcd1 100644 --- a/image_analysis/indexing/CMakeLists.txt +++ b/image_analysis/indexing/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochIndexing STATIC Indexer.h Indexer.cpp diff --git a/image_analysis/indexing/FFBIDXIndexerCPU.cpp b/image_analysis/indexing/FFBIDXIndexerCPU.cpp index 31bd83e3a..d562e3307 100644 --- a/image_analysis/indexing/FFBIDXIndexerCPU.cpp +++ b/image_analysis/indexing/FFBIDXIndexerCPU.cpp @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only +// SPDX-License-Identifier: GPL-3.0-only AND BSD-3-Clause // Ported from the CUDA kernels of the fast-feedback indexer, // https://github.com/paulscherrerinstitute/fast-feedback-indexer (indexer/src/indexer_gpu.cu) diff --git a/image_analysis/lattice_search/CMakeLists.txt b/image_analysis/lattice_search/CMakeLists.txt index a7a6ce63d..8e9e1fb34 100644 --- a/image_analysis/lattice_search/CMakeLists.txt +++ b/image_analysis/lattice_search/CMakeLists.txt @@ -1,2 +1,5 @@ +# SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochLatticeSearch STATIC LatticeSearch.cpp LatticeSearch.h LePageLattice.cpp LePageLattice.h) TARGET_LINK_LIBRARIES(JFJochLatticeSearch Eigen3::Eigen JFJochCommon) diff --git a/image_analysis/roi/CMakeLists.txt b/image_analysis/roi/CMakeLists.txt index afa1daa67..101ffe6ef 100644 --- a/image_analysis/roi/CMakeLists.txt +++ b/image_analysis/roi/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochROIIntegration STATIC ROIIntegration.cpp ROIIntegration.h ROIIntegrationCPU.cpp ROIIntegrationCPU.h) TARGET_LINK_LIBRARIES(JFJochROIIntegration JFJochCommon) IF (JFJOCH_CUDA_AVAILABLE) diff --git a/image_analysis/scale_merge/CMakeLists.txt b/image_analysis/scale_merge/CMakeLists.txt index 687ce6436..989cfa3d8 100644 --- a/image_analysis/scale_merge/CMakeLists.txt +++ b/image_analysis/scale_merge/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochScaleMerge SearchSpaceGroup.cpp SearchSpaceGroup.h diff --git a/image_analysis/spot_finding/CMakeLists.txt b/image_analysis/spot_finding/CMakeLists.txt index 0d0d6035a..fb24b0e70 100644 --- a/image_analysis/spot_finding/CMakeLists.txt +++ b/image_analysis/spot_finding/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochSpotFinding STATIC ImageSpotFinderCPU.cpp ImageSpotFinderCPU.h diff --git a/image_analysis/spot_finding/SpotExtractorGPU.cu b/image_analysis/spot_finding/SpotExtractorGPU.cu index 6b2e40637..ea67a80c8 100644 --- a/image_analysis/spot_finding/SpotExtractorGPU.cu +++ b/image_analysis/spot_finding/SpotExtractorGPU.cu @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only +// SPDX-License-Identifier: GPL-3.0-only AND MPL-2.0 // Sparse connected-component labelling following the design the ACTS/traccc project arrived at for // sparse silicon-detector clusterization (backward-neighbour graph over a sorted hit list, then a diff --git a/image_analysis/spot_finding/StrongPixelSet.cpp b/image_analysis/spot_finding/StrongPixelSet.cpp index b0f567a65..666f19609 100644 --- a/image_analysis/spot_finding/StrongPixelSet.cpp +++ b/image_analysis/spot_finding/StrongPixelSet.cpp @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only +// SPDX-License-Identifier: GPL-3.0-only AND MPL-2.0 // SparseCCL code taken from https://github.com/acts-project/traccc/blob/main/core/include/traccc/clusterization/detail/sparse_ccl.hpp // (c) 2021-2022 CERN for the benefit of the ACTS project diff --git a/image_analysis/structure_refinement/CMakeLists.txt b/image_analysis/structure_refinement/CMakeLists.txt index 18dc18273..9b8070523 100644 --- a/image_analysis/structure_refinement/CMakeLists.txt +++ b/image_analysis/structure_refinement/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochStructureRefinement STATIC ModelFFT.cpp ModelFFT.h ModelGrid.cpp ModelGrid.h diff --git a/image_analysis/structure_refinement/ModelDensityMetal.metal b/image_analysis/structure_refinement/ModelDensityMetal.metal index 5a40eadfb..3811c0d41 100644 --- a/image_analysis/structure_refinement/ModelDensityMetal.metal +++ b/image_analysis/structure_refinement/ModelDensityMetal.metal @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only +// SPDX-License-Identifier: GPL-3.0-only AND MPL-2.0 // The model density's gather (ModelDensityMetal.h), compiled when it is first used from this source, which // CMakeLists.txt copies into the binary - with fast math off and no a*b+c contracted, as on the host, so that diff --git a/image_analysis/structure_refinement/ModelMaskGPU.cu b/image_analysis/structure_refinement/ModelMaskGPU.cu index d4fc89bb5..ba8148bc5 100644 --- a/image_analysis/structure_refinement/ModelMaskGPU.cu +++ b/image_analysis/structure_refinement/ModelMaskGPU.cu @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only +// SPDX-License-Identifier: GPL-3.0-only AND MPL-2.0 // The masking, the island removal and the shrink follow SolventMasker and set_margin_around() of GEMMI's // solmask.hpp (https://github.com/project-gemmi/gemmi/blob/master/include/gemmi/solmask.hpp) diff --git a/image_analysis/structure_refinement/ModelScaling.cpp b/image_analysis/structure_refinement/ModelScaling.cpp index 4d95653f2..ff7aaeba0 100644 --- a/image_analysis/structure_refinement/ModelScaling.cpp +++ b/image_analysis/structure_refinement/ModelScaling.cpp @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only +// SPDX-License-Identifier: GPL-3.0-only AND MPL-2.0 // FixedSolventFit follows the scaling target of GEMMI's scaling.hpp // (https://github.com/project-gemmi/gemmi/blob/master/include/gemmi/scaling.hpp), and diff --git a/image_analysis/structure_refinement/ModelStructureFactorsGPU.cpp b/image_analysis/structure_refinement/ModelStructureFactorsGPU.cpp index 0c939d434..7eff747a0 100644 --- a/image_analysis/structure_refinement/ModelStructureFactorsGPU.cpp +++ b/image_analysis/structure_refinement/ModelStructureFactorsGPU.cpp @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only +// SPDX-License-Identifier: GPL-3.0-only AND MPL-2.0 // The reflection list follows ReciprocalGrid::prepare_asu_data() of GEMMI's recgrid.hpp // (https://github.com/project-gemmi/gemmi/blob/master/include/gemmi/recgrid.hpp) diff --git a/image_puller/CMakeLists.txt b/image_puller/CMakeLists.txt index 4fb07c230..ac69f8ca8 100644 --- a/image_puller/CMakeLists.txt +++ b/image_puller/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochImagePuller ZMQImagePuller.cpp ZMQImagePuller.h ImagePuller.cpp ImagePuller.h diff --git a/image_pusher/CMakeLists.txt b/image_pusher/CMakeLists.txt index f7e899305..4c015546f 100644 --- a/image_pusher/CMakeLists.txt +++ b/image_pusher/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(ImagePusher STATIC ImagePusher.cpp ImagePusher.h TestImagePusher.cpp TestImagePusher.h diff --git a/jungfrau/CMakeLists.txt b/jungfrau/CMakeLists.txt index 2986d4040..91ed6cb70 100644 --- a/jungfrau/CMakeLists.txt +++ b/jungfrau/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFCalibration STATIC JFCalibration.cpp JFCalibration.h JFConversionFloatingPoint.cpp JFConversionFloatingPoint.h diff --git a/licenses/COLLECT.sh b/licenses/COLLECT.sh index 375d6da35..ad8408608 100644 --- a/licenses/COLLECT.sh +++ b/licenses/COLLECT.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only # Collect the verbatim license texts of all third-party components into this directory. # # This is the bulk reference material that accompanies THIRD_PARTY_NOTICES.md (the human-readable diff --git a/make_doc.sh b/make_doc.sh index 58aa31f8a..7667d6ff6 100755 --- a/make_doc.sh +++ b/make_doc.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only set -euo pipefail diff --git a/preview/CMakeLists.txt b/preview/CMakeLists.txt index b0a855320..81fd4bca5 100644 --- a/preview/CMakeLists.txt +++ b/preview/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + find_package(ZLIB REQUIRED) ADD_LIBRARY(JFJochPreview STATIC diff --git a/reader/CMakeLists.txt b/reader/CMakeLists.txt index a8f507003..5c098bbea 100644 --- a/reader/CMakeLists.txt +++ b/reader/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochReader STATIC JFJochReader.cpp JFJochReader.h JFJochHDF5Reader.cpp diff --git a/receiver/CMakeLists.txt b/receiver/CMakeLists.txt index 53da392dd..9285d2bac 100644 --- a/receiver/CMakeLists.txt +++ b/receiver/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochReceiver STATIC FrameTransformation.cpp FrameTransformation.h JFJochReceiverService.cpp JFJochReceiverService.h diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 71d6f78c8..b316d427c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + # Quick cross-platform checks: the results that depend on the architecture, the compiler or the # standard library (bitshuffle/LZ4 SIMD paths, HDF5 read-back, CBF parsing, CPU spot finding, FFTW # indexing, gemmi MTZ/CIF). Built in every configuration, the portable (viewer/rugnux-only) ones diff --git a/tests/FPGAPTPTest.cpp b/tests/FPGAPTPTest.cpp index 210160230..05d90311f 100644 --- a/tests/FPGAPTPTest.cpp +++ b/tests/FPGAPTPTest.cpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute +// SPDX-License-Identifier: GPL-3.0-only + #include #include #include diff --git a/tests/SearchSpaceGroupTest.cpp b/tests/SearchSpaceGroupTest.cpp index 9f2959f32..f69b21963 100644 --- a/tests/SearchSpaceGroupTest.cpp +++ b/tests/SearchSpaceGroupTest.cpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +// SPDX-License-Identifier: GPL-3.0-only + #include #include "../image_analysis/scale_merge/SearchSpaceGroup.h" diff --git a/tests/enospc_shim.c b/tests/enospc_shim.c index d89fcde95..451469781 100644 --- a/tests/enospc_shim.c +++ b/tests/enospc_shim.c @@ -1,8 +1,9 @@ // SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only OR HDF5 +// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-HDF5 // This file may be used, modified, and distributed under either GPL-3.0-only -// or the HDF5 license, at the recipient's option. +// or the HDF5 license, at the recipient's option. LicenseRef-HDF5 is the HDF5 license +// as HDF5 ships it, licenses/hdf5.txt. // Kindly acknowledge modifications from the HDF5 Group diff --git a/tests/nxmx_geometry_dials_test.py b/tests/nxmx_geometry_dials_test.py index 692695f27..c8118bf04 100644 --- a/tests/nxmx_geometry_dials_test.py +++ b/tests/nxmx_geometry_dials_test.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """Check that DIALS places a TILTED detector where Jungfraujoch does. Run under the DIALS environment: diff --git a/tests/test_data/jfjoch_broker_test.py b/tests/test_data/jfjoch_broker_test.py index 5ba4b4815..1598fca77 100644 --- a/tests/test_data/jfjoch_broker_test.py +++ b/tests/test_data/jfjoch_broker_test.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + import requests import h5py import hdf5plugin diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index a2cc71c45..cd951abd0 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only # Offline analysis CLI tools. These link only the portable libraries (reader, # image_analysis, writer, common), so they build in viewer-only / Windows packages too diff --git a/tools/battery/battery.py b/tools/battery/battery.py index f85099c17..b06b4efd5 100644 --- a/tools/battery/battery.py +++ b/tools/battery/battery.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """Rugnux validation battery: run, score, report, compare. Arms and where their truth comes from: diff --git a/tools/battery/depdata_check.py b/tools/battery/depdata_check.py index ab828c7fc..28eaeebe4 100644 --- a/tools/battery/depdata_check.py +++ b/tools/battery/depdata_check.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """depdata_check.py -- Rugnux's merged intensities against the depositor's, shell by shell. A second, REFMAC-free quality check for the open arm, run AFTER Rugnux has written its MTZ. The diff --git a/tools/battery/doc_check.py b/tools/battery/doc_check.py index 8a3d0bccc..faa0118b4 100644 --- a/tools/battery/doc_check.py +++ b/tools/battery/doc_check.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """doc_check.py -- the battery manifests against the pages that document their datasets. open.json <-> docs/EXTERNAL_TEST_DATA.md diff --git a/tools/battery/inputs.py b/tools/battery/inputs.py index b0d0a5f31..21cdccb75 100644 --- a/tools/battery/inputs.py +++ b/tools/battery/inputs.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + """Finding a dataset's input file, and reading an XDS CORRECT.LP as a reference. Both run only when a manifest is (re)built - `battery.py discover` and `battery.py refs`. A battery diff --git a/tools/battery/model_check.py b/tools/battery/model_check.py index 58efc4444..4d2f223e3 100644 --- a/tools/battery/model_check.py +++ b/tools/battery/model_check.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """model_check.py -- R-factors of the deposited model against Rugnux's merged data. An external check for the open arm, run AFTER Rugnux has written its MTZ, so it cannot bias the diff --git a/tools/battery/nullmodel.py b/tools/battery/nullmodel.py index 9b92e220d..888a5d9f5 100644 --- a/tools/battery/nullmodel.py +++ b/tools/battery/nullmodel.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + """The wrong-model null: a wrong --model must change nothing and must be recognised as wrong. nullmodel.json lists sets of the open arm, each with five wrong models - deposited coordinates of diff --git a/tools/battery/paper_plots.py b/tools/battery/paper_plots.py index 5bbe063d3..94c6b038a 100644 --- a/tools/battery/paper_plots.py +++ b/tools/battery/paper_plots.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """paper_plots.py -- three battery figures of the open arm: R-free and high-resolution limit (deposition vs Rugnux) and the processing time per dataset. diff --git a/tools/battery/refine_parity.py b/tools/battery/refine_parity.py index a00786b10..9fecd6997 100644 --- a/tools/battery/refine_parity.py +++ b/tools/battery/refine_parity.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """refine_parity.py -- rugnux's refinement score against REFMAC's, term by term, on identical inputs. For one model and one merged MTZ (F, SIGF, FreeR_flag) it scores the model as given, refining nothing, twice: diff --git a/tools/battery/render.py b/tools/battery/render.py index 63a949700..78368fa84 100644 --- a/tools/battery/render.py +++ b/tools/battery/render.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + """One document, written twice: Markdown and a self-contained HTML page. The report is built as a list of blocks (heading, paragraph, bullet list, table) and each writer diff --git a/tools/battery/report.py b/tools/battery/report.py index 5d07e1fd7..4951211d3 100644 --- a/tools/battery/report.py +++ b/tools/battery/report.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + """The per-run report and the run-to-run comparison.""" import json import multiprocessing diff --git a/tools/battery/results/timing_platforms/timing_table.py b/tools/battery/results/timing_platforms/timing_table.py index 6270f5628..4c47d3b04 100644 --- a/tools/battery/results/timing_platforms/timing_table.py +++ b/tools/battery/results/timing_platforms/timing_table.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """Cross-platform report of the rugnux timing benchmark (battery.py timing). python3 -I timing_table.py platforms.json [-o out.md] diff --git a/tools/battery/rugnux_anomalous.py b/tools/battery/rugnux_anomalous.py index 5cefda172..7f21a13b3 100644 --- a/tools/battery/rugnux_anomalous.py +++ b/tools/battery/rugnux_anomalous.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """ rugnux_anomalous.py -- score one or more rugnux merge "arms" by anomalous peak height at known anomalous scatterers, using SHELXC + ANODE and a model that is placed once diff --git a/tools/battery/score.py b/tools/battery/score.py index 050fdac23..d4d7bf671 100644 --- a/tools/battery/score.py +++ b/tools/battery/score.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + """Scoring one rugnux run against its reference. One dataset, one verdict, one cause, decided in this order: did it crash -> did it run -> is the diff --git a/tools/battery/sgequiv.py b/tools/battery/sgequiv.py index 28e3dcba5..84836ac4b 100644 --- a/tools/battery/sgequiv.py +++ b/tools/battery/sgequiv.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + """Which space-group differences a diffraction experiment could actually have decided. A merged dataset sees only (a) which reflections are equivalent in intensity - the rotation parts diff --git a/tools/battery/shelx_check.py b/tools/battery/shelx_check.py index c1caa9b51..45f80eaa9 100644 --- a/tools/battery/shelx_check.py +++ b/tools/battery/shelx_check.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """SHELXL refinement of a small-molecule set's reference structure (COD) against rugnux's p.hkl. Ground truth for small molecules, the way a chemical crystallographer would judge the data: the diff --git a/tools/battery/still/float32_to_int16.py b/tools/battery/still/float32_to_int16.py index a6177962a..cca9cbd52 100644 --- a/tools/battery/still/float32_to_int16.py +++ b/tools/battery/still/float32_to_int16.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + """Data preparation for the still battery (not product code): copy a SwissFEL converted JUNGFRAU file, replacing /data/data (float32 keV) by int16 photon counts, bitshuffle/LZ4, one chunk per frame. Everything else is copied unchanged. Non-finite values (NaN, inf) -> -32768, the int16 error marker. usage: float32_to_int16.py diff --git a/tools/battery/still/rugnux_stills_ab.py b/tools/battery/still/rugnux_stills_ab.py index e9e555b45..3375297f9 100755 --- a/tools/battery/still/rugnux_stills_ab.py +++ b/tools/battery/still/rugnux_stills_ab.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """ rugnux_stills_ab.py -- A/B comparison of two (or more) rugnux argument sets on a fixed stills subset. diff --git a/tools/battery/still_battery.py b/tools/battery/still_battery.py index 6b8472ed3..fef5d36f7 100644 --- a/tools/battery/still_battery.py +++ b/tools/battery/still_battery.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """Rugnux still battery: run serial (XFEL stills) datasets, score the deposited model against each merge, report, compare. diff --git a/tools/battery/symmetry_evidence.py b/tools/battery/symmetry_evidence.py index 9e647f00b..861a71dca 100644 --- a/tools/battery/symmetry_evidence.py +++ b/tools/battery/symmetry_evidence.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only """symmetry_evidence.py -- an independent space-group assessment of one open-arm set by established programs (CCP4: POINTLESS, AIMLESS, CTRUNCATE, ZANUDA), kept with the battery as tools/battery/symmetry//. diff --git a/tools/battery/test_score.py b/tools/battery/test_score.py index 3c36c0928..fbafe8d57 100644 --- a/tools/battery/test_score.py +++ b/tools/battery/test_score.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + """Targeted tests of score.py, the part a wrong answer would be laundered through. Plain stdlib unittest, so it runs with `python3 tools/battery/test_score.py` (or diff --git a/tools/battery/timing.py b/tools/battery/timing.py index 6b10aaec0..e8f9d30c6 100644 --- a/tools/battery/timing.py +++ b/tools/battery/timing.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + """The timing benchmarks: a few sets, each started from a model rugnux has to place by molecular replacement, timed per step and checked for a right answer. diff --git a/tools/notarize_macos.sh b/tools/notarize_macos.sh index 84d98c567..698b64292 100755 --- a/tools/notarize_macos.sh +++ b/tools/notarize_macos.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only # Notarize the macOS release artefacts with Apple and staple the ticket where one can be stapled. # # tools/notarize_macos.sh ... diff --git a/update_version.sh b/update_version.sh index 6a61e04d5..29ea0bcd6 100755 --- a/update_version.sh +++ b/update_version.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only # # Copyright (2019-2024) Paul Scherrer Institute diff --git a/viewer/jfjoch_viewer.cpp b/viewer/jfjoch_viewer.cpp index d205029fd..bd45d6976 100644 --- a/viewer/jfjoch_viewer.cpp +++ b/viewer/jfjoch_viewer.cpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute +// SPDX-License-Identifier: GPL-3.0-only + #include #include #include diff --git a/writer/CMakeLists.txt b/writer/CMakeLists.txt index 263a158e4..9f77eb8b3 100644 --- a/writer/CMakeLists.txt +++ b/writer/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + ADD_LIBRARY(JFJochHDF5Wrappers STATIC HDF5Objects.cpp HDF5Objects.h H5FDpoison_sec2.c H5FDpoison_sec2.h diff --git a/writer/H5FDpoison_sec2.c b/writer/H5FDpoison_sec2.c index 7dd99e453..8ea0cbcaf 100644 --- a/writer/H5FDpoison_sec2.c +++ b/writer/H5FDpoison_sec2.c @@ -1,8 +1,9 @@ // SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only OR HDF5 +// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-HDF5 // This file may be used, modified, and distributed under either GPL-3.0-only -// or the HDF5 license, at the recipient's option. +// or the HDF5 license, at the recipient's option. LicenseRef-HDF5 is the HDF5 license +// as HDF5 ships it, licenses/hdf5.txt. #include "H5FDpoison_sec2.h" diff --git a/writer/H5FDpoison_sec2.h b/writer/H5FDpoison_sec2.h index 5470080d1..9071f2bf3 100644 --- a/writer/H5FDpoison_sec2.h +++ b/writer/H5FDpoison_sec2.h @@ -1,8 +1,9 @@ // SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only OR HDF5 +// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-HDF5 // This file may be used, modified, and distributed under either GPL-3.0-only -// or the HDF5 license, at the recipient's option. +// or the HDF5 license, at the recipient's option. LicenseRef-HDF5 is the HDF5 license +// as HDF5 ships it, licenses/hdf5.txt. #ifndef H5FD_POISON_SEC2_H #define H5FD_POISON_SEC2_H diff --git a/xds-plugin/CMakeLists.txt b/xds-plugin/CMakeLists.txt index 5eb430f09..adf914816 100644 --- a/xds-plugin/CMakeLists.txt +++ b/xds-plugin/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute +# SPDX-License-Identifier: GPL-3.0-only + # The plugin's own release number. Not the VERSION_* in plugin.h: those fill the info array, where XDS # requires the major version to be 0 and refuses the plugin otherwise. SET(JFJOCH_XDS_PLUGIN_VERSION 1.1.0) diff --git a/xds-plugin/plugin.cpp b/xds-plugin/plugin.cpp index 88a369097..dc8061d22 100644 --- a/xds-plugin/plugin.cpp +++ b/xds-plugin/plugin.cpp @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only +// SPDX-License-Identifier: GPL-3.0-only AND BSD-3-Clause // Based on Durin plugin code from Diamond Light Source Ltd. and Global Phasing (BSD-3 license) diff --git a/xds-plugin/plugin.h b/xds-plugin/plugin.h index 6cd2cc84d..8994aafa7 100644 --- a/xds-plugin/plugin.h +++ b/xds-plugin/plugin.h @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute -// SPDX-License-Identifier: GPL-3.0-only +// SPDX-License-Identifier: GPL-3.0-only AND BSD-3-Clause // Based on Durin plugin code from Diamond Light Source Ltd. and Global Phasing (BSD-3 license)