From 504212de9f59f0b2ed5e7aefd72291e007112f00 Mon Sep 17 00:00:00 2001 From: Enxhi Kreshpa <e.kreshpa@fz-juelich.de> Date: Mon, 4 Oct 2021 17:00:37 +0200 Subject: [PATCH] Added license and copyright tags in all the scripts. Created license folder and added license texts. --- LICENSES/AMBS_libraries.csv | 108 ++++++++++++ LICENSES/Apache-2.0.txt | 75 --------- LICENSES/CC-BY-4.0.txt | 156 ++++++++++++++++++ .../data_preprocess/calc_climatology.py | 3 + .../data_preprocess/dataset_options.py | 4 + .../data_preprocess/prepare_era5_data.py | 4 + .../prepare_moving_mnist_data.py | 4 + .../data_preprocess/preprocess_data_step2.py | 4 + .../data_preprocess/process_netCDF_v2.py | 4 + .../datasets/Download_ERA5_Variable.py | 5 + .../extract_data/era5_dataset_v2_anomaly.py | 4 + .../datasets/extract_data/extract_era5.py | 5 + .../model_modules/vanilla_GAN_model.py | 13 +- .../deprecate/scripts/combine_results.py | 4 + .../deprecate/scripts/evaluate.py | 4 + .../deprecate/scripts/generate_orig.py | 4 + .../deprecate/scripts/plot_results.py | 4 + .../deprecate/scripts/train.py | 4 + .../external_package/lpips-tensorflow/LICENSE | 25 --- .../lpips-tensorflow/export_to_tensorflow.py | 4 + .../lpips-tensorflow/lpips_tf.py | 4 + .../lpips-tensorflow/test_network.py | 4 + .../video_prediction/datasets/__init__.py | 4 + .../video_prediction/datasets/base_dataset.py | 4 + .../video_prediction/datasets/era5_dataset.py | 4 + .../datasets/google_robot_dataset.py | 9 +- .../video_prediction/datasets/kth_dataset.py | 4 + .../video_prediction/datasets/moving_mnist.py | 3 + .../video_prediction/datasets/sv2p_dataset.py | 4 + .../datasets/ucf101_dataset.py | 4 + .../video_prediction/flow_ops.py | 6 +- .../layers/BasicConvLSTMCell.py | 3 + .../video_prediction/layers/__init__.py | 4 + .../video_prediction/layers/layer_def.py | 4 + .../video_prediction/layers/mcnet_ops.py | 4 + .../video_prediction/layers/normalization.py | 10 +- .../model_modules/video_prediction/losses.py | 4 + .../model_modules/video_prediction/metrics.py | 4 + .../video_prediction/models/__init__.py | 4 + .../video_prediction/models/base_model.py | 4 + .../models/convLSTM_GAN_model.py | 4 + .../video_prediction/models/dna_model.py | 14 +- .../video_prediction/models/mcnet_model.py | 4 + .../video_prediction/models/model_helpers.py | 6 +- .../video_prediction/models/networks.py | 4 + .../models/non_trainable_model.py | 4 + .../video_prediction/models/savp_model.py | 4 + .../video_prediction/models/test_model.py | 4 +- .../models/vanilla_convLSTM_model.py | 4 + .../models/vanilla_vae_model.py | 3 + .../model_modules/video_prediction/ops.py | 4 + .../video_prediction/utils/ffmpeg_gif.py | 4 + .../video_prediction/utils/html.py | 4 + .../video_prediction/utils/mcnet_utils.py | 7 +- .../video_prediction/utils/tf_utils.py | 4 + .../postprocess/plot_ambs_forecast.py | 6 +- .../postprocess/postprocess_plotting.py | 4 + .../postprocess/statistical_evaluation.py | 4 + .../utils/external_function.py | 4 + video_prediction_tools/utils/general_utils.py | 4 + video_prediction_tools/utils/metadata.py | 4 + .../utils/netcdf_datahandling.py | 4 + video_prediction_tools/utils/normalization.py | 4 + .../runscript_generator/config_extraction.py | 4 + .../runscript_generator/config_postprocess.py | 4 + .../config_preprocess_step1.py | 4 + .../config_preprocess_step2.py | 4 + .../runscript_generator/config_training.py | 4 + .../utils/runscript_generator/config_utils.py | 4 + .../runscript_generator/configurations.py | 4 + video_prediction_tools/utils/shiftgrid.py | 4 + video_prediction_tools/utils/statistics.py | 4 + 72 files changed, 537 insertions(+), 136 deletions(-) create mode 100644 LICENSES/AMBS_libraries.csv delete mode 100644 LICENSES/Apache-2.0.txt create mode 100644 LICENSES/CC-BY-4.0.txt delete mode 100644 video_prediction_tools/external_package/lpips-tensorflow/LICENSE diff --git a/LICENSES/AMBS_libraries.csv b/LICENSES/AMBS_libraries.csv new file mode 100644 index 00000000..04f912bb --- /dev/null +++ b/LICENSES/AMBS_libraries.csv @@ -0,0 +1,108 @@ +Library,License,Link,,, +absl-py==0.8.0,Apache Software License (Apache 2.0),https://pypi.org/project/absl-py/,,, +anytree==2.8.0,Apache 2.0,https://pypi.org/project/anytree/,,, +appdirs==1.4.3,MIT License (MIT),https://pypi.org/project/appdirs/,,, +astor==0.8.0,BSD License (BSD-3-Clause),https://pypi.org/project/astor/,,, +atomicwrites==1.3.0,MIT License (MIT),https://pypi.org/project/atomicwrites/,,, +attrs==19.1.0,MIT License (MIT),https://pypi.org/project/attrs/,,, +cachetools==4.2.2,MIT License (MIT),https://pypi.org/project/cachetools/,,, +certifi==2019.3.9,License: Mozilla Public License 2.0 (MPL 2.0) (MPL-2.0),https://pypi.org/project/certifi/, +cffi==1.12.3,MIT License (MIT),https://pypi.org/project/cffi/,,, +cftime==1.0.3.4,MIT License (License :: OSI Approved :: MIT License),https://pypi.org/project/cftime/,,, +chardet==3.0.4,GNU Library or Lesser General Public License (LGPL) (LGPL),https://pypi.org/project/chardet/, +cloudpickle==1.2.2,BSD License (BSD 3-Clause License),https://pypi.org/project/cloudpickle/,,, +colorama==0.4.4,BSD License (BSD),https://pypi.org/project/colorama/,,, +coverage==4.5.2,Apache Software License (Apache 2.0),https://pypi.org/project/coverage/4.5.2/,,, +cycler==0.10.0, BSD,https://pypi.org/project/Cycler/,,, +decorator==4.4.1,BSD License (new BSD License),https://pypi.org/project/decorator/,,, +dill==0.3.0,BSD License (3-clause BSD),https://pypi.org/project/dill/,,, +distlib==0.3.0,Python Software Foundation License (Python license),https://pypi.org/project/distlib/,,, +docopt==0.6.2,MIT License (MIT),https://pypi.org/project/docopt/,,, +filelock==3.0.12,Public Domain (Public Domain <http://unlicense.org>),https://pypi.org/project/filelock/,,, +gast==0.3.2,BSD License (BSD 3-Clause),https://pypi.org/project/gast/,,, +google-pasta==0.1.7,Apache Software License (Apache 2.0),https://pypi.org/project/google-pasta/,,, +graphviz==0.8.4,MIT License (MIT),https://pypi.org/project/graphviz/,,, +grpcio==1.23.0,Apache Software License (Apache License 2.0),https://pypi.org/project/grpcio/1.23.0/,,, +h5py==2.9.0,BSD License (BSD),https://pypi.org/project/h5py/,,, +horovod==0.18.1,Apache Software License (Apache 2.0),https://pypi.org/project/horovod/,,, +idna==2.8,BSD License (BSD-3-Clause),https://pypi.org/project/idna/,,, +imageio==2.6.1,BSD License (BSD-2-Clause),https://pypi.org/project/imageio/,,, +imbalanced-learn==0.5.0,OSI Approved (MIT),https://pypi.org/project/imbalanced-learn/,,, +importlib-metadata==1.5.0,Apache Software License,https://pypi.org/project/importlib-metadata/,,, +joblib==0.13.2,BSD License (BSD),https://pypi.org/project/joblib/,,, +johnnydep==1.7,MIT,https://pypi.org/project/johnnydep/,,, +Keras-Applications==1.0.8,MIT License (MIT),https://pypi.org/project/Keras-Applications/,,, +Keras-Preprocessing==1.1.0,MIT License (MIT),https://pypi.org/project/Keras-Preprocessing/,,, +kiwisolver==1.1.0,BSD License (BSD),https://pypi.org/project/kiwisolver/,,, +Markdown==3.1.1,BSD License (BSD License),https://pypi.org/project/Markdown/,,, +matplotlib==3.1.2,Python Software Foundation License (PSF),https://pypi.org/project/matplotlib/,,, +mnist==0.2.2,BSD,https://pypi.org/project/python-mnist/,,, +mock==4.0.2,BSD License,https://pypi.org/project/mock/,,, +more-itertools==6.0.0,MIT License (MIT),https://pypi.org/project/more-itertools/,,, +mxnet==1.5.0,Apache Software License (Apache 2.0),https://pypi.org/project/mxnet/1.5.0/,,, +netCDF4==1.5.1.2,MIT License (License :: OSI Approved :: MIT License),https://pypi.org/project/netCDF4/,,, +networkx==2.4,BSD License,https://pypi.org/project/networkx/,,, +nose==1.3.7,GNU Library or Lesser General Public License (LGPL) (GNU LGPL),https://pypi.org/project/nose/,,Dev-Library?!, +numpy==1.16.2,OSI Approved (BSD)https://pypi.org/project/numpy/1.16.2/,https://pypi.org/project/numpy/1.16.2/,,, +opencv-python==4.1.2.30,MIT License (MIT),https://pypi.org/project/opencv-python/,,, +opencv-python-headless==4.2.0.34,MIT License (MIT),https://pypi.org/project/opencv-python-headless/,,, +oyaml==1.0,MIT,https://pypi.org/project/oyaml/,,, +packaging==20.9,"Apache Software License, BSD License (BSD-2-Clause or Apache-2.0)",https://pypi.org/project/packaging/,,, +pandas==0.24.1,BSD,https://pypi.org/project/pandas/,,, +patsy==0.5.1,BSD License (2-clause BSD),https://pypi.org/project/patsy/,,, +Pillow==6.1.0,Historical Permission Notice and Disclaimer (HPND) (HPND),https://pypi.org/project/Pillow/,,, +pipreqs==0.4.10,Apache Software License (Apache License,https://pypi.org/project/pipreqs/,,, +pkginfo==1.7.0,MIT License (MIT),https://pypi.org/project/pkginfo/,,, +plotly==4.9.0,MIT,https://pypi.org/project/plotly/,,, +pluggy==0.9.0,MIT License (MIT license),https://pypi.org/project/pluggy/,,, +protobuf==3.9.1, 3-Clause BSD License,https://pypi.org/project/protobuf/,,, +psutil==5.6.1,BSD License (BSD),https://pypi.org/project/psutil/,,, +py==1.8.0,MIT License (MIT license),https://pypi.org/project/py/,,, +pycparser==2.19,BSD License (BSD),https://pypi.org/project/pycparser/,,, +pymongo==3.10.1,"Apache Software License (Apache License, Version 2.0)",https://pypi.org/project/pymongo/,,, +pyparsing==2.4.5,MIT License (MIT License),https://pypi.org/project/pyparsing/,,, +pytest==4.3.0, MIT License (MIT),https://pypi.org/project/pytest/,,, +pytest-cov==2.6.1,MIT License (MIT),https://pypi.org/project/pytest-cov/,,, +python-dateutil==2.8.0,"Apache Software License, BSD License (Dual License)",https://pypi.org/project/python-dateutil/,,, +pytz==2018.9,MIT License (MIT),https://pypi.org/project/pytz/,,, +PyWavelets==1.1.1,MIT License (MIT),https://pypi.org/project/PyWavelets/,,, +PyYAML==5.1.2,MIT License (MIT),https://pypi.org/project/PyYAML/5.1.2/,,, +requests==2.21.0,Apache Software License (Apache 2.0),https://pypi.org/project/requests/,,, +retrying==1.3.3,Apache Software License (Apache 2.0),https://pypi.org/project/retrying/,,, +scikit-image==0.16.2, BSD License (Modified BSD),https://pypi.org/project/scikit-image/0.16.2/,,, +scikit-learn==0.21.3,OSI Approved (new BSD),https://pypi.org/project/scikit-learn/0.21.3/,,, +scipy==1.3.1,BSD License (BSD),https://pypi.org/project/scipy/,,, +six==1.12.0,: MIT License (MIT),https://pypi.org/project/six/,,, +sklearn==0.0,OSI Approved (new BSD),https://pypi.org/project/scikit-learn/,,, +statsmodels==0.9.0,BSD License (BSD License),https://pypi.org/project/statsmodels/0.9.0/,,, +structlog==21.1.0,"Apache Software License, MIT License (MIT or Apache License, Version 2.0)",https://pypi.org/project/structlog/,,, +tabulate==0.8.9,MIT License (MIT),https://pypi.org/project/tabulate/,,, +tensorboard==1.13.1,Apache Software License (Apache 2.0),https://pypi.org/project/tensorboard/,,, +tensorflow==1.13.1,Apache Software License (Apache 2.0),https://pypi.org/project/tensorflow/,,, +tensorflow-estimator==1.13.0,Apache Software License (Apache 2.0),https://pypi.org/project/tensorflow-estimator/,,, +termcolor==1.1.0,MIT License (MIT),https://pypi.org/project/termcolor/,,, +tflearn==0.3.2,MIT,https://pypi.org/project/tflearn/0.3.2/,,, +toml==0.10.2,MIT License (MIT),https://pypi.org/project/toml/,,, +torch==1.2.0,BSD License (BSD-3),https://pypi.org/project/torch/,,, +torchvision==0.4.0,BSD,https://pypi.org/project/torchvision/,,, +tornado==6.0.1,Apache Software License (http://www.apache.org/licenses/LICENSE-2.0),https://pypi.org/project/tornado/,,, +tqdm==4.36.1," MIT License, Mozilla Public License 2.0 (MPL 2.0) (MPLv2.0, MIT Licences)",https://pypi.org/project/tqdm/,,, +typing-extensions==3.10.0.0,Python Software Foundation License (PSF),https://pypi.org/project/typing-extensions/,,, +urllib3==1.24.1,MIT License (MIT),https://pypi.org/project/urllib3/,,, +virtualenv==20.0.10,MIT License (MIT),https://pypi.org/project/virtualenv/,,, +Werkzeug==0.15.6,BSD License (BSD-3-Clause),https://pypi.org/project/Werkzeug/,,, +wimpy==0.6,MIT,https://pypi.org/project/wimpy/,,, +wrapt==1.11.2,BSD License (BSD),https://pypi.org/project/wrapt/,,, +yarg==0.1.9,MIT License (MIT),https://pypi.org/project/yarg/,,, +zipp==3.1.0,MIT License,https://pypi.org/project/zipp/,,, +convLSTM,Apache License 2.0,https://github.com/loliverhennigh/Convolutional-LSTM-in-Tensorflow/blob/master/License.md,,, +SAVP,MIT License (MIT),https://github.com/alexlee-gk/video_prediction/blob/master/LICENSE,,, +TrainModel,MIT License,https://github.com/alexlee-gk/video_prediction/blob/master/LICENSE,,, +MCnet,MIT License,https://github.com/rubenvillegas/iclr2017mcnet/blob/master/LICENSE,,, +flow_ops,MIT License,https://github.com/simonmeister/UnFlow/blob/master/LICENSE,,, +GoogleRobotDataset,Creative Commons Attribution 4.0 International,https://creativecommons.org/licenses/by/4.0/,,, +SNA,Apache License 2.0,http://www.apache.org/licenses/LICENSE-2.0,,, +SV2P,Apache License 2.0,http://www.apache.org/licenses/LICENSE-2.0,,, +lpips-tensorflow,BSD 2-Clause,https://github.com/alexlee-gk/lpips-tensorflow/blob/master/LICENSE +McNet_utils,MIT,https://github.com/Newmu/dcgan_code/blob/master/LICENSE +SoftMotionDataset, ,https://sites.google.com/view/sna-visual-mpc diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt deleted file mode 100644 index 8dd4aa12..00000000 --- a/LICENSES/Apache-2.0.txt +++ /dev/null @@ -1,75 +0,0 @@ -Copyright 2017 Hwalsuk Lee. All right reserved. - -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - - (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. - - You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - -To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. - -Copyright 2017 Hwalsuk Lee - -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/LICENSES/CC-BY-4.0.txt b/LICENSES/CC-BY-4.0.txt new file mode 100644 index 00000000..c7a4c9be --- /dev/null +++ b/LICENSES/CC-BY-4.0.txt @@ -0,0 +1,156 @@ +Creative Commons Attribution 4.0 International + + Creative Commons Corporation (�Creative Commons�) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an �as-is� basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. + +Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. + +Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor�s permission is not necessary for any reason�for example, because of any applicable exception or limitation to copyright�then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. + +Section 1 � Definitions. + + a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. + + d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. + + g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights under this Public License. + + i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. + +Section 2 � Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: + + A. reproduce and Share the Licensed Material, in whole or in part; and + + B. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. + + 3. Term. The term of this Public License is specified in Section 6(a). + + 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. + + 5. Downstream recipients. + + A. Offer from the Licensor � Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. + + B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. + + 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). + +b. Other rights. + + 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this Public License. + + 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. + +Section 3 � License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified form), You must: + + A. retain the following if it is supplied by the Licensor with the Licensed Material: + + i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of warranties; + + v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; + + B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and + + C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. + + 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. + +Section 4 � Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; + + b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. +For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. + +Section 5 � Disclaimer of Warranties and Limitation of Liability. + + a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. + + b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. + + c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. + +Section 6 � Term and Termination. + + a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or + + 2. upon express reinstatement by the Licensor. + + c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. + + d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. + + e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. + +Section 7 � Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. + +Section 8 � Interpretation. + + a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. + + c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. + + d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. + +Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the �Licensor.� Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark �Creative Commons� or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/video_prediction_tools/data_preprocess/calc_climatology.py b/video_prediction_tools/data_preprocess/calc_climatology.py index 1bd3f547..d91bf48a 100644 --- a/video_prediction_tools/data_preprocess/calc_climatology.py +++ b/video_prediction_tools/data_preprocess/calc_climatology.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT __email__ = "b.gong@fz-juelich.de" __author__ = "Yan Ji, Bing Gong" diff --git a/video_prediction_tools/data_preprocess/dataset_options.py b/video_prediction_tools/data_preprocess/dataset_options.py index 5e9729d6..4a9141b9 100644 --- a/video_prediction_tools/data_preprocess/dataset_options.py +++ b/video_prediction_tools/data_preprocess/dataset_options.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + def known_datasets(): """ An auxilary function diff --git a/video_prediction_tools/data_preprocess/prepare_era5_data.py b/video_prediction_tools/data_preprocess/prepare_era5_data.py index fbb71bdb..9de5b070 100644 --- a/video_prediction_tools/data_preprocess/prepare_era5_data.py +++ b/video_prediction_tools/data_preprocess/prepare_era5_data.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Functions required for extracting ERA5 data. """ diff --git a/video_prediction_tools/data_preprocess/prepare_moving_mnist_data.py b/video_prediction_tools/data_preprocess/prepare_moving_mnist_data.py index 444a6e0b..d58f7050 100644 --- a/video_prediction_tools/data_preprocess/prepare_moving_mnist_data.py +++ b/video_prediction_tools/data_preprocess/prepare_moving_mnist_data.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Class and functions required for preprocessing Moving mnist data from .npz to TFRecords """ diff --git a/video_prediction_tools/data_preprocess/preprocess_data_step2.py b/video_prediction_tools/data_preprocess/preprocess_data_step2.py index 7cf19315..a062ee1c 100644 --- a/video_prediction_tools/data_preprocess/preprocess_data_step2.py +++ b/video_prediction_tools/data_preprocess/preprocess_data_step2.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Class and functions required for preprocessing ERA5 data (preprocessing substep 2) """ diff --git a/video_prediction_tools/data_preprocess/process_netCDF_v2.py b/video_prediction_tools/data_preprocess/process_netCDF_v2.py index 2d030d3e..ae8c1421 100644 --- a/video_prediction_tools/data_preprocess/process_netCDF_v2.py +++ b/video_prediction_tools/data_preprocess/process_netCDF_v2.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Code for processing staged ERA5 data, this is used for the DataPreprocessing step 1 of the workflow diff --git a/video_prediction_tools/deprecate/datasets/Download_ERA5_Variable.py b/video_prediction_tools/deprecate/datasets/Download_ERA5_Variable.py index 3d9cf874..419960b8 100644 --- a/video_prediction_tools/deprecate/datasets/Download_ERA5_Variable.py +++ b/video_prediction_tools/deprecate/datasets/Download_ERA5_Variable.py @@ -1,4 +1,9 @@ #!/usr/bin/env python + +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import cdsapi import argparse diff --git a/video_prediction_tools/deprecate/datasets/extract_data/era5_dataset_v2_anomaly.py b/video_prediction_tools/deprecate/datasets/extract_data/era5_dataset_v2_anomaly.py index 0daa13b3..2a30c9ce 100644 --- a/video_prediction_tools/deprecate/datasets/extract_data/era5_dataset_v2_anomaly.py +++ b/video_prediction_tools/deprecate/datasets/extract_data/era5_dataset_v2_anomaly.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import argparse import glob import itertools diff --git a/video_prediction_tools/deprecate/datasets/extract_data/extract_era5.py b/video_prediction_tools/deprecate/datasets/extract_data/extract_era5.py index c8b5c350..52764562 100755 --- a/video_prediction_tools/deprecate/datasets/extract_data/extract_era5.py +++ b/video_prediction_tools/deprecate/datasets/extract_data/extract_era5.py @@ -1,4 +1,9 @@ #!/usr/bin/env python + +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + # -*- coding: utf-8 -*- """ Spyder Editor diff --git a/video_prediction_tools/deprecate/model_modules/vanilla_GAN_model.py b/video_prediction_tools/deprecate/model_modules/vanilla_GAN_model.py index 112eaf31..74f3f16b 100644 --- a/video_prediction_tools/deprecate/model_modules/vanilla_GAN_model.py +++ b/video_prediction_tools/deprecate/model_modules/vanilla_GAN_model.py @@ -1,16 +1,13 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + + __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong" __date__ = "2021=01-05" - -""" -This code implement take the following as references: -1) https://stackabuse.com/introduction-to-gans-with-python-and-tensorflow/ -2) cousera GAN courses -3) https://github.com/hwalsuklee/tensorflow-generative-model-collections/blob/master/GAN.py -""" - import tensorflow as tf from model_modules.video_prediction.models.model_helpers import set_and_check_pred_frames diff --git a/video_prediction_tools/deprecate/scripts/combine_results.py b/video_prediction_tools/deprecate/scripts/combine_results.py index 2b684ac1..ce6b00f4 100644 --- a/video_prediction_tools/deprecate/scripts/combine_results.py +++ b/video_prediction_tools/deprecate/scripts/combine_results.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/video_prediction_tools/deprecate/scripts/evaluate.py b/video_prediction_tools/deprecate/scripts/evaluate.py index 1f4062f7..11792bb1 100644 --- a/video_prediction_tools/deprecate/scripts/evaluate.py +++ b/video_prediction_tools/deprecate/scripts/evaluate.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/video_prediction_tools/deprecate/scripts/generate_orig.py b/video_prediction_tools/deprecate/scripts/generate_orig.py index 0a9e5303..52f2a1ea 100644 --- a/video_prediction_tools/deprecate/scripts/generate_orig.py +++ b/video_prediction_tools/deprecate/scripts/generate_orig.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/video_prediction_tools/deprecate/scripts/plot_results.py b/video_prediction_tools/deprecate/scripts/plot_results.py index ddf49066..92019754 100644 --- a/video_prediction_tools/deprecate/scripts/plot_results.py +++ b/video_prediction_tools/deprecate/scripts/plot_results.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/video_prediction_tools/deprecate/scripts/train.py b/video_prediction_tools/deprecate/scripts/train.py index 79f317ab..ee76b206 100644 --- a/video_prediction_tools/deprecate/scripts/train.py +++ b/video_prediction_tools/deprecate/scripts/train.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/video_prediction_tools/external_package/lpips-tensorflow/LICENSE b/video_prediction_tools/external_package/lpips-tensorflow/LICENSE deleted file mode 100644 index afbffa50..00000000 --- a/video_prediction_tools/external_package/lpips-tensorflow/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ -BSD 2-Clause License - -Copyright (c) 2018, alexlee-gk -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/video_prediction_tools/external_package/lpips-tensorflow/export_to_tensorflow.py b/video_prediction_tools/external_package/lpips-tensorflow/export_to_tensorflow.py index 32681117..091c2273 100644 --- a/video_prediction_tools/external_package/lpips-tensorflow/export_to_tensorflow.py +++ b/video_prediction_tools/external_package/lpips-tensorflow/export_to_tensorflow.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2018, alexlee-gk +# +# SPDX-License-Identifier: BSD-2-Clause + import argparse import os diff --git a/video_prediction_tools/external_package/lpips-tensorflow/lpips_tf.py b/video_prediction_tools/external_package/lpips-tensorflow/lpips_tf.py index 5c47f90b..da8773a9 100644 --- a/video_prediction_tools/external_package/lpips-tensorflow/lpips_tf.py +++ b/video_prediction_tools/external_package/lpips-tensorflow/lpips_tf.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2018, alexlee-gk +# +# SPDX-License-Identifier: BSD-2-Clause + import os import sys diff --git a/video_prediction_tools/external_package/lpips-tensorflow/test_network.py b/video_prediction_tools/external_package/lpips-tensorflow/test_network.py index c222ab93..19df3bfa 100644 --- a/video_prediction_tools/external_package/lpips-tensorflow/test_network.py +++ b/video_prediction_tools/external_package/lpips-tensorflow/test_network.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2018, alexlee-gk +# +# SPDX-License-Identifier: BSD-2-Clause + import argparse import cv2 diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/__init__.py b/video_prediction_tools/model_modules/video_prediction/datasets/__init__.py index cd0ec2b2..05b9a5f6 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/__init__.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from .base_dataset import BaseVideoDataset from .base_dataset import VideoDataset, SequenceExampleVideoDataset, VarLenFeatureVideoDataset from .google_robot_dataset import GoogleRobotVideoDataset diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/base_dataset.py b/video_prediction_tools/model_modules/video_prediction/datasets/base_dataset.py index 734cb4a5..b8e4838b 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/base_dataset.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/base_dataset.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import glob import os import random diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/era5_dataset.py b/video_prediction_tools/model_modules/video_prediction/datasets/era5_dataset.py index 664a817a..1a46a99d 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/era5_dataset.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/era5_dataset.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong, Scarlet Stadtler,Michael Langguth" diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/google_robot_dataset.py b/video_prediction_tools/model_modules/video_prediction/datasets/google_robot_dataset.py index fd2e975c..2cec9ce7 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/google_robot_dataset.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/google_robot_dataset.py @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# Google Inc. +# +# SPDX-License-Identifier: MIT +# SPDX-License-Identifier: Creative Commons Attribution 4.0 International License + import itertools import os @@ -5,9 +11,6 @@ from .base_dataset import VideoDataset class GoogleRobotVideoDataset(VideoDataset): - """ - https://sites.google.com/site/brainrobotdata/home/push-dataset - """ def __init__(self, *args, **kwargs): super(GoogleRobotVideoDataset, self).__init__(*args, **kwargs) self.state_like_names_and_shapes['images'] = 'move/%d/image/encoded', (512, 640, 3) diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/kth_dataset.py b/video_prediction_tools/model_modules/video_prediction/datasets/kth_dataset.py index 40df33aa..a5560cf9 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/kth_dataset.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/kth_dataset.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import argparse import glob import itertools diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/moving_mnist.py b/video_prediction_tools/model_modules/video_prediction/datasets/moving_mnist.py index adfdf065..b3b2e63b 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/moving_mnist.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/moving_mnist.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong, Karim" diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/sv2p_dataset.py b/video_prediction_tools/model_modules/video_prediction/datasets/sv2p_dataset.py index 2ed07229..22e0804f 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/sv2p_dataset.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/sv2p_dataset.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import itertools import os diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/ucf101_dataset.py b/video_prediction_tools/model_modules/video_prediction/datasets/ucf101_dataset.py index 4273728e..adbd0297 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/ucf101_dataset.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/ucf101_dataset.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import argparse import glob import itertools diff --git a/video_prediction_tools/model_modules/video_prediction/flow_ops.py b/video_prediction_tools/model_modules/video_prediction/flow_ops.py index caf9bad7..43d4e3bb 100644 --- a/video_prediction_tools/model_modules/video_prediction/flow_ops.py +++ b/video_prediction_tools/model_modules/video_prediction/flow_ops.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2017 Simon Meister +# +# SPDX-License-Identifier: MIT + import tensorflow as tf @@ -9,8 +13,6 @@ def image_warp(im, flow): flow: Batch of flow vectors. [num_batch, height, width, 2] Returns: warped: transformed image of the same shape as the input image. - - Implementation taken from here: https://github.com/simonmeister/UnFlow """ with tf.variable_scope('image_warp'): diff --git a/video_prediction_tools/model_modules/video_prediction/layers/BasicConvLSTMCell.py b/video_prediction_tools/model_modules/video_prediction/layers/BasicConvLSTMCell.py index 3d806cb4..fd743cb9 100644 --- a/video_prediction_tools/model_modules/video_prediction/layers/BasicConvLSTMCell.py +++ b/video_prediction_tools/model_modules/video_prediction/layers/BasicConvLSTMCell.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT import tensorflow as tf from .layer_def import * diff --git a/video_prediction_tools/model_modules/video_prediction/layers/__init__.py b/video_prediction_tools/model_modules/video_prediction/layers/__init__.py index 8530ffd7..ed4edb68 100644 --- a/video_prediction_tools/model_modules/video_prediction/layers/__init__.py +++ b/video_prediction_tools/model_modules/video_prediction/layers/__init__.py @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from .normalization import fused_instance_norm diff --git a/video_prediction_tools/model_modules/video_prediction/layers/layer_def.py b/video_prediction_tools/model_modules/video_prediction/layers/layer_def.py index 273b5eae..925f94c4 100644 --- a/video_prediction_tools/model_modules/video_prediction/layers/layer_def.py +++ b/video_prediction_tools/model_modules/video_prediction/layers/layer_def.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """functions used to construct different architectures """ diff --git a/video_prediction_tools/model_modules/video_prediction/layers/mcnet_ops.py b/video_prediction_tools/model_modules/video_prediction/layers/mcnet_ops.py index fbe0a3d6..0b2e41ea 100644 --- a/video_prediction_tools/model_modules/video_prediction/layers/mcnet_ops.py +++ b/video_prediction_tools/model_modules/video_prediction/layers/mcnet_ops.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import math import numpy as np import tensorflow as tf diff --git a/video_prediction_tools/model_modules/video_prediction/layers/normalization.py b/video_prediction_tools/model_modules/video_prediction/layers/normalization.py index 2f2a9bb9..e6f79eff 100644 --- a/video_prediction_tools/model_modules/video_prediction/layers/normalization.py +++ b/video_prediction_tools/model_modules/video_prediction/layers/normalization.py @@ -1,17 +1,17 @@ -# Copyright 2017 The TensorFlow Authors. All Rights Reserved. +# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 +# 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. -# ============================================================================= +# ============================================================================ """Contains the normalization layer classes and their functional aliases.""" from __future__ import absolute_import from __future__ import division diff --git a/video_prediction_tools/model_modules/video_prediction/losses.py b/video_prediction_tools/model_modules/video_prediction/losses.py index 0f5c07d1..99925756 100644 --- a/video_prediction_tools/model_modules/video_prediction/losses.py +++ b/video_prediction_tools/model_modules/video_prediction/losses.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import tensorflow as tf from model_modules.video_prediction.ops import sigmoid_kl_with_logits diff --git a/video_prediction_tools/model_modules/video_prediction/metrics.py b/video_prediction_tools/model_modules/video_prediction/metrics.py index 5b31919a..991e295f 100644 --- a/video_prediction_tools/model_modules/video_prediction/metrics.py +++ b/video_prediction_tools/model_modules/video_prediction/metrics.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import tensorflow as tf #import lpips_tf import math diff --git a/video_prediction_tools/model_modules/video_prediction/models/__init__.py b/video_prediction_tools/model_modules/video_prediction/models/__init__.py index 71efd602..5da12f01 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/__init__.py +++ b/video_prediction_tools/model_modules/video_prediction/models/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from .base_model import BaseVideoPredictionModel from .base_model import VideoPredictionModel from .non_trainable_model import NonTrainableVideoPredictionModel diff --git a/video_prediction_tools/model_modules/video_prediction/models/base_model.py b/video_prediction_tools/model_modules/video_prediction/models/base_model.py index 81b60849..2637f81e 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/base_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/base_model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import functools import itertools import os diff --git a/video_prediction_tools/model_modules/video_prediction/models/convLSTM_GAN_model.py b/video_prediction_tools/model_modules/video_prediction/models/convLSTM_GAN_model.py index acd08cd8..daab8d9b 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/convLSTM_GAN_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/convLSTM_GAN_model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong,Yanji" __date__ = "2021-04-13" diff --git a/video_prediction_tools/model_modules/video_prediction/models/dna_model.py b/video_prediction_tools/model_modules/video_prediction/models/dna_model.py index 8badf600..6568a13f 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/dna_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/dna_model.py @@ -1,17 +1,7 @@ # Copyright 2016 The TensorFlow Authors All Rights Reserved. +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) # -# 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. -# ============================================================================== +# SPDX-License-Identifier: MIT """Model architecture for predictive model, including CDNA, DNA, and STP.""" diff --git a/video_prediction_tools/model_modules/video_prediction/models/mcnet_model.py b/video_prediction_tools/model_modules/video_prediction/models/mcnet_model.py index 2c755417..80a49160 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/mcnet_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/mcnet_model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong" __date__ = "2020-08-22" diff --git a/video_prediction_tools/model_modules/video_prediction/models/model_helpers.py b/video_prediction_tools/model_modules/video_prediction/models/model_helpers.py index a81f4631..1e6b6f40 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/model_helpers.py +++ b/video_prediction_tools/model_modules/video_prediction/models/model_helpers.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong, Michael Langguth" __date__ = "2021-20-05" @@ -25,4 +29,4 @@ def set_and_check_pred_frames(seq_length, context_frames): return seq_length - context_frames else: raise ValueError("%{0}: Sequence length ({1}) must be larger than context frames ({2})." - .format(method, seq_length, context_frames)) \ No newline at end of file + .format(method, seq_length, context_frames)) diff --git a/video_prediction_tools/model_modules/video_prediction/models/networks.py b/video_prediction_tools/model_modules/video_prediction/models/networks.py index db372ea3..0ac98a34 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/networks.py +++ b/video_prediction_tools/model_modules/video_prediction/models/networks.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import tensorflow as tf from tensorflow.python.util import nest diff --git a/video_prediction_tools/model_modules/video_prediction/models/non_trainable_model.py b/video_prediction_tools/model_modules/video_prediction/models/non_trainable_model.py index cdab65c1..a0b7839e 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/non_trainable_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/non_trainable_model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from collections import OrderedDict from tensorflow.python.util import nest from model_modules.video_prediction.utils.tf_utils import transpose_batch_time diff --git a/video_prediction_tools/model_modules/video_prediction/models/savp_model.py b/video_prediction_tools/model_modules/video_prediction/models/savp_model.py index 5b817106..eba740e2 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/savp_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/savp_model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import collections import functools import itertools diff --git a/video_prediction_tools/model_modules/video_prediction/models/test_model.py b/video_prediction_tools/model_modules/video_prediction/models/test_model.py index 98b902f4..f6368987 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/test_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/test_model.py @@ -1,4 +1,6 @@ - +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong" diff --git a/video_prediction_tools/model_modules/video_prediction/models/vanilla_convLSTM_model.py b/video_prediction_tools/model_modules/video_prediction/models/vanilla_convLSTM_model.py index 5c949c96..a9e59e75 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/vanilla_convLSTM_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/vanilla_convLSTM_model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong, Scarlet Stadtler,Michael Langguth" __date__ = "2020-11-05" diff --git a/video_prediction_tools/model_modules/video_prediction/models/vanilla_vae_model.py b/video_prediction_tools/model_modules/video_prediction/models/vanilla_vae_model.py index ae965cfb..5365bcb8 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/vanilla_vae_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/vanilla_vae_model.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong" diff --git a/video_prediction_tools/model_modules/video_prediction/ops.py b/video_prediction_tools/model_modules/video_prediction/ops.py index 7e41af95..74d922db 100644 --- a/video_prediction_tools/model_modules/video_prediction/ops.py +++ b/video_prediction_tools/model_modules/video_prediction/ops.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import numpy as np import tensorflow as tf diff --git a/video_prediction_tools/model_modules/video_prediction/utils/ffmpeg_gif.py b/video_prediction_tools/model_modules/video_prediction/utils/ffmpeg_gif.py index 724933f7..e9ff2c34 100644 --- a/video_prediction_tools/model_modules/video_prediction/utils/ffmpeg_gif.py +++ b/video_prediction_tools/model_modules/video_prediction/utils/ffmpeg_gif.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import os import numpy as np diff --git a/video_prediction_tools/model_modules/video_prediction/utils/html.py b/video_prediction_tools/model_modules/video_prediction/utils/html.py index 4334f87b..a920523f 100755 --- a/video_prediction_tools/model_modules/video_prediction/utils/html.py +++ b/video_prediction_tools/model_modules/video_prediction/utils/html.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import os import dominate diff --git a/video_prediction_tools/model_modules/video_prediction/utils/mcnet_utils.py b/video_prediction_tools/model_modules/video_prediction/utils/mcnet_utils.py index 7bad0131..e4f2129e 100644 --- a/video_prediction_tools/model_modules/video_prediction/utils/mcnet_utils.py +++ b/video_prediction_tools/model_modules/video_prediction/utils/mcnet_utils.py @@ -1,6 +1,7 @@ -""" -Some codes from https://github.com/Newmu/dcgan_code -""" +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# SPDX-FileCopyrightText: 2015 Alec Radford +# +# SPDX-License-Identifier: MIT import cv2 import random diff --git a/video_prediction_tools/model_modules/video_prediction/utils/tf_utils.py b/video_prediction_tools/model_modules/video_prediction/utils/tf_utils.py index 415275e8..7933e40e 100644 --- a/video_prediction_tools/model_modules/video_prediction/utils/tf_utils.py +++ b/video_prediction_tools/model_modules/video_prediction/utils/tf_utils.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import itertools import os from collections import OrderedDict diff --git a/video_prediction_tools/postprocess/plot_ambs_forecast.py b/video_prediction_tools/postprocess/plot_ambs_forecast.py index 2ba385eb..1ba2a7b2 100644 --- a/video_prediction_tools/postprocess/plot_ambs_forecast.py +++ b/video_prediction_tools/postprocess/plot_ambs_forecast.py @@ -1,4 +1,8 @@ -#!/usr/bin/env python +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + +# !/usr/bin/env python # coding: utf-8 """ diff --git a/video_prediction_tools/postprocess/postprocess_plotting.py b/video_prediction_tools/postprocess/postprocess_plotting.py index 27758b75..354e0d5c 100644 --- a/video_prediction_tools/postprocess/postprocess_plotting.py +++ b/video_prediction_tools/postprocess/postprocess_plotting.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Collection of functions to create plots """ diff --git a/video_prediction_tools/postprocess/statistical_evaluation.py b/video_prediction_tools/postprocess/statistical_evaluation.py index 96cf4a47..7469ee61 100644 --- a/video_prediction_tools/postprocess/statistical_evaluation.py +++ b/video_prediction_tools/postprocess/statistical_evaluation.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Collection of auxiliary functions for statistical evaluation and class for Score-functions """ diff --git a/video_prediction_tools/utils/external_function.py b/video_prediction_tools/utils/external_function.py index 690d1804..32f72637 100644 --- a/video_prediction_tools/utils/external_function.py +++ b/video_prediction_tools/utils/external_function.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + #from mpi4py import MPI from os import walk import os diff --git a/video_prediction_tools/utils/general_utils.py b/video_prediction_tools/utils/general_utils.py index 83ed526b..64000ee9 100644 --- a/video_prediction_tools/utils/general_utils.py +++ b/video_prediction_tools/utils/general_utils.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Some auxilary routines which may are used throughout the project. Provides: * get_unique_vars diff --git a/video_prediction_tools/utils/metadata.py b/video_prediction_tools/utils/metadata.py index 98c096f3..403ce555 100644 --- a/video_prediction_tools/utils/metadata.py +++ b/video_prediction_tools/utils/metadata.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Class to retrieve and handle meta-data """ diff --git a/video_prediction_tools/utils/netcdf_datahandling.py b/video_prediction_tools/utils/netcdf_datahandling.py index a54ce027..a885a398 100644 --- a/video_prediction_tools/utils/netcdf_datahandling.py +++ b/video_prediction_tools/utils/netcdf_datahandling.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Classes to handle netCDF-data files and to extract gridded data on a subdomain (e.g. used for handling ERA5-reanalysis data) diff --git a/video_prediction_tools/utils/normalization.py b/video_prediction_tools/utils/normalization.py index e3ad0616..250b9305 100644 --- a/video_prediction_tools/utils/normalization.py +++ b/video_prediction_tools/utils/normalization.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Class for normalizing data. The statistical data for normalization (minimum, maximum, average, standard deviation etc.) is expected to be available from a statistics-dictionary created with the calc_data_stat-class (see 'process_netCDF_v2.py'. diff --git a/video_prediction_tools/utils/runscript_generator/config_extraction.py b/video_prediction_tools/utils/runscript_generator/config_extraction.py index febd67a3..6d322e29 100755 --- a/video_prediction_tools/utils/runscript_generator/config_extraction.py +++ b/video_prediction_tools/utils/runscript_generator/config_extraction.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Child class used for configuring the data extraction runscript of the workflow. """ diff --git a/video_prediction_tools/utils/runscript_generator/config_postprocess.py b/video_prediction_tools/utils/runscript_generator/config_postprocess.py index 7423e1f9..eff2694b 100755 --- a/video_prediction_tools/utils/runscript_generator/config_postprocess.py +++ b/video_prediction_tools/utils/runscript_generator/config_postprocess.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Child class used for configuring the postprocessing runscript of the workflow. """ diff --git a/video_prediction_tools/utils/runscript_generator/config_preprocess_step1.py b/video_prediction_tools/utils/runscript_generator/config_preprocess_step1.py index 025a203b..c0d66695 100755 --- a/video_prediction_tools/utils/runscript_generator/config_preprocess_step1.py +++ b/video_prediction_tools/utils/runscript_generator/config_preprocess_step1.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Child class used for configuring the preprocessing step 1 runscript of the workflow. """ diff --git a/video_prediction_tools/utils/runscript_generator/config_preprocess_step2.py b/video_prediction_tools/utils/runscript_generator/config_preprocess_step2.py index 6df24f28..144ac1d9 100755 --- a/video_prediction_tools/utils/runscript_generator/config_preprocess_step2.py +++ b/video_prediction_tools/utils/runscript_generator/config_preprocess_step2.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Child class used for configuring the preprocessing step 2 runscript of the workflow. """ diff --git a/video_prediction_tools/utils/runscript_generator/config_training.py b/video_prediction_tools/utils/runscript_generator/config_training.py index c37c6262..a224148f 100755 --- a/video_prediction_tools/utils/runscript_generator/config_training.py +++ b/video_prediction_tools/utils/runscript_generator/config_training.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Child class used for configuring the training runscript of the workflow. """ diff --git a/video_prediction_tools/utils/runscript_generator/config_utils.py b/video_prediction_tools/utils/runscript_generator/config_utils.py index d54aafb1..eb4d3119 100755 --- a/video_prediction_tools/utils/runscript_generator/config_utils.py +++ b/video_prediction_tools/utils/runscript_generator/config_utils.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Parent class which contains some basic atributes and methods shared by all subclasses which are used to configure the runscripts of dedicated workflow steps (done by config_runscript.py). diff --git a/video_prediction_tools/utils/runscript_generator/configurations.py b/video_prediction_tools/utils/runscript_generator/configurations.py index 669d5c5f..c5663bdc 100644 --- a/video_prediction_tools/utils/runscript_generator/configurations.py +++ b/video_prediction_tools/utils/runscript_generator/configurations.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Auxiliary functions that are used in config_runscript.py. They are used for facilating the customized conversion of the preprocessing step 2- and training runscript-templates diff --git a/video_prediction_tools/utils/shiftgrid.py b/video_prediction_tools/utils/shiftgrid.py index 081e0985..9e5ac082 100644 --- a/video_prediction_tools/utils/shiftgrid.py +++ b/video_prediction_tools/utils/shiftgrid.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """shiftgrid function from mpl_toolkitsbasemap v1.1.0 This function was copied here to avoid the hassle of importing basemap. """ diff --git a/video_prediction_tools/utils/statistics.py b/video_prediction_tools/utils/statistics.py index ea537fd4..c23a2fc9 100644 --- a/video_prediction_tools/utils/statistics.py +++ b/video_prediction_tools/utils/statistics.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Class to calculate and save statistics in the ambs-workflow parallelized by PyStager. In addition to savin the statistics in json-files, it also comprises methods to read those files. -- GitLab