From fada085f0e913e4be9ee708f41b540d634df0a0f Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 15 Oct 2021 15:54:58 +0200 Subject: [PATCH] added .py licenses --- notice_to_add_for_every_file | 4 ++-- python/examples/exposure_time.py | 2 ++ python/examples/manipulate_pattern.py | 2 ++ python/examples/non-blocking-acquire-process.py | 2 ++ python/examples/non-blocking-acquire.py | 2 ++ python/examples/reading_dacs.py | 2 ++ python/examples/reading_temperature.py | 2 ++ python/examples/threshold_scan.py | 2 ++ python/examples/use_currentsource.py | 2 ++ python/examples/use_enum.py | 2 ++ python/examples/using_scan.py | 2 ++ python/scripts/basic.py | 2 ++ python/scripts/compare_with_commandline.py | 2 ++ python/scripts/compile_servers.py | 2 ++ python/scripts/generate_enums.py | 2 ++ python/scripts/generate_functions.py | 2 ++ python/scripts/list_tested_cmd.py | 2 ++ python/scripts/parse.py | 2 ++ python/scripts/test_virtual.py | 2 ++ python/setup.py | 2 ++ python/slsdet/__init__.py | 2 ++ python/slsdet/adcs.py | 2 ++ python/slsdet/ctb.py | 2 ++ python/slsdet/dacs.py | 2 ++ python/slsdet/decorators.py | 2 ++ python/slsdet/detector.py | 2 ++ python/slsdet/detector_property.py | 2 ++ python/slsdet/eiger.py | 2 ++ python/slsdet/enums.py | 2 ++ python/slsdet/errors.py | 2 ++ python/slsdet/gotthard.py | 2 ++ python/slsdet/gotthard2.py | 2 ++ python/slsdet/jungfrau.py | 2 ++ python/slsdet/lookup.py | 2 ++ python/slsdet/moench.py | 2 ++ python/slsdet/mythen3.py | 2 ++ python/slsdet/pattern.py | 2 ++ python/slsdet/proxy.py | 2 ++ python/slsdet/registers.py | 2 ++ python/slsdet/temperature.py | 2 ++ python/slsdet/utils.py | 2 ++ python/tests/test_utils.py | 2 ++ slsDetectorCalibration/interpolations/etaVEL/EtaVELTr.py | 2 ++ 43 files changed, 86 insertions(+), 2 deletions(-) mode change 100755 => 100644 python/scripts/basic.py mode change 100755 => 100644 python/scripts/list_tested_cmd.py mode change 100755 => 100644 python/setup.py mode change 100755 => 100644 python/slsdet/__init__.py mode change 100755 => 100644 python/slsdet/adcs.py mode change 100755 => 100644 python/slsdet/dacs.py mode change 100755 => 100644 python/slsdet/decorators.py mode change 100755 => 100644 python/slsdet/detector.py mode change 100755 => 100644 python/slsdet/detector_property.py mode change 100755 => 100644 python/slsdet/eiger.py mode change 100755 => 100644 python/slsdet/errors.py mode change 100755 => 100644 python/slsdet/registers.py mode change 100755 => 100644 python/slsdet/utils.py mode change 100755 => 100644 python/tests/test_utils.py diff --git a/notice_to_add_for_every_file b/notice_to_add_for_every_file index e066cffb9..1c092a9b1 100644 --- a/notice_to_add_for_every_file +++ b/notice_to_add_for_every_file @@ -1,2 +1,2 @@ -// SPDX-License-Identifier: LGPL-3.0-or-other -// Copyright (C) 2021 Contributors to the SLS Detector Package +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package diff --git a/python/examples/exposure_time.py b/python/examples/exposure_time.py index eab8c12f0..510562f27 100644 --- a/python/examples/exposure_time.py +++ b/python/examples/exposure_time.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package """ Example showing how to set and get exposure times """ diff --git a/python/examples/manipulate_pattern.py b/python/examples/manipulate_pattern.py index 0e11979c3..9d5263ef8 100644 --- a/python/examples/manipulate_pattern.py +++ b/python/examples/manipulate_pattern.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from slsdet import Detector, patternParameters diff --git a/python/examples/non-blocking-acquire-process.py b/python/examples/non-blocking-acquire-process.py index 486a3dd93..0d7c41f98 100644 --- a/python/examples/non-blocking-acquire-process.py +++ b/python/examples/non-blocking-acquire-process.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package import time from multiprocessing import Process from slsdet import Detector, runStatus diff --git a/python/examples/non-blocking-acquire.py b/python/examples/non-blocking-acquire.py index dd434b2a0..de430f677 100644 --- a/python/examples/non-blocking-acquire.py +++ b/python/examples/non-blocking-acquire.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package import time from slsdet import Detector, runStatus diff --git a/python/examples/reading_dacs.py b/python/examples/reading_dacs.py index 8a17b1b61..8b208f0ce 100644 --- a/python/examples/reading_dacs.py +++ b/python/examples/reading_dacs.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from slsdet import Detector, Eiger, dacIndex diff --git a/python/examples/reading_temperature.py b/python/examples/reading_temperature.py index e167e3860..2b88d3ddb 100644 --- a/python/examples/reading_temperature.py +++ b/python/examples/reading_temperature.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from slsdet import Detector, Eiger, dacIndex diff --git a/python/examples/threshold_scan.py b/python/examples/threshold_scan.py index 6505b64b3..aa81b57a0 100644 --- a/python/examples/threshold_scan.py +++ b/python/examples/threshold_scan.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from slsdet import Eiger d = Eiger() diff --git a/python/examples/use_currentsource.py b/python/examples/use_currentsource.py index ecc0a588f..7b61f3199 100644 --- a/python/examples/use_currentsource.py +++ b/python/examples/use_currentsource.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from slsdet import Detector, currentSrcParameters s = currentSrcParameters() diff --git a/python/examples/use_enum.py b/python/examples/use_enum.py index 8e8eaf210..1b7298298 100644 --- a/python/examples/use_enum.py +++ b/python/examples/use_enum.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package # Most settings are represented as enums that can be # explicitly imported diff --git a/python/examples/using_scan.py b/python/examples/using_scan.py index 2d8f5a74a..c665eb40a 100644 --- a/python/examples/using_scan.py +++ b/python/examples/using_scan.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from slsdet import Mythen3, scanParameters, dacIndex diff --git a/python/scripts/basic.py b/python/scripts/basic.py old mode 100755 new mode 100644 index 2135b4a58..f07e8285b --- a/python/scripts/basic.py +++ b/python/scripts/basic.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package import os import sys import numpy as np diff --git a/python/scripts/compare_with_commandline.py b/python/scripts/compare_with_commandline.py index 9d4474b20..3a584252c 100644 --- a/python/scripts/compare_with_commandline.py +++ b/python/scripts/compare_with_commandline.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package import subprocess import locale out = subprocess.run(['g', 'list'], stdout = subprocess.PIPE, encoding=locale.getpreferredencoding()) diff --git a/python/scripts/compile_servers.py b/python/scripts/compile_servers.py index e3395a06f..30422d110 100644 --- a/python/scripts/compile_servers.py +++ b/python/scripts/compile_servers.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package import subprocess import os import sys diff --git a/python/scripts/generate_enums.py b/python/scripts/generate_enums.py index bfc02897b..a3e9b534e 100644 --- a/python/scripts/generate_enums.py +++ b/python/scripts/generate_enums.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package """ Code generator for enum bindings in the Python extension. Reads the sls_detector_defs.h and enums_in.cpp then outputs diff --git a/python/scripts/generate_functions.py b/python/scripts/generate_functions.py index 5a955e63b..242cd2bb3 100644 --- a/python/scripts/generate_functions.py +++ b/python/scripts/generate_functions.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package """ This file is used to auto generate Python bindings for the sls::Detector class. The tool needs the libclang bindings diff --git a/python/scripts/list_tested_cmd.py b/python/scripts/list_tested_cmd.py old mode 100755 new mode 100644 index 4e4cbe6c8..4ccda78d9 --- a/python/scripts/list_tested_cmd.py +++ b/python/scripts/list_tested_cmd.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package """ Utility to find and list which command line functions have tests and where the tests are located diff --git a/python/scripts/parse.py b/python/scripts/parse.py index c8b44ec8c..310a6af36 100644 --- a/python/scripts/parse.py +++ b/python/scripts/parse.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package import re import subprocess from subprocess import PIPE diff --git a/python/scripts/test_virtual.py b/python/scripts/test_virtual.py index 2024194ac..f7d11b03b 100644 --- a/python/scripts/test_virtual.py +++ b/python/scripts/test_virtual.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package import pytest import subprocess import os diff --git a/python/setup.py b/python/setup.py old mode 100755 new mode 100644 index 61e070e4f..6a4c6bbed --- a/python/setup.py +++ b/python/setup.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package """ Setup file for slsdet Build upon the pybind11 example found here: https://github.com/pybind/python_example diff --git a/python/slsdet/__init__.py b/python/slsdet/__init__.py old mode 100755 new mode 100644 index 698224525..4055393e8 --- a/python/slsdet/__init__.py +++ b/python/slsdet/__init__.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package # from .detector import Detector, DetectorError, free_shared_memory from .eiger import Eiger from .ctb import Ctb diff --git a/python/slsdet/adcs.py b/python/slsdet/adcs.py old mode 100755 new mode 100644 index 9534a38cb..e57d3e260 --- a/python/slsdet/adcs.py +++ b/python/slsdet/adcs.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from functools import partial class Adc: def __init__(self, name, enum, detector): diff --git a/python/slsdet/ctb.py b/python/slsdet/ctb.py index 73a2328e7..10afd3ae3 100644 --- a/python/slsdet/ctb.py +++ b/python/slsdet/ctb.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from .detector import Detector from .utils import element_if_equal from .dacs import DetectorDacs diff --git a/python/slsdet/dacs.py b/python/slsdet/dacs.py old mode 100755 new mode 100644 index 2ce69a4a1..5628eb3a6 --- a/python/slsdet/dacs.py +++ b/python/slsdet/dacs.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from .detector_property import DetectorProperty from functools import partial import numpy as np diff --git a/python/slsdet/decorators.py b/python/slsdet/decorators.py old mode 100755 new mode 100644 index 8e8f2c600..6fb1d06cf --- a/python/slsdet/decorators.py +++ b/python/slsdet/decorators.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ diff --git a/python/slsdet/detector.py b/python/slsdet/detector.py old mode 100755 new mode 100644 index 17b11e405..6c610de27 --- a/python/slsdet/detector.py +++ b/python/slsdet/detector.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from _slsdet import CppDetectorApi from _slsdet import slsDetectorDefs from _slsdet import IpAddr, MacAddr diff --git a/python/slsdet/detector_property.py b/python/slsdet/detector_property.py old mode 100755 new mode 100644 index 3ca69ed36..c7b49b03e --- a/python/slsdet/detector_property.py +++ b/python/slsdet/detector_property.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from collections.abc import Iterable import numpy as np diff --git a/python/slsdet/eiger.py b/python/slsdet/eiger.py old mode 100755 new mode 100644 index 3e45b1e1d..a65532677 --- a/python/slsdet/eiger.py +++ b/python/slsdet/eiger.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ diff --git a/python/slsdet/enums.py b/python/slsdet/enums.py index fdbfe7d2f..02e3c5126 100644 --- a/python/slsdet/enums.py +++ b/python/slsdet/enums.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package """ Automatically improt all enums from slsDetectorDefs and give an alias with their name in the enum module. All names from the enum diff --git a/python/slsdet/errors.py b/python/slsdet/errors.py old mode 100755 new mode 100644 index f16ceeb9f..51a24a5cb --- a/python/slsdet/errors.py +++ b/python/slsdet/errors.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ diff --git a/python/slsdet/gotthard.py b/python/slsdet/gotthard.py index ea33b7462..9468c78a3 100644 --- a/python/slsdet/gotthard.py +++ b/python/slsdet/gotthard.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ diff --git a/python/slsdet/gotthard2.py b/python/slsdet/gotthard2.py index 8194c7a96..bdb36097f 100644 --- a/python/slsdet/gotthard2.py +++ b/python/slsdet/gotthard2.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ diff --git a/python/slsdet/jungfrau.py b/python/slsdet/jungfrau.py index bd92ac757..9da5b7771 100644 --- a/python/slsdet/jungfrau.py +++ b/python/slsdet/jungfrau.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ diff --git a/python/slsdet/lookup.py b/python/slsdet/lookup.py index be157841d..9bb99fe29 100644 --- a/python/slsdet/lookup.py +++ b/python/slsdet/lookup.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from .detector import Detector def view(name, det = Detector): diff --git a/python/slsdet/moench.py b/python/slsdet/moench.py index 0398841b1..6ed49a43d 100644 --- a/python/slsdet/moench.py +++ b/python/slsdet/moench.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ diff --git a/python/slsdet/mythen3.py b/python/slsdet/mythen3.py index 055ee343a..b018699df 100644 --- a/python/slsdet/mythen3.py +++ b/python/slsdet/mythen3.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ diff --git a/python/slsdet/pattern.py b/python/slsdet/pattern.py index fc223ff8e..a2d80fdfe 100644 --- a/python/slsdet/pattern.py +++ b/python/slsdet/pattern.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package import _slsdet from _slsdet import Pattern diff --git a/python/slsdet/proxy.py b/python/slsdet/proxy.py index 0cc498ba6..440433ccb 100644 --- a/python/slsdet/proxy.py +++ b/python/slsdet/proxy.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from .utils import element_if_equal from .enums import dacIndex diff --git a/python/slsdet/registers.py b/python/slsdet/registers.py old mode 100755 new mode 100644 index ae7eeda5e..79da39fff --- a/python/slsdet/registers.py +++ b/python/slsdet/registers.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package class Register: def __init__(self, detector): self._detector = detector diff --git a/python/slsdet/temperature.py b/python/slsdet/temperature.py index ef609eeb8..c34e2f02b 100644 --- a/python/slsdet/temperature.py +++ b/python/slsdet/temperature.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package from functools import partial from collections.abc import Iterable import numpy as np diff --git a/python/slsdet/utils.py b/python/slsdet/utils.py old mode 100755 new mode 100644 index f7d4fbd9d..989cf93e0 --- a/python/slsdet/utils.py +++ b/python/slsdet/utils.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package """ Utility functions that are useful for testing and troubleshooting but not directly used in controlling the detector diff --git a/python/tests/test_utils.py b/python/tests/test_utils.py old mode 100755 new mode 100644 index 500b7858c..1dd8dd152 --- a/python/tests/test_utils.py +++ b/python/tests/test_utils.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ diff --git a/slsDetectorCalibration/interpolations/etaVEL/EtaVELTr.py b/slsDetectorCalibration/interpolations/etaVEL/EtaVELTr.py index ebb152737..3c7d6c080 100644 --- a/slsDetectorCalibration/interpolations/etaVEL/EtaVELTr.py +++ b/slsDetectorCalibration/interpolations/etaVEL/EtaVELTr.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package import numpy as np import math