diff --git a/README.md b/README.md index 11876542ff51ef921c9cee30e63d8cb741f3517e..84902e209f934bedbade23be7f39cb387eb17b2b 100644 --- a/README.md +++ b/README.md @@ -62,9 +62,10 @@ openbis.bundle.min.js ## Requirements +- Software Requirements - IntelliJ IDEA CE -## Step By Step: +## Step By Step ``` File -> New -> Project From Existing Sources @@ -76,6 +77,50 @@ openBISDevelopementEnvironmentASStart openBISDevelopementEnvironmentDSSStart ``` +## Source Code Auto Formatting + +OpenBIS source code uses a particular style preset that guarantees all code is formatted uniformly. + +To make use of the preset go to File/Settings or IntelliJIDEA/Preferences depending on your OS. + +Then import the XML file under 'docs/codestyle/SIS_Conventions_IntelliJ_V3.xml'. See images below: + + + + + + +## Commit Messages Formatting + +OpenBIS source code commit messages use a particular formatting. + +This formatting guarantees that there is a User Story behind it. + +To ensure commits follow the formatting 'Git Hooks' are provided. + +Just copy them from the root folder of this repo run the next command: +```` +%/> cp ./docs/hooks/* ./.git/hooks/ +%/> git add README.md +%/> git commit -m "Test incorrectly formatted message" +Aborting commit. Your commit message is missing an issue number ('SSDM-XXXXX:') +```` + +## Source Code Copyright Header + +OpenBIS source code is licensed under SIS copyright and licensed under 'Apache 2 License': +```` +http://www.apache.org/licenses/LICENSE-2.0 +```` +To guarantee all new source files contain the appropriate license a preset is provided. + +To make use of the preset go to File/Settings or IntelliJIDEA/Preferences depending on your OS. + +Then import the XML file under 'docs/copyright/Copyright_IntelliJ.xml' under the copyright section as the image below indicate. + +Last, set the Copyright Profile under the Copyright section as the image below indicate: + + ## Typical Errors # IntelliJ can't find package com.sun.*, but I can compile the project using the command line! @@ -83,22 +128,19 @@ openBISDevelopementEnvironmentDSSStart Turn off "File | Settings | Build, Execution, Deployment | Compiler | Java Compiler | Use --release option for cross-compilation". -# IntelliJ can't find a particular method: +# IntelliJ can't find a particular method Code compatiblity 1.8 is set by default to work well with our javadoc tools but it can be set to 17 on IntelliJ. See image below. -  -# Test seem to run through Gradle and fail: +# Test seem to run through Gradle and fail They need to be set to run using IntelliJ. -  -# Test seem to run through intelliJ but throw a package not open error: +# Test seem to run through intelliJ but throw a package not open error The project does not uses modules yet. Add '--add-opens' statements manually when launching the tests as shown below. -  ## Development of NG UI diff --git a/api-openbis-python3-pybis/src/python/pybis/__init__.py b/api-openbis-python3-pybis/src/python/pybis/__init__.py index 3dd7db143da23834e6488697829cab639a257bf4..f7d3dd02b92a7a584255b244c26966c387b2cc6b 100644 --- a/api-openbis-python3-pybis/src/python/pybis/__init__.py +++ b/api-openbis-python3-pybis/src/python/pybis/__init__.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# name = "pybis" __author__ = "ID SIS • ETH Zürich" __email__ = "openbis-support@id.ethz.ch" diff --git a/api-openbis-python3-pybis/src/python/pybis/attachment.py b/api-openbis-python3-pybis/src/python/pybis/attachment.py index 23df70ae93424316616d53759c3ca47761c7fcf4..fb54f4c518f5ed45af6e21ddde5f5fb4ce953816 100644 --- a/api-openbis-python3-pybis/src/python/pybis/attachment.py +++ b/api-openbis-python3-pybis/src/python/pybis/attachment.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import base64 import os diff --git a/api-openbis-python3-pybis/src/python/pybis/attribute.py b/api-openbis-python3-pybis/src/python/pybis/attribute.py index a9fa8589e709678b8c3702d4ced5d794aae66719..5863976d70f629421d9593546349320574cfe84b 100644 --- a/api-openbis-python3-pybis/src/python/pybis/attribute.py +++ b/api-openbis-python3-pybis/src/python/pybis/attribute.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from pandas import DataFrame, Series from tabulate import tabulate from .definitions import ( diff --git a/api-openbis-python3-pybis/src/python/pybis/data_set.py b/api-openbis-python3-pybis/src/python/pybis/data_set.py index 0bb13be90a0b4c02c0520a738fff17a0682c264c..f26262bb386a3beae27d61a8fd044b9a42c0443d 100644 --- a/api-openbis-python3-pybis/src/python/pybis/data_set.py +++ b/api-openbis-python3-pybis/src/python/pybis/data_set.py @@ -1,6 +1,23 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + + """ data_set.py diff --git a/api-openbis-python3-pybis/src/python/pybis/dataset.py b/api-openbis-python3-pybis/src/python/pybis/dataset.py index cb48ff50035b90374ed357ac1b7b5fab4474fe65..25a6f910b89789dc25cf493481ba3540c2baad45 100644 --- a/api-openbis-python3-pybis/src/python/pybis/dataset.py +++ b/api-openbis-python3-pybis/src/python/pybis/dataset.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import os from functools import partialmethod from pathlib import Path diff --git a/api-openbis-python3-pybis/src/python/pybis/definitions.py b/api-openbis-python3-pybis/src/python/pybis/definitions.py index d94ed71c61cf0199e22cf103de10ecd7a5926b30..25c31e6656e2ec4425557f4fde6a81ddd9c59a78 100644 --- a/api-openbis-python3-pybis/src/python/pybis/definitions.py +++ b/api-openbis-python3-pybis/src/python/pybis/definitions.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import copy diff --git a/api-openbis-python3-pybis/src/python/pybis/entity_type.py b/api-openbis-python3-pybis/src/python/pybis/entity_type.py index 60a97b954db4a9fed27156663968dfa91ba5b060..139d3a9d0cf8ac4f009f41b2b3712c379c780172 100644 --- a/api-openbis-python3-pybis/src/python/pybis/entity_type.py +++ b/api-openbis-python3-pybis/src/python/pybis/entity_type.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from tabulate import tabulate from texttable import Texttable from pandas import DataFrame diff --git a/api-openbis-python3-pybis/src/python/pybis/experiment.py b/api-openbis-python3-pybis/src/python/pybis/experiment.py index 488418cdacfd6d5f526b9a1a0f31c69db1ac7fb2..f078aef9b9b962d100a80dfe69c687c7f7a45d27 100644 --- a/api-openbis-python3-pybis/src/python/pybis/experiment.py +++ b/api-openbis-python3-pybis/src/python/pybis/experiment.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from .property import PropertyHolder from .attribute import AttrHolder from .openbis_object import OpenBisObject diff --git a/api-openbis-python3-pybis/src/python/pybis/group.py b/api-openbis-python3-pybis/src/python/pybis/group.py index c48221d3700cf7a7a94780abbaff729a75afdf32..e44e71cb01475e747ec9aad9be60142153f21917 100644 --- a/api-openbis-python3-pybis/src/python/pybis/group.py +++ b/api-openbis-python3-pybis/src/python/pybis/group.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from .attribute import AttrHolder from .openbis_object import OpenBisObject from .utils import VERBOSE, extract_permid, extract_nested_permid, format_timestamp diff --git a/api-openbis-python3-pybis/src/python/pybis/material.py b/api-openbis-python3-pybis/src/python/pybis/material.py index c229a442efd953d91eb8fe815a02262457f4372a..74b8e3b6040edba8df5cd80aecb4cf9613195506 100644 --- a/api-openbis-python3-pybis/src/python/pybis/material.py +++ b/api-openbis-python3-pybis/src/python/pybis/material.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from .attribute import AttrHolder from .openbis_object import OpenBisObject from .property import PropertyHolder diff --git a/api-openbis-python3-pybis/src/python/pybis/openbis_object.py b/api-openbis-python3-pybis/src/python/pybis/openbis_object.py index 61271bdfe5ee55761091a913aa6f33bff8edc35c..812f6afe8f10745cac1ddb4d6d2458e0b84e0458 100644 --- a/api-openbis-python3-pybis/src/python/pybis/openbis_object.py +++ b/api-openbis-python3-pybis/src/python/pybis/openbis_object.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from .property import PropertyHolder from .attribute import AttrHolder from .utils import VERBOSE diff --git a/api-openbis-python3-pybis/src/python/pybis/person.py b/api-openbis-python3-pybis/src/python/pybis/person.py index e9e43b5346b5fb3b4074e14e04f6a41174f347fd..a988b102357b28fb7a7a6b414dd7d554ef6024f3 100644 --- a/api-openbis-python3-pybis/src/python/pybis/person.py +++ b/api-openbis-python3-pybis/src/python/pybis/person.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from .attribute import AttrHolder from .openbis_object import OpenBisObject from .utils import VERBOSE diff --git a/api-openbis-python3-pybis/src/python/pybis/project.py b/api-openbis-python3-pybis/src/python/pybis/project.py index e84db7778c6879832b259751ac61b17fccefe3c3..faa626c6a6932ee048a585eb67627d5c9b93ae04 100644 --- a/api-openbis-python3-pybis/src/python/pybis/project.py +++ b/api-openbis-python3-pybis/src/python/pybis/project.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from .attribute import AttrHolder from .openbis_object import OpenBisObject from .utils import VERBOSE, is_identifier, is_permid diff --git a/api-openbis-python3-pybis/src/python/pybis/property.py b/api-openbis-python3-pybis/src/python/pybis/property.py index a677fd77f01631226d3bbf55ec6f77ffbcca3965..c792454a77b5dc4c79ba51303d83457aac5c6954 100644 --- a/api-openbis-python3-pybis/src/python/pybis/property.py +++ b/api-openbis-python3-pybis/src/python/pybis/property.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from tabulate import tabulate from texttable import Texttable from pybis.utils import ( diff --git a/api-openbis-python3-pybis/src/python/pybis/pybis.py b/api-openbis-python3-pybis/src/python/pybis/pybis.py index 81360b6c63c8acdafa06ee01e9fe6662a63d1bf7..a9ebfc8abe15f6e57a763fa1f652e868ec430576 100644 --- a/api-openbis-python3-pybis/src/python/pybis/pybis.py +++ b/api-openbis-python3-pybis/src/python/pybis/pybis.py @@ -1,6 +1,21 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + """ pybis.py diff --git a/api-openbis-python3-pybis/src/python/pybis/role_assignment.py b/api-openbis-python3-pybis/src/python/pybis/role_assignment.py index 521eb495ff72aea8dff553cfc233b033f1a1264a..35609d7e7c74e29de75d22fdee6c05f570094fc8 100644 --- a/api-openbis-python3-pybis/src/python/pybis/role_assignment.py +++ b/api-openbis-python3-pybis/src/python/pybis/role_assignment.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from .attribute import AttrHolder from .openbis_object import OpenBisObject from .utils import VERBOSE diff --git a/api-openbis-python3-pybis/src/python/pybis/sample.py b/api-openbis-python3-pybis/src/python/pybis/sample.py index 9311815a3337cd258a2ed2a0d59d1c479de57de5..f60147c1b67bea18345cb168b925c577094788a2 100644 --- a/api-openbis-python3-pybis/src/python/pybis/sample.py +++ b/api-openbis-python3-pybis/src/python/pybis/sample.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from .attribute import AttrHolder from .definitions import openbis_definitions from .openbis_object import OpenBisObject diff --git a/api-openbis-python3-pybis/src/python/pybis/scripts/cli.py b/api-openbis-python3-pybis/src/python/pybis/scripts/cli.py index 5cdd73c29084faa7f452e2f8a85320bdf8bd7fa2..d69ffb9206eb8675adf5d8e28329b8ebcec33a3d 100644 --- a/api-openbis-python3-pybis/src/python/pybis/scripts/cli.py +++ b/api-openbis-python3-pybis/src/python/pybis/scripts/cli.py @@ -1,4 +1,16 @@ - - +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# def main(): print("called") diff --git a/api-openbis-python3-pybis/src/python/pybis/semantic_annotation.py b/api-openbis-python3-pybis/src/python/pybis/semantic_annotation.py index af4e5fbb87c3953e92508408e3ba9f47d1f7aab3..66b717616a2c56fc0331d3df2a6f50dd370e9231 100644 --- a/api-openbis-python3-pybis/src/python/pybis/semantic_annotation.py +++ b/api-openbis-python3-pybis/src/python/pybis/semantic_annotation.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from tabulate import tabulate from .utils import VERBOSE diff --git a/api-openbis-python3-pybis/src/python/pybis/space.py b/api-openbis-python3-pybis/src/python/pybis/space.py index 3a708a94a8f67a91b88aa437dbb169a2f5e60bdb..18c3b12630645b9c9177114bb1ea7c1f6516696d 100644 --- a/api-openbis-python3-pybis/src/python/pybis/space.py +++ b/api-openbis-python3-pybis/src/python/pybis/space.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from .attribute import AttrHolder from .openbis_object import OpenBisObject from .utils import ( diff --git a/api-openbis-python3-pybis/src/python/pybis/tag.py b/api-openbis-python3-pybis/src/python/pybis/tag.py index f0991d1e1de8b7e907fc93a4deafb3df7669c7bd..6d0bdb66c13392978a3119aa5abb10d088dddd9e 100644 --- a/api-openbis-python3-pybis/src/python/pybis/tag.py +++ b/api-openbis-python3-pybis/src/python/pybis/tag.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from .openbis_object import OpenBisObject from .utils import VERBOSE from .attribute import AttrHolder diff --git a/api-openbis-python3-pybis/src/python/pybis/things.py b/api-openbis-python3-pybis/src/python/pybis/things.py index abb78672fab4769b54433e45a913d4038290918b..8f3a590631248e8df62ea8b6fb07793023970af2 100644 --- a/api-openbis-python3-pybis/src/python/pybis/things.py +++ b/api-openbis-python3-pybis/src/python/pybis/things.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from tabulate import tabulate from pandas import DataFrame, Series import pandas as pd diff --git a/api-openbis-python3-pybis/src/python/pybis/utils.py b/api-openbis-python3-pybis/src/python/pybis/utils.py index b3b3e57714ecd739852a472ba557eba68f404ba4..9dff312fda730e37d6670547d7ea735bd3580c32 100644 --- a/api-openbis-python3-pybis/src/python/pybis/utils.py +++ b/api-openbis-python3-pybis/src/python/pybis/utils.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from datetime import datetime from pathlib import Path import re diff --git a/api-openbis-python3-pybis/src/python/pybis/vocabulary.py b/api-openbis-python3-pybis/src/python/pybis/vocabulary.py index 76aa2d3a055204bc73d177ffd64f36bb22ebc935..289b11a275f6198542383c30978b0ca2a12aa419 100644 --- a/api-openbis-python3-pybis/src/python/pybis/vocabulary.py +++ b/api-openbis-python3-pybis/src/python/pybis/vocabulary.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from .attribute import AttrHolder from .definitions import openbis_definitions, get_type_for_entity, get_method_for_entity from .openbis_object import OpenBisObject diff --git a/api-openbis-python3-pybis/src/python/setup.py b/api-openbis-python3-pybis/src/python/setup.py index 9a7baff6ebe8422f8910c49b4b5bded542597e48..3254325c722b739a47b7401c37bd9477fb16f365 100644 --- a/api-openbis-python3-pybis/src/python/setup.py +++ b/api-openbis-python3-pybis/src/python/setup.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import site import sys diff --git a/api-openbis-python3-pybis/src/python/tests/conftest.py b/api-openbis-python3-pybis/src/python/tests/conftest.py index edeaf72291fbd921c1a49128438e1929451636e6..aeb89ccb3e9eb11f8b38d5e4f4a74f4c8661d650 100644 --- a/api-openbis-python3-pybis/src/python/tests/conftest.py +++ b/api-openbis-python3-pybis/src/python/tests/conftest.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import os import time diff --git a/api-openbis-python3-pybis/src/python/tests/test_dataset.py b/api-openbis-python3-pybis/src/python/tests/test_dataset.py index 37b39e35fa04973b5000187d50c4e587920e3d99..deb8d621ed1f6c2a24d2b23ee80c4dd485d3a18b 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_dataset.py +++ b/api-openbis-python3-pybis/src/python/tests/test_dataset.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from pybis.things import Things import json diff --git a/api-openbis-python3-pybis/src/python/tests/test_experiment.py b/api-openbis-python3-pybis/src/python/tests/test_experiment.py index 45d76b7009d4e5015a646b8fdf5ee363deb8f9d2..557b0c6eb12d4c3060e7e98b0f13ade6092bca69 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_experiment.py +++ b/api-openbis-python3-pybis/src/python/tests/test_experiment.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import json import random import re diff --git a/api-openbis-python3-pybis/src/python/tests/test_group.py b/api-openbis-python3-pybis/src/python/tests/test_group.py index cb3e8dad9fd2cb8b55de3e054437e8e837d6dfeb..2ca2bb9a16c931215990bf1ac6c3d193b25f4397 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_group.py +++ b/api-openbis-python3-pybis/src/python/tests/test_group.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import json import random import re diff --git a/api-openbis-python3-pybis/src/python/tests/test_imports.py b/api-openbis-python3-pybis/src/python/tests/test_imports.py index 174a61ea0ce6b64f43e0d7b6601ad96ae9775724..77b2a73131692aee8a7946cb8f678c6b644e8508 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_imports.py +++ b/api-openbis-python3-pybis/src/python/tests/test_imports.py @@ -1,4 +1,16 @@ - - +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# def test_import(): from pybis import Openbis diff --git a/api-openbis-python3-pybis/src/python/tests/test_material.py b/api-openbis-python3-pybis/src/python/tests/test_material.py index 6b5b0e262979fb259209509756f681ee6e89d76d..5aefe2f597115fc48425f9f781f25c2ce5e02816 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_material.py +++ b/api-openbis-python3-pybis/src/python/tests/test_material.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import json import random import re diff --git a/api-openbis-python3-pybis/src/python/tests/test_openbis.py b/api-openbis-python3-pybis/src/python/tests/test_openbis.py index c61c760035525200d162f680cb9bfa324f24b357..94882a43ba253c840188e1ba12b3ad351f846d64 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_openbis.py +++ b/api-openbis-python3-pybis/src/python/tests/test_openbis.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import json import random import re diff --git a/api-openbis-python3-pybis/src/python/tests/test_person.py b/api-openbis-python3-pybis/src/python/tests/test_person.py index 3334fffa189a5ab6328b1b9bcb4a77c18b78f845..47571bcb26fe68a9d8834661f3d489accaa3a9ae 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_person.py +++ b/api-openbis-python3-pybis/src/python/tests/test_person.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import json import random import re diff --git a/api-openbis-python3-pybis/src/python/tests/test_plugin.py b/api-openbis-python3-pybis/src/python/tests/test_plugin.py index 44e48e7bc7068965ef456205451030d6bf1164d1..b1707b6cccb555a0706dc5b25ad12211996b7f81 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_plugin.py +++ b/api-openbis-python3-pybis/src/python/tests/test_plugin.py @@ -1,3 +1,17 @@ +# Copyright ETH 2019 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import json import re diff --git a/api-openbis-python3-pybis/src/python/tests/test_project.py b/api-openbis-python3-pybis/src/python/tests/test_project.py index ffab578f7f2d818ecd605083bd875dd4d876add2..b6878e478e807bcf745fbe23544b1dae275fb834 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_project.py +++ b/api-openbis-python3-pybis/src/python/tests/test_project.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import json import random import re diff --git a/api-openbis-python3-pybis/src/python/tests/test_sample.py b/api-openbis-python3-pybis/src/python/tests/test_sample.py index adeb82de547a3076d42b9aa8c33eb9f143120a08..b6600b2951370d1c17d672a93fa5fbf668e979d8 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_sample.py +++ b/api-openbis-python3-pybis/src/python/tests/test_sample.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import random import re import uuid diff --git a/api-openbis-python3-pybis/src/python/tests/test_space.py b/api-openbis-python3-pybis/src/python/tests/test_space.py index 650f39b2e19e5e75b3f16ce993db45ff0d7f2765..ee58acaabf225b61f92e782ccde7e8811edd5beb 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_space.py +++ b/api-openbis-python3-pybis/src/python/tests/test_space.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import json import re diff --git a/api-openbis-python3-pybis/src/python/tests/test_tag.py b/api-openbis-python3-pybis/src/python/tests/test_tag.py index 4026da9a26764762990d1fea7658dfa03b43df9e..b131b625bbcead6acdf67e511ebd6d2bb55a20d1 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_tag.py +++ b/api-openbis-python3-pybis/src/python/tests/test_tag.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import json import random import re diff --git a/api-openbis-python3-pybis/src/python/tests/test_vocabulary.py b/api-openbis-python3-pybis/src/python/tests/test_vocabulary.py index 96067ad01da699a7b1ac012d26c1fbb6dd4a5f9a..5dc6e2611a058deb4a976039380ea1a36413a6e9 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_vocabulary.py +++ b/api-openbis-python3-pybis/src/python/tests/test_vocabulary.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import json import random import re diff --git a/api-openbis-python3-pybis/src/python/tests/todo_test_external_dms.py b/api-openbis-python3-pybis/src/python/tests/todo_test_external_dms.py index e5b888b985493533079793508d499f7482216e41..8e9e515d9976775b5d1bc2f51ee6b4ebb0b0db06 100644 --- a/api-openbis-python3-pybis/src/python/tests/todo_test_external_dms.py +++ b/api-openbis-python3-pybis/src/python/tests/todo_test_external_dms.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import json import random import re diff --git a/app-openbis-command-line/src/python/obis/__init__.py b/app-openbis-command-line/src/python/obis/__init__.py index 16232cc84831c646b00e685bb2a30b91b09fec14..d2d3d4c48db2c95490dfceca8ba5514bdf997649 100644 --- a/app-openbis-command-line/src/python/obis/__init__.py +++ b/app-openbis-command-line/src/python/obis/__init__.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# __author__ = "ID SIS • ETH Zürich" __email__ = "swen@ethz.ch" __version__ = "0.3.2" diff --git a/app-openbis-command-line/src/python/obis/conftest.py b/app-openbis-command-line/src/python/obis/conftest.py index 26ef109812c06757a67fd2130a9c063a0e48e47b..0c575b297ef09e9f42e34182710ccb762ea603fb 100644 --- a/app-openbis-command-line/src/python/obis/conftest.py +++ b/app-openbis-command-line/src/python/obis/conftest.py @@ -1,6 +1,21 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + """ conftest.py diff --git a/app-openbis-command-line/src/python/obis/dm/__init__.py b/app-openbis-command-line/src/python/obis/dm/__init__.py index 239ae62d551f49f6abeb36d44ab6dc9891bdd529..27363aa004cf1f3c0c73c03d1c57e0fa21b68961 100644 --- a/app-openbis-command-line/src/python/obis/dm/__init__.py +++ b/app-openbis-command-line/src/python/obis/dm/__init__.py @@ -1,6 +1,22 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + """ __init__.py diff --git a/app-openbis-command-line/src/python/obis/dm/checksum.py b/app-openbis-command-line/src/python/obis/dm/checksum.py index 106e3c16e5f68c059ca58c070e2c45e2cfba176f..78326abe45592b8ac165e61b18d3a9607307de1b 100644 --- a/app-openbis-command-line/src/python/obis/dm/checksum.py +++ b/app-openbis-command-line/src/python/obis/dm/checksum.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import abc import ctypes import hashlib diff --git a/app-openbis-command-line/src/python/obis/dm/command_log.py b/app-openbis-command-line/src/python/obis/dm/command_log.py index a503d828a17e17504683a6b75893270a853194e7..eb4b4a981307749c3eaf3cb30b5a781bd74b55a8 100644 --- a/app-openbis-command-line/src/python/obis/dm/command_log.py +++ b/app-openbis-command-line/src/python/obis/dm/command_log.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from datetime import datetime import os diff --git a/app-openbis-command-line/src/python/obis/dm/command_result.py b/app-openbis-command-line/src/python/obis/dm/command_result.py index cb33fb9afae26947d6fb5f0eb903c98fe0e08279..a7341febf508689f87cac6a8012b7fa379bcd5d7 100644 --- a/app-openbis-command-line/src/python/obis/dm/command_result.py +++ b/app-openbis-command-line/src/python/obis/dm/command_result.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# class CommandResult(object): """Encapsulate result from a subprocess call.""" diff --git a/app-openbis-command-line/src/python/obis/dm/commands/__init__.py b/app-openbis-command-line/src/python/obis/dm/commands/__init__.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..6b5d1ce929b60094a402f1ff6e10dc47f67f1e8d 100644 --- a/app-openbis-command-line/src/python/obis/dm/commands/__init__.py +++ b/app-openbis-command-line/src/python/obis/dm/commands/__init__.py @@ -0,0 +1,14 @@ +# Copyright ETH 2007 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# diff --git a/app-openbis-command-line/src/python/obis/dm/commands/addref.py b/app-openbis-command-line/src/python/obis/dm/commands/addref.py index 2c7ba0420e10e53ebf784bc3b54d980c6be61811..38e0c89a2442858db3525f855a89bd31a620c42d 100644 --- a/app-openbis-command-line/src/python/obis/dm/commands/addref.py +++ b/app-openbis-command-line/src/python/obis/dm/commands/addref.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import os from .openbis_command import OpenbisCommand from ..command_result import CommandResult, CommandException diff --git a/app-openbis-command-line/src/python/obis/dm/commands/clone.py b/app-openbis-command-line/src/python/obis/dm/commands/clone.py index dd7a36c79e4e324c83cadad6cb7f355ee156674b..3686533a6e64d0c570879c0d463d579221289bd3 100644 --- a/app-openbis-command-line/src/python/obis/dm/commands/clone.py +++ b/app-openbis-command-line/src/python/obis/dm/commands/clone.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import os import pybis from .openbis_command import OpenbisCommand, ContentCopySelector diff --git a/app-openbis-command-line/src/python/obis/dm/commands/download.py b/app-openbis-command-line/src/python/obis/dm/commands/download.py index a41fde6d35d0b112ab30b1ca0d66da65d14229ca..08f42a4467617d56c1fa40e4a819944e880c92e8 100644 --- a/app-openbis-command-line/src/python/obis/dm/commands/download.py +++ b/app-openbis-command-line/src/python/obis/dm/commands/download.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import os import pybis from .openbis_command import OpenbisCommand, ContentCopySelector diff --git a/app-openbis-command-line/src/python/obis/dm/commands/move.py b/app-openbis-command-line/src/python/obis/dm/commands/move.py index d3afd82093534b2ec7c85bdbd51158f7cbb4fb61..05c7aaad56b346627f83a55a34defdf9f463a25c 100644 --- a/app-openbis-command-line/src/python/obis/dm/commands/move.py +++ b/app-openbis-command-line/src/python/obis/dm/commands/move.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import socket import os import pybis diff --git a/app-openbis-command-line/src/python/obis/dm/commands/openbis_command.py b/app-openbis-command-line/src/python/obis/dm/commands/openbis_command.py index d521fc20e85a1922bef260679ea1eb6de686c8fa..8aa0a3ce1f20414563a76ba5d431dc2ad55ccd89 100644 --- a/app-openbis-command-line/src/python/obis/dm/commands/openbis_command.py +++ b/app-openbis-command-line/src/python/obis/dm/commands/openbis_command.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import getpass import hashlib import os diff --git a/app-openbis-command-line/src/python/obis/dm/commands/openbis_command_test.py b/app-openbis-command-line/src/python/obis/dm/commands/openbis_command_test.py index b53ee5594158d99115ad7f355e3664e14ac86731..1b58b14a17e393f0242484a60f09aa34c5ab8e22 100644 --- a/app-openbis-command-line/src/python/obis/dm/commands/openbis_command_test.py +++ b/app-openbis-command-line/src/python/obis/dm/commands/openbis_command_test.py @@ -1,6 +1,21 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + import getpass from unittest.mock import Mock, MagicMock, ANY diff --git a/app-openbis-command-line/src/python/obis/dm/commands/openbis_sync.py b/app-openbis-command-line/src/python/obis/dm/commands/openbis_sync.py index ec17d364ccc3efbdd4fab848ba93b52b7a79fdb2..5c8de191d1bbd0978a2266a751c10ecc87a644d8 100644 --- a/app-openbis-command-line/src/python/obis/dm/commands/openbis_sync.py +++ b/app-openbis-command-line/src/python/obis/dm/commands/openbis_sync.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import pybis from ..command_result import CommandResult import uuid diff --git a/app-openbis-command-line/src/python/obis/dm/commands/removeref.py b/app-openbis-command-line/src/python/obis/dm/commands/removeref.py index a145a80dd1d40e6a4959f27e175982815098770d..ee2694a85c3abf56b2328fb9a96087a1b49421b4 100644 --- a/app-openbis-command-line/src/python/obis/dm/commands/removeref.py +++ b/app-openbis-command-line/src/python/obis/dm/commands/removeref.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import json import os from .openbis_command import OpenbisCommand, ContentCopySelector diff --git a/app-openbis-command-line/src/python/obis/dm/config.py b/app-openbis-command-line/src/python/obis/dm/config.py index a49ee30f958773f10a66a745f8c00f5941ee7972..8b9d5f268b0fb27a7fca39ae8a240ce7a05a31ec 100644 --- a/app-openbis-command-line/src/python/obis/dm/config.py +++ b/app-openbis-command-line/src/python/obis/dm/config.py @@ -1,6 +1,22 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + """ config.py diff --git a/app-openbis-command-line/src/python/obis/dm/config_test.py b/app-openbis-command-line/src/python/obis/dm/config_test.py index dfd1c79c38858935fc695f0bd68b991217fe74ca..c7a4e32ae4a07bb10e6786008bf1f82f73f9b488 100644 --- a/app-openbis-command-line/src/python/obis/dm/config_test.py +++ b/app-openbis-command-line/src/python/obis/dm/config_test.py @@ -1,6 +1,21 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + """ config_test.py diff --git a/app-openbis-command-line/src/python/obis/dm/data_mgmt.py b/app-openbis-command-line/src/python/obis/dm/data_mgmt.py index 613ae8275d674a648b07da74fcc199e715e0c093..a2cd2897e757c7dde93e96ca0f561052840bcf45 100644 --- a/app-openbis-command-line/src/python/obis/dm/data_mgmt.py +++ b/app-openbis-command-line/src/python/obis/dm/data_mgmt.py @@ -1,6 +1,21 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + """ data_mgmt.py diff --git a/app-openbis-command-line/src/python/obis/dm/data_mgmt_test.py b/app-openbis-command-line/src/python/obis/dm/data_mgmt_test.py index 121f92834e5c5db66a9610402736af06f79c5ef7..977f091a15bbd11105dfc60ab0edc9c4d46a4de3 100644 --- a/app-openbis-command-line/src/python/obis/dm/data_mgmt_test.py +++ b/app-openbis-command-line/src/python/obis/dm/data_mgmt_test.py @@ -1,6 +1,22 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + """ data_mgmt_test.py diff --git a/app-openbis-command-line/src/python/obis/dm/git.py b/app-openbis-command-line/src/python/obis/dm/git.py index e2f5e6ab8f09cdf11f445cc7938c97c7093f0e51..a62b293eaafa9f231315b16a9d5caea0d84ed54a 100644 --- a/app-openbis-command-line/src/python/obis/dm/git.py +++ b/app-openbis-command-line/src/python/obis/dm/git.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import shutil import os from pathlib import Path diff --git a/app-openbis-command-line/src/python/obis/dm/repository_utils.py b/app-openbis-command-line/src/python/obis/dm/repository_utils.py index 7b4ee0257975877f21964d58415388c6eab75a2f..2a899089ca8f7ed837b353bdc17e3982f26ba9f9 100644 --- a/app-openbis-command-line/src/python/obis/dm/repository_utils.py +++ b/app-openbis-command-line/src/python/obis/dm/repository_utils.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import os import socket from .commands.openbis_command import CommandResult diff --git a/app-openbis-command-line/src/python/obis/dm/utils.py b/app-openbis-command-line/src/python/obis/dm/utils.py index 5034cddeaec21ad7ec6797c7dac77f6ba55befa4..fc74dcfac36f7a76a392ca58924e41c8518d8703 100644 --- a/app-openbis-command-line/src/python/obis/dm/utils.py +++ b/app-openbis-command-line/src/python/obis/dm/utils.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import subprocess import os from contextlib import contextmanager diff --git a/app-openbis-command-line/src/python/obis/dm/utils_test.py b/app-openbis-command-line/src/python/obis/dm/utils_test.py index 3df31057c48b407cc619370f11461218d396c34e..3a68a34831737c8a6723c2c8f53d299275e44b8a 100644 --- a/app-openbis-command-line/src/python/obis/dm/utils_test.py +++ b/app-openbis-command-line/src/python/obis/dm/utils_test.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from . import utils diff --git a/app-openbis-command-line/src/python/obis/scripts/__init__.py b/app-openbis-command-line/src/python/obis/scripts/__init__.py index ffeb50a9ac50e1a7ad900ee9fac52b145355af99..4677dbb48f13fb51cd205389ef385397e2784b55 100644 --- a/app-openbis-command-line/src/python/obis/scripts/__init__.py +++ b/app-openbis-command-line/src/python/obis/scripts/__init__.py @@ -1,6 +1,21 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + """ __init__.py diff --git a/app-openbis-command-line/src/python/obis/scripts/cli.py b/app-openbis-command-line/src/python/obis/scripts/cli.py index 7597437a0cec44666ef2127993568e1bb81038d2..131bc54e64a676ae1bc85e63b8af0b91c67a4fd5 100644 --- a/app-openbis-command-line/src/python/obis/scripts/cli.py +++ b/app-openbis-command-line/src/python/obis/scripts/cli.py @@ -1,6 +1,21 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + """ cli.py diff --git a/app-openbis-command-line/src/python/obis/scripts/click_util.py b/app-openbis-command-line/src/python/obis/scripts/click_util.py index ee10c498af82498fd68fa7b3a73331f2644bc190..a0aac0f56bb78d10c10a19688b18e63504142792 100644 --- a/app-openbis-command-line/src/python/obis/scripts/click_util.py +++ b/app-openbis-command-line/src/python/obis/scripts/click_util.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import click from datetime import datetime diff --git a/app-openbis-command-line/src/python/obis/scripts/data_mgmt_runner.py b/app-openbis-command-line/src/python/obis/scripts/data_mgmt_runner.py index a050a735cc3dd73d619820f6f123cbefef758312..98d5581491ab890918aa803da1cc43a744293fd8 100644 --- a/app-openbis-command-line/src/python/obis/scripts/data_mgmt_runner.py +++ b/app-openbis-command-line/src/python/obis/scripts/data_mgmt_runner.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import click import json import os diff --git a/app-openbis-command-line/src/python/setup.py b/app-openbis-command-line/src/python/setup.py index 9f9fa872a3f01022d61f79fc7c098fc5aa89adc1..8d61f0207fc107e409451e3554673511ba6032da 100644 --- a/app-openbis-command-line/src/python/setup.py +++ b/app-openbis-command-line/src/python/setup.py @@ -1,3 +1,17 @@ +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import os import sys diff --git a/docs/codestyle/CISD_Conventions_Eclipse_V2.xml b/docs/codestyle/SIS_Conventions_Eclipse_V3.xml similarity index 99% rename from docs/codestyle/CISD_Conventions_Eclipse_V2.xml rename to docs/codestyle/SIS_Conventions_Eclipse_V3.xml index 970407607e2eeb528e6bdbd366d796b09e66e056..e5b96759015a73db876f96129ca0aa66d9aed081 100644 --- a/docs/codestyle/CISD_Conventions_Eclipse_V2.xml +++ b/docs/codestyle/SIS_Conventions_Eclipse_V3.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <profiles version="21"> - <profile kind="CodeFormatterProfile" name="CISD Conventions V2" version="21"> + <profile kind="CodeFormatterProfile" name="SIS Conventions V3" version="21"> <setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/> <setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/> <setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/> diff --git a/docs/codestyle/CISD_Conventions_IntelliJ_V2.xml b/docs/codestyle/SIS_Conventions_IntelliJ_V3.xml similarity index 97% rename from docs/codestyle/CISD_Conventions_IntelliJ_V2.xml rename to docs/codestyle/SIS_Conventions_IntelliJ_V3.xml index 2d251e3189b41da182e320f69be511f95b0a5f06..8973b64af4b610bfdb3a7d99f026ad0e9ba464e0 100644 --- a/docs/codestyle/CISD_Conventions_IntelliJ_V2.xml +++ b/docs/codestyle/SIS_Conventions_IntelliJ_V3.xml @@ -1,4 +1,4 @@ -<code_scheme name="CISD Conventions V2" version="173"> +<code_scheme name="SIS Conventions V3" version="173"> <option name="RIGHT_MARGIN" value="100" /> <JavaCodeStyleSettings> <option name="SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENT" value="true" /> diff --git a/docs/copyright/Copyright_IntelliJ.xml b/docs/copyright/Copyright_IntelliJ.xml index e80bdd78ea80669ad17dd6a1e94d2be58780cc8f..aa5e8abb70629edd57234526ca4fdac4317fe022 100644 --- a/docs/copyright/Copyright_IntelliJ.xml +++ b/docs/copyright/Copyright_IntelliJ.xml @@ -1,6 +1,6 @@ <component name="CopyrightManager"> <copyright> <option name="notice" value=" Copyright ETH &#36;originalComment.match("Copyright ETH (\d+)", 1, " - ", "&#36;today.year")&#36;today.year Zürich, Scientific IT Services Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. " /> - <option name="myName" value="Copyright" /> + <option name="myName" value="Copyright SIS - License Apache 2" /> </copyright> </component> \ No newline at end of file diff --git a/docs/readme/intellij-codestyle-config-1.png b/docs/readme/intellij-codestyle-config-1.png new file mode 100644 index 0000000000000000000000000000000000000000..031b7700443046850c21f2a92f8570139e34c4ef Binary files /dev/null and b/docs/readme/intellij-codestyle-config-1.png differ diff --git a/docs/readme/intellij-codestyle-config-2.png b/docs/readme/intellij-codestyle-config-2.png new file mode 100644 index 0000000000000000000000000000000000000000..bbeeb8852a4afbeeec7374efae326ef48a6c0f33 Binary files /dev/null and b/docs/readme/intellij-codestyle-config-2.png differ diff --git a/docs/readme/intellij-codestyle-config-3.png b/docs/readme/intellij-codestyle-config-3.png new file mode 100644 index 0000000000000000000000000000000000000000..5f79742671fd90a98aab66eaa2fc2a605eca680a Binary files /dev/null and b/docs/readme/intellij-codestyle-config-3.png differ diff --git a/docs/readme/intellij-codestyle-config-4.png b/docs/readme/intellij-codestyle-config-4.png new file mode 100644 index 0000000000000000000000000000000000000000..6c432bc5b6b59f3147a0e93a6af51635bda25865 Binary files /dev/null and b/docs/readme/intellij-codestyle-config-4.png differ diff --git a/docs/readme/intellij-copyright-config-1.png b/docs/readme/intellij-copyright-config-1.png new file mode 100644 index 0000000000000000000000000000000000000000..62a2f2a2b1bf4684c87920922cd0233c419dd09b Binary files /dev/null and b/docs/readme/intellij-copyright-config-1.png differ diff --git a/docs/readme/intellij-copyright-config-2.png b/docs/readme/intellij-copyright-config-2.png new file mode 100644 index 0000000000000000000000000000000000000000..80a0b96756283fedb118a38ee0b46d460202e916 Binary files /dev/null and b/docs/readme/intellij-copyright-config-2.png differ diff --git a/test-api-openbis-javascript/build.gradle b/test-api-openbis-javascript/build.gradle index bc005df508020da47cc0e5fc5008de0429a5d132..6c606c5fa01b30b7941090f3cf9bfdfb4dd82a93 100644 --- a/test-api-openbis-javascript/build.gradle +++ b/test-api-openbis-javascript/build.gradle @@ -32,6 +32,7 @@ sourceSets { configurations.create('testRuntimeFirst') configurations.create('testRuntimeSecond') configurations.create('externalDss') +configurations.create('blast_tar') dependencies { api project(path: ':server-screening'), @@ -49,6 +50,8 @@ dependencies { testRuntimeSecond 'google:gwt-user:2.4' externalDss project(':server-screening') + + blast_tar "blast:blast:2.2.30@tar.gz" } sourceSets.test.runtimeClasspath = configurations.testRuntimeFirst + configurations.testRuntimeSecond + sourceSets.test.runtimeClasspath @@ -59,6 +62,21 @@ task copyWar(type: Copy, dependsOn: project(':core-plugin-openbis').war) { rename { filename -> 'openbis.war' } } +task copyBlast(type: Copy) { + doFirst { + println "Copying blast library into plugins folder for test" + } + from(configurations.blast_tar.collect { tarTree(it) }) + into 'servers/common/core-plugins/eln-lims' +} + +task deleteBlast(type: Delete) { + doFirst { + println "DELETE temporary blast library folder" + } + delete 'servers/common/core-plugins/eln-lims/bin' +} + task deleteXlsImportVersionInfoJson(type: Delete) { doFirst { println "DELETE xls-import-version-info.json file in $buildDir" @@ -110,3 +128,7 @@ test { } test.dependsOn clean test.dependsOn copyWar +test.dependsOn copyBlast + +test.finalizedBy deleteBlast + diff --git a/test-app-openbis-installer/print_scu_microscopy_statistics.py b/test-app-openbis-installer/print_scu_microscopy_statistics.py index 12f117361303bd2514320bd7be7ece353c72c35f..9fd26ee0f22bcb6b948eb9027814d9cf820979ec 100755 --- a/test-app-openbis-installer/print_scu_microscopy_statistics.py +++ b/test-app-openbis-installer/print_scu_microscopy_statistics.py @@ -1,4 +1,21 @@ #!/usr/bin/python + +# Copyright ETH 2013 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + import sys class Statistics(object): diff --git a/test-app-openbis-installer/settings.py b/test-app-openbis-installer/settings.py index ef2880c55a47e7dab91f919fc61690e3c39fccda..91a932b274f912499fa27a7e000ec3b0ad94e555 100644 --- a/test-app-openbis-installer/settings.py +++ b/test-app-openbis-installer/settings.py @@ -1,3 +1,17 @@ +# Copyright ETH 2013 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# """ Setup infrastructure common for all tests. """ diff --git a/test-app-openbis-installer/source/systemtest/__init__.py b/test-app-openbis-installer/source/systemtest/__init__.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..6b5d1ce929b60094a402f1ff6e10dc47f67f1e8d 100644 --- a/test-app-openbis-installer/source/systemtest/__init__.py +++ b/test-app-openbis-installer/source/systemtest/__init__.py @@ -0,0 +1,14 @@ +# Copyright ETH 2007 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# diff --git a/test-app-openbis-installer/source/systemtest/artifactrepository.py b/test-app-openbis-installer/source/systemtest/artifactrepository.py index 282a5b41294cd5b047450dec9adf602934d80374..19a4d733809581dc0e4deb0a338d7d418ee0c0c3 100644 --- a/test-app-openbis-installer/source/systemtest/artifactrepository.py +++ b/test-app-openbis-installer/source/systemtest/artifactrepository.py @@ -1,3 +1,18 @@ +# Copyright ETH 2013 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + #import os import os.path import re diff --git a/test-app-openbis-installer/source/systemtest/testcase.py b/test-app-openbis-installer/source/systemtest/testcase.py index 4a5b1891e59a29f379de9ab13fe101247b75d7c0..9b4ad78b3e5ab0cd847baf9d5c48080953e538f2 100644 --- a/test-app-openbis-installer/source/systemtest/testcase.py +++ b/test-app-openbis-installer/source/systemtest/testcase.py @@ -1,3 +1,18 @@ +# Copyright ETH 2013 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + import difflib import re import os diff --git a/test-app-openbis-installer/source/systemtest/util.py b/test-app-openbis-installer/source/systemtest/util.py index 29d56ac1577178a3a32c08e14d7987c503769625..5610e7c2571e817766bb7efaacbfd04b078fe48b 100644 --- a/test-app-openbis-installer/source/systemtest/util.py +++ b/test-app-openbis-installer/source/systemtest/util.py @@ -1,3 +1,17 @@ +# Copyright ETH 2013 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import filecmp import inspect import os diff --git a/test-app-openbis-installer/sourceTest/systemtest/__init__.py b/test-app-openbis-installer/sourceTest/systemtest/__init__.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..6b5d1ce929b60094a402f1ff6e10dc47f67f1e8d 100644 --- a/test-app-openbis-installer/sourceTest/systemtest/__init__.py +++ b/test-app-openbis-installer/sourceTest/systemtest/__init__.py @@ -0,0 +1,14 @@ +# Copyright ETH 2007 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# diff --git a/test-app-openbis-installer/sourceTest/systemtest/artifactrepository_test.py b/test-app-openbis-installer/sourceTest/systemtest/artifactrepository_test.py index 7ca09aef3adfb43c5a4d638dd990cb94fc9cc978..2da81792b4d37c8bfe4a89451e79d60dc12917e0 100644 --- a/test-app-openbis-installer/sourceTest/systemtest/artifactrepository_test.py +++ b/test-app-openbis-installer/sourceTest/systemtest/artifactrepository_test.py @@ -1,3 +1,17 @@ +# Copyright ETH 2013 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import unittest from systemtest.artifactrepository import ArtifactRepository diff --git a/test-app-openbis-installer/sourceTest/systemtest/testcasewithfiles.py b/test-app-openbis-installer/sourceTest/systemtest/testcasewithfiles.py index c75a5d5ca061ea30e27cbfb43ab6950181f785ba..646172aa1a2ded413c6d5b44efad7b6495c59ed5 100644 --- a/test-app-openbis-installer/sourceTest/systemtest/testcasewithfiles.py +++ b/test-app-openbis-installer/sourceTest/systemtest/testcasewithfiles.py @@ -1,3 +1,17 @@ +# Copyright ETH 2013 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import os import os.path import shutil diff --git a/test-app-openbis-installer/sourceTest/systemtest/util_test.py b/test-app-openbis-installer/sourceTest/systemtest/util_test.py index e39c48fa021e2f26cd6a10c057fce5bcc0d33cc5..67db960b69ce1628208002f7a60b741b9f897f13 100644 --- a/test-app-openbis-installer/sourceTest/systemtest/util_test.py +++ b/test-app-openbis-installer/sourceTest/systemtest/util_test.py @@ -1,3 +1,17 @@ +# Copyright ETH 2013 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import time import unittest diff --git a/test-app-openbis-installer/templates/test_archiving/core-plugins/openbis/1/dss/drop-boxes/jython-dropbox/jython-dropbox.py b/test-app-openbis-installer/templates/test_archiving/core-plugins/openbis/1/dss/drop-boxes/jython-dropbox/jython-dropbox.py index 80bb7b8276dc3b063e0d796eed419aa9245e3f0b..924e99a9b9f51f3002c7c08987ed3205a32c2eef 100644 --- a/test-app-openbis-installer/templates/test_archiving/core-plugins/openbis/1/dss/drop-boxes/jython-dropbox/jython-dropbox.py +++ b/test-app-openbis-installer/templates/test_archiving/core-plugins/openbis/1/dss/drop-boxes/jython-dropbox/jython-dropbox.py @@ -1,3 +1,17 @@ +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# tr = service.transaction() dataSet = tr.createNewDataSet() tr.moveFile(incoming.getAbsolutePath(), dataSet) diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/api_default.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/api_default.py index d2e675b398f05c8390245df1018d8a4d605a268b..24d733db382b9daf53699b222b3abe9daec5ec72 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/api_default.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/api_default.py @@ -1,4 +1,20 @@ #! /usr/bin/env python + +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # Jython dropbox which is not used by iBrain2. # It is suitable to upload any uninterpreted datasets with the API. diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/api_hcs_analysis_well_classification_summaries.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/api_hcs_analysis_well_classification_summaries.py index d615534f693835161e66a40715f4b9afba8ba480..ad1c6ae45c20929dd08dbc17a4683cd028c67e62 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/api_hcs_analysis_well_classification_summaries.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/api_hcs_analysis_well_classification_summaries.py @@ -1,4 +1,20 @@ #! /usr/bin/env python + +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # Jython dropbox which is not used by iBrain2. # It is suitable to upload CSV files with feature vectors with the API. diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/cluster_job_logs.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/cluster_job_logs.py index 892230a9944f1683a5bc35cf7a89bd2947b0dc78..d5e80c12e6231b9fdcdf76a0cc4078ba027f162e 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/cluster_job_logs.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/cluster_job_logs.py @@ -1,5 +1,21 @@ #! /usr/bin/env python +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + import commonDropbox #reload(commonDropbox) diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/commonDropbox.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/commonDropbox.py index 03434a879ffda7b852a0096d236d69d79822297d..c7bb9ed20e6255b9bc3070097fd9f83c443d7515 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/commonDropbox.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/commonDropbox.py @@ -1,5 +1,21 @@ #! /usr/bin/env python +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + import os from java.io import File diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/commonImageDropbox.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/commonImageDropbox.py index b1e73dbdd3b0bf8d349aa8334d2fb4f79d5315fe..f927ea227b17c24d2fce37df2460ca7fb487fdab 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/commonImageDropbox.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/commonImageDropbox.py @@ -1,5 +1,21 @@ #! /usr/bin/env python +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + import os from ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto import Geometry from ch.systemsx.cisd.openbis.dss.etl.dto.api.v1 import SimpleImageDataConfig diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_cell_classifications_mat.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_cell_classifications_mat.py index fe566ec9c2ccd41f64ef3e180c6e1124b07a9842..427acbf284ee9fa6c46557e3f64f587517b06408 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_cell_classifications_mat.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_cell_classifications_mat.py @@ -1,5 +1,21 @@ #! /usr/bin/env python +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + import commonDropbox #reload(commonDropbox) diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_cell_features_cc_mat.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_cell_features_cc_mat.py index 561e050f650c25bf2e8fafcf83f7bf5869b4fbb6..1762085a592785e175f42421c2ba54892613acdf 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_cell_features_cc_mat.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_cell_features_cc_mat.py @@ -1,5 +1,21 @@ #! /usr/bin/env python +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + import commonDropbox #reload(commonDropbox) diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_image_acquisition_metadata.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_image_acquisition_metadata.py index 253b8383dcb96ea82dd287feeed5ce60e078622c..033d2e0822758ef4eef9ab1420a5a576855872cd 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_image_acquisition_metadata.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_image_acquisition_metadata.py @@ -1,5 +1,20 @@ #! /usr/bin/env python +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + import commonDropbox #reload(commonDropbox) diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_plate_features_estimates.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_plate_features_estimates.py index a6b3789406b2c46476bdd45ec627efdf7948a64e..914a7687adb4f1fc30f77d0075b3a44a61bccee3 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_plate_features_estimates.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_plate_features_estimates.py @@ -1,5 +1,20 @@ #! /usr/bin/env python +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + import commonDropbox #reload(commonDropbox) diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_segmentation.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_segmentation.py index 79163d6c0ebd1732a1e00ca940550bac4d0ad2a0..b2222cfa011149c2bf7ecd1376b936d71571af93 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_segmentation.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_segmentation.py @@ -1,5 +1,20 @@ #! /usr/bin/env python +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + import commonDropbox #reload(commonDropbox) diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_well_classification_summaries.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_well_classification_summaries.py index 1abdf9108e799bae1098d950563a93fcba858fb5..f34c6d22c71a912ffa7b0673697a70457bd95d86 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_well_classification_summaries.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_well_classification_summaries.py @@ -1,4 +1,20 @@ #! /usr/bin/env python + +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # This is an example Jython dropbox for importing feature vectors coming from analysis of image datasets import commonImageDropbox diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_well_quality_summary.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_well_quality_summary.py index 2592ba16c37b1d4cd842b2132f584988c059946f..d7637e0632d63bb1e22c35f325c59569e2709a6a 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_well_quality_summary.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_well_quality_summary.py @@ -1,5 +1,20 @@ #! /usr/bin/env python +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + import commonImageDropbox import commonDropbox import os diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_well_results_summaries.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_well_results_summaries.py index 4468ca39781d218fc2c3c89447e49f518f2dfb5b..c8898a4b47d80748d567bd6d1321c81a4a73b590 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_well_results_summaries.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_analysis_well_results_summaries.py @@ -1,4 +1,20 @@ #! /usr/bin/env python + +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # This is an example Jython dropbox for importing feature vectors coming from analysis of image datasets import commonImageDropbox diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_channel_quality_check_images.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_channel_quality_check_images.py index 76d9123f9c8c87b12d4742660b7858b2d76b8f17..6ec2b9a7d36c0804d8e0ac8860e28a83ef6cd820 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_channel_quality_check_images.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_channel_quality_check_images.py @@ -1,5 +1,20 @@ #! /usr/bin/env python +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + import commonDropbox #reload(commonDropbox) diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_channel_shadingcorr_images.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_channel_shadingcorr_images.py index 9bef1c4c907471f76dd9ba49c2aa91c4b1eb5794..102936fd4993171fbbb5ef2e0f130ffba1b61bd2 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_channel_shadingcorr_images.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_channel_shadingcorr_images.py @@ -1,5 +1,20 @@ #! /usr/bin/env python +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + import commonDropbox #reload(commonDropbox) diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_general.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_general.py index 6d6f60483b340f5bcf348915b184b90f438aeffb..9bfe43fbcdef1e9ddb528de39885604275a42407 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_general.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_general.py @@ -1,5 +1,20 @@ #! /usr/bin/env python +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + import commonDropbox #reload(commonDropbox) diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_image_raw.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_image_raw.py index 21914eb44aafe950e9bd1b85a80a0c4b3d061559..90079619bf087698bf0eea4ac0613dfc888edf25 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_image_raw.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_image_raw.py @@ -1,5 +1,20 @@ #! /usr/bin/env python +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + import commonImageDropbox import commonDropbox commonImageDropbox.service = service diff --git a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_image_segmentation.py b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_image_segmentation.py index 9870f165669e1b025d7380e403efcfe3b0a08bcf..b5eff57792bbe0660c62bc003c01449012d7ee4e 100755 --- a/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_image_segmentation.py +++ b/test-app-openbis-installer/templates/test_biozentrum/scripts/hcs_image_segmentation.py @@ -1,4 +1,20 @@ #! /usr/bin/env python + +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # This is a dropbox for importing HCS segmentation image datasets from ch.systemsx.cisd.openbis.dss.etl.dto.api.v1 import OriginalDataStorageFormat diff --git a/test-app-openbis-installer/templates/test_multi_data_set_archiving/core-plugins/openbis/1/dss/drop-boxes/archiving/archiving.py b/test-app-openbis-installer/templates/test_multi_data_set_archiving/core-plugins/openbis/1/dss/drop-boxes/archiving/archiving.py index 3930dae6f7459b65590abbd5bd506df7f274313d..11e35a1b8ad03a15294fb50784db58ccae18c1c8 100644 --- a/test-app-openbis-installer/templates/test_multi_data_set_archiving/core-plugins/openbis/1/dss/drop-boxes/archiving/archiving.py +++ b/test-app-openbis-installer/templates/test_multi_data_set_archiving/core-plugins/openbis/1/dss/drop-boxes/archiving/archiving.py @@ -1,3 +1,17 @@ +# Copyright ETH 2014 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# from ch.systemsx.cisd.openbis.dss.generic.shared import ServiceProvider from ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.id import DataSetPermId from ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.update import DataSetUpdate diff --git a/test-app-openbis-installer/templates/test_multi_data_set_archiving/core-plugins/openbis/1/dss/drop-boxes/simple-drop-box/simple-dropbox.py b/test-app-openbis-installer/templates/test_multi_data_set_archiving/core-plugins/openbis/1/dss/drop-boxes/simple-drop-box/simple-dropbox.py index c2f6c8f61c6479d309752036059453893273da22..f89ed93913d64c848bc4cd7227f0fbded7016ce0 100644 --- a/test-app-openbis-installer/templates/test_multi_data_set_archiving/core-plugins/openbis/1/dss/drop-boxes/simple-drop-box/simple-dropbox.py +++ b/test-app-openbis-installer/templates/test_multi_data_set_archiving/core-plugins/openbis/1/dss/drop-boxes/simple-drop-box/simple-dropbox.py @@ -1,3 +1,17 @@ +# Copyright ETH 2014 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# def process(transaction): incoming = transaction.getIncoming() parts = incoming.name.split() diff --git a/test-app-openbis-installer/templates/test_openbis_sync_big/core-plugins/data_source/1/dss/drop-boxes/example/script.py b/test-app-openbis-installer/templates/test_openbis_sync_big/core-plugins/data_source/1/dss/drop-boxes/example/script.py index 6a89d6e85d6b1dc271b6bf6fff966aa741c69541..ece4ccbba985e86c60c74448ca7b2bcc08be947c 100644 --- a/test-app-openbis-installer/templates/test_openbis_sync_big/core-plugins/data_source/1/dss/drop-boxes/example/script.py +++ b/test-app-openbis-installer/templates/test_openbis_sync_big/core-plugins/data_source/1/dss/drop-boxes/example/script.py @@ -1,4 +1,17 @@ - +# Copyright ETH 2011 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# def process(transaction): expid = "/DEFAULT/DEFAULT/EXP1" exp = transaction.getExperiment(expid) diff --git a/test-app-openbis-installer/test.py b/test-app-openbis-installer/test.py index b244c588e9d2fad409c47ca4eb3bcc2548cebfc7..af1a254eff1321a8f0cda2344dc17b3111433bc3 100755 --- a/test-app-openbis-installer/test.py +++ b/test-app-openbis-installer/test.py @@ -1,4 +1,21 @@ #!/usr/bin/python + +# Copyright ETH 2013 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# + """ Runs all test cases in alphabetical order. A test case is a file of type '.py' and starts with 'test-'. Exit value will 0 if all test cases succeeded otherwise it will be 1. diff --git a/test-app-openbis-installer/test_3v.py b/test-app-openbis-installer/test_3v.py index 5daf69764644c030e614295bed8eefdf40ef1632..7f4b498dc0bd85d758806fc24609008c5d1f46d3 100755 --- a/test-app-openbis-installer/test_3v.py +++ b/test-app-openbis-installer/test_3v.py @@ -1,4 +1,21 @@ #!/usr/bin/python + +# Copyright ETH 2013 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# + import os import shutil import settings diff --git a/test-app-openbis-installer/test_archiving.py b/test-app-openbis-installer/test_archiving.py index 55e2201a20444e43b4814efdccc34fc5deeef3f4..28d5ec757ef491be64e1af5640c37ec0931c0294 100644 --- a/test-app-openbis-installer/test_archiving.py +++ b/test-app-openbis-installer/test_archiving.py @@ -1,4 +1,20 @@ #!/usr/bin/python + +# Copyright ETH 2014 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # # Requirement: # The command "ssh locahost" completes successfully without requiring any user input (e.g. password input) diff --git a/test-app-openbis-installer/test_multi_data_set_archiving.py b/test-app-openbis-installer/test_multi_data_set_archiving.py index 04be40303099bcdf08c0e45e895620eb011538f9..768c4abdbd6617e546160b912fbde73de4684e33 100755 --- a/test-app-openbis-installer/test_multi_data_set_archiving.py +++ b/test-app-openbis-installer/test_multi_data_set_archiving.py @@ -1,5 +1,21 @@ #!/usr/bin/python +# Copyright ETH 2014 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + import settings import systemtest.testcase import systemtest.util as util diff --git a/test-app-openbis-installer/test_obis.py b/test-app-openbis-installer/test_obis.py index a9d9dcbc172fc1f85ab3ed709c88d33e1bae5e63..b085e07fa208d860b5d63fb483be666040150da1 100755 --- a/test-app-openbis-installer/test_obis.py +++ b/test-app-openbis-installer/test_obis.py @@ -1,6 +1,21 @@ #!/usr/bin/python # encoding=utf8 -#!/usr/bin/python + +# Copyright ETH 2019 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # # Requirement: # The pybis module must be available. diff --git a/test-app-openbis-installer/test_openbis_sync_big.py b/test-app-openbis-installer/test_openbis_sync_big.py index 1601c49511be90116fc3aa4370ee746b8c010e51..05403a6b5416117747b0d7b9a7ed0a6da0532108 100755 --- a/test-app-openbis-installer/test_openbis_sync_big.py +++ b/test-app-openbis-installer/test_openbis_sync_big.py @@ -1,5 +1,21 @@ #!/usr/bin/python # encoding=utf8 + +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + import glob import os import re diff --git a/test-app-openbis-installer/test_pybis.py b/test-app-openbis-installer/test_pybis.py index 1e7d63ece959c646d22205cac1b4eac43047538e..647efac4a0d074b138f493fea9be1a35f78c9a73 100755 --- a/test-app-openbis-installer/test_pybis.py +++ b/test-app-openbis-installer/test_pybis.py @@ -1,6 +1,21 @@ #!/usr/bin/python # encoding=utf8 -#!/usr/bin/python + +# Copyright ETH 2018 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # # Requirement: # The pybis module must be available. diff --git a/test-app-openbis-installer/test_scu_microscopy.py b/test-app-openbis-installer/test_scu_microscopy.py index c6678684f6eb2521784f3d8532bd76db808b8723..f04507c184c8040e69aaca08a94c25da2069ad07 100755 --- a/test-app-openbis-installer/test_scu_microscopy.py +++ b/test-app-openbis-installer/test_scu_microscopy.py @@ -1,4 +1,20 @@ #!/usr/bin/python + +# Copyright ETH 2016 - 2023 Zürich, Scientific IT Services +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + import os import os.path import re diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html index 6bc7e6e63244982e207e3e33c9199b0959e00a4c..3a47aade3644c1ea4fd442de1a5befbb47376fa1 100644 --- a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html +++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html @@ -21,7 +21,7 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <title>ELN Browser</title> + <title>openBIS ELN-LIMS</title> <!-- Third party Stylesheets --> <link type="text/css" rel="stylesheet" href="./lib/bootstrap/css/bootstrap.min.css" /> diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/resolver-plugins/microscopy.py b/ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/resolver-plugins/microscopy.py index 36571d8a4e6226bd8ad41c7ce05954c2a52637a7..e2d4f56fde2a475d36106902372b3b5e852f59ab 100644 --- a/ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/resolver-plugins/microscopy.py +++ b/ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/resolver-plugins/microscopy.py @@ -1,3 +1,27 @@ +from ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.search import DataSetSearchCriteria +from ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.fetchoptions import DataSetFetchOptions + +import script + acceptor.hideDataSetType("MICROSCOPY_IMG_CONTAINER") acceptor.hideDataSetType("MICROSCOPY_IMG_OVERVIEW") acceptor.hideDataSetType("MICROSCOPY_IMG_THUMBNAIL") +#acceptor.hideSampleType("MICROSCOPY_SAMPLE_TYPE") + +def addSampleChildNodes(path, samplePermId, sampleType, response, acceptor, context): + dataSetSearchCriteria = DataSetSearchCriteria() + parentsSearchCriteria = dataSetSearchCriteria.withSample().withParents() + parentsSearchCriteria.withPermId().thatEquals(samplePermId) + fetchOptions = DataSetFetchOptions() + fetchOptions.withType() + fetchOptions.withProperties() + fetchOptions.withSample() + dataSets = context.getApi().searchDataSets(context.getSessionToken(), dataSetSearchCriteria, fetchOptions).getObjects() + for dataSet in dataSets: + if acceptor.acceptDataSet(dataSet): + dataSetCode = dataSet.getCode() + content = context.getContentProvider().asContent(dataSetCode) + contentNode = content.getRootNode() + script.addDataSetFileNodes(path, dataSetCode, contentNode, response, acceptor, context) + +acceptor.sampleChildrenHandlers["MICROSCOPY_EXPERIMENT"] = addSampleChildNodes diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/script.py b/ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/script.py index c4d8881db8846d211e4057fd6239abf2dc98edde..1bfc219846fb319352ef61f54b1b4312ab0bf0af 100644 --- a/ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/script.py +++ b/ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/script.py @@ -21,10 +21,15 @@ class NodeWithEntityType(Node): def __init__(self, type, permId, entityType): super(NodeWithEntityType, self).__init__(type, permId) self.entityType = entityType + self.permIds = set() + self.addPermId(permId) def getEntityType(self): return self.entityType + def addPermId(self, permId): + self.permIds.add(permId) + class Acceptor(object): def __init__(self, settings): self.sections = ["Lab Notebook", "Inventory", "Stock"] @@ -38,6 +43,7 @@ class Acceptor(object): self.hiddenExperimentTypes = {} self.hiddenSampleTypes = {} self.hiddenDataSetTypes = {} + self.sampleChildrenHandlers = {} def assertValidSection(self, section): if section not in self.sections: @@ -93,15 +99,7 @@ class Acceptor(object): self.hiddenSampleTypes[typeCode] = True def acceptSample(self, sample): - group = self._getGroupPrefix(sample.getSpace().getCode()) - attributes = self.sampleTypeViewAttributes[group] - sampleTypeCode = sample.getType().getCode() - if sampleTypeCode in self.hiddenSampleTypes: - return False - if sampleTypeCode in attributes: - attr = attributes[sampleTypeCode] - return "SHOW_ON_NAV" in attr and attr["SHOW_ON_NAV"] - return False + return sample.getType().getCode() not in self.hiddenSampleTypes def hideDataSetType(self, typeCode): self.hiddenDataSetTypes[typeCode] = True @@ -234,13 +232,16 @@ def listChildren(subPath, acceptor, context): nodeType = node.getType() permId = node.getPermId() if nodeType == "DATASET": - dataSetCode, contentNode, content = getContentNode(permId, context) - if contentNode.isDirectory(): - response = context.createDirectoryResponse() - addDataSetFileNodes(path, dataSetCode, contentNode, response, acceptor, context) - return response - else: - return context.createFileResponse(contentNode, content) + response = None + for permId in node.permIds: + dataSetCode, contentNode, content = getContentNode(permId, context) + if contentNode.isDirectory(): + if response is None: + response = context.createDirectoryResponse() + addDataSetFileNodes(path, dataSetCode, contentNode, response, acceptor, context) + else: + response = context.createFileResponse(contentNode, content) + return response elif nodeType == "SAMPLE": response = context.createDirectoryResponse() addSampleChildNodes(path, permId, node.getEntityType(), response, acceptor, context) @@ -259,11 +260,13 @@ def getNode(subPath, acceptor, context): nodeType = parentNode.getType() entityType = parentNode.getEntityType() permId = parentNode.getPermId() + print(">>>>>>>>>> GET NODE: %s, %s, %s" % (path, nodeType, parentNode.permIds)) if nodeType == "EXPERIMENT": addExperimentChildNodes(parentPathString, permId, entityType, None, acceptor, context) elif nodeType == "SAMPLE": addSampleChildNodes(parentPathString, permId, entityType, None, acceptor, context) elif nodeType == "DATASET": + print("====== GET DATASET NODE: %s, %s" % (path, parentNode.permIds)) dataSetCode, contentNode, _ = getContentNode(parentNode.getPermId(), context) addDataSetFileNodes(parentPathString, dataSetCode, contentNode, None, acceptor, context) else: @@ -307,6 +310,9 @@ def addExperimentChildNodes(path, experimentPermId, experimentType, response, ac addNodes("SAMPLE", entitiesByName, path, response, context) def addSampleChildNodes(path, samplePermId, sampleType, response, acceptor, context): + if sampleType in acceptor.sampleChildrenHandlers: + acceptor.sampleChildrenHandlers[sampleType](path, samplePermId, sampleType, response, acceptor, context) + return dataSetSearchCriteria = DataSetSearchCriteria() dataSetSearchCriteria.withSample().withPermId().thatEquals(samplePermId) @@ -335,12 +341,16 @@ def addDataSetFileNodes(path, dataSetCode, contentNode, response, acceptor, cont nodeName = childNode.getName() filePath = "%s/%s" % (path, nodeName) filePermId = "%s::%s" % (dataSetCode, childNode.getRelativePath()) - context.getCache().putNode(NodeWithEntityType("DATASET", filePermId, None), filePath) - if response is not None: - if childNode.isDirectory(): - response.addDirectory(nodeName, childNode.getLastModified()) - else: - response.addFile(nodeName, childNode) + cachedNode = context.getCache().getNode(filePath) + if cachedNode is not None: + cachedNode.addPermId(filePermId) + else: + context.getCache().putNode(NodeWithEntityType("DATASET", filePermId, None), filePath) + if response is not None: + if childNode.isDirectory(): + response.addDirectory(nodeName, childNode.getLastModified()) + else: + response.addFile(nodeName, childNode) def getContentNode(permId, context): splittedId = permId.split("::")