Skip to content

Commit

Permalink
replaced Apache statement with SPDX identifier and minor fixes
Browse files Browse the repository at this point in the history
- Replaced long statements on the license with a single line. Fixes SyneRBI#175
- fix SPECT notebook JSON (related to cd_to_working_dir lines)
- run nbstripout again on all files (DL and SPECT notebooks affected)
  • Loading branch information
KrisThielemans committed Jan 19, 2023
1 parent e7d4057 commit ab0a568
Show file tree
Hide file tree
Showing 47 changed files with 52 additions and 369 deletions.
2 changes: 1 addition & 1 deletion notebooks/Deep_Learning_PET/1_setup_fwd_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"\n",
"This is software developed for the Collaborative Computational Project in Synergistic Reconstruction for Biomedical Imaging (http://www.ccpsynerbi.ac.uk/).\n",
"\n",
"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.\n",
"SPDX-License-Identifier: Apache-2.0\n",
"\n",
"# Setting up the forward model\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/Deep_Learning_PET/2_setup_ellipses_dataset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"\n",
"This is software developed for the Collaborative Computational Project in Synergistic Reconstruction for Biomedical Imaging (http://www.ccpsynerbi.ac.uk/).\n",
"\n",
"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.\n",
"SPDX-License-Identifier: Apache-2.0\n",
"\n",
"# Setting up the Ellipses dataset\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/Deep_Learning_PET/3_setup_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"\n",
"This is software developed for the Collaborative Computational Project in Synergistic Reconstruction for Biomedical Imaging (http://www.ccpsynerbi.ac.uk/).\n",
"\n",
"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.\n",
"SPDX-License-Identifier: Apache-2.0\n",
"\n",
"# Setting up the model\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/Deep_Learning_PET/4_setup_training.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"\n",
"This is software developed for the Collaborative Computational Project in Synergistic Reconstruction for Biomedical Imaging (http://www.ccpsynerbi.ac.uk/).\n",
"\n",
"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.\n",
"SPDX-License-Identifier: Apache-2.0\n",
"\n",
"# Setting up the training\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/Geometry/a_geometry.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Copyright 2021 University College London.\n",
"\n",
"This is software developed for the Collaborative Computational Project in Synergistic Reconstruction for Biomedical Imaging (http://www.ccpsynerbi.ac.uk/).\n",
"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: Apache-2.0"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/Geometry/b_geom_resamp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Copyright 2021 University College London.\n",
"\n",
"This is software developed for the Collaborative Computational Project in Synergistic Reconstruction for Biomedical Imaging (http://www.ccpsynerbi.ac.uk/).\n",
"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: Apache-2.0"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/Geometry/c_fully3dgeom.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Copyright 2021 University College London.\n",
"\n",
"This is software developed for the Collaborative Computational Project in Synergistic Reconstruction for Biomedical Imaging (http://www.ccpsynerbi.ac.uk/).\n",
"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: Apache-2.0"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/Geometry/d_manipulation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Copyright 2021 University College London.\n",
"\n",
"This is software developed for the Collaborative Computational Project in Synergistic Reconstruction for Biomedical Imaging (http://www.ccpsynerbi.ac.uk/).\n",
"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: Apache-2.0"
]
},
{
Expand Down
10 changes: 1 addition & 9 deletions notebooks/Introductory/acquisition_model_mr_pet_ct.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@
"Project in Synergistic Reconstruction for Biomedical Imaging\n",
"(http://www.ccpsynerbi.ac.uk/).\n",
"\n",
"Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"you may not use this file except in compliance with the License.\n",
"You may obtain a copy of the License at\n",
" http://www.apache.org/licenses/LICENSE-2.0\n",
"Unless required by applicable law or agreed to in writing, software\n",
"distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"See the License for the specific language governing permissions and\n",
"limitations under the License."
"SPDX-License-Identifier: Apache-2.0"
]
},
{
Expand Down
10 changes: 1 addition & 9 deletions notebooks/Introductory/introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@
"Project in Synergistic Reconstruction for Biomedical Imaging\n",
"(http://www.ccpsynerbi.ac.uk/).\n",
"\n",
"Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"you may not use this file except in compliance with the License.\n",
"You may obtain a copy of the License at\n",
" http://www.apache.org/licenses/LICENSE-2.0\n",
"Unless required by applicable law or agreed to in writing, software\n",
"distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"See the License for the specific language governing permissions and\n",
"limitations under the License."
"SPDX-License-Identifier: Apache-2.0"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,7 @@
"## Project in Positron Emission Tomography and Magnetic Resonance imaging\n",
"## (http://www.ccppetmr.ac.uk/).\n",
"##\n",
"## Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"## you may not use this file except in compliance with the License.\n",
"## You may obtain a copy of the License at\n",
"## http://www.apache.org/licenses/LICENSE-2.0\n",
"## Unless required by applicable law or agreed to in writing, software\n",
"## distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"## See the License for the specific language governing permissions and\n",
"## limitations under the License.\n",
"## SPDX-License-Identifier: Apache-2.0\n",
"\n",
"__version__ = '0.1.0'\n",
"from docopt import docopt\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@
"## Project in Positron Emission Tomography and Magnetic Resonance imaging\n",
"## (http://www.ccppetmr.ac.uk/).\n",
"##\n",
"## Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"## you may not use this file except in compliance with the License.\n",
"## You may obtain a copy of the License at\n",
"## http://www.apache.org/licenses/LICENSE-2.0\n",
"## Unless required by applicable law or agreed to in writing, software\n",
"## distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"## See the License for the specific language governing permissions and\n",
"## limitations under the License.\n",
"## SPDX-License-Identifier: Apache-2.0\n",
"\n",
"__version__ = '0.1.0'\n",
"from docopt import docopt\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,7 @@
"## Project in Positron Emission Tomography and Magnetic Resonance imaging\n",
"## (http://www.ccppetmr.ac.uk/).\n",
"##\n",
"## Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"## you may not use this file except in compliance with the License.\n",
"## You may obtain a copy of the License at\n",
"## http://www.apache.org/licenses/LICENSE-2.0\n",
"## Unless required by applicable law or agreed to in writing, software\n",
"## distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"## See the License for the specific language governing permissions and\n",
"## limitations under the License.\n",
"## SPDX-License-Identifier: Apache-2.0\n",
"\n",
"__version__ = '0.1.0'\n",
"from docopt import docopt\n",
Expand Down
10 changes: 1 addition & 9 deletions notebooks/MR/Old_notebooks/Gadgetron/grappa_detail.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,7 @@
"## Project in Positron Emission Tomography and Magnetic Resonance imaging\n",
"## (http://www.ccppetmr.ac.uk/).\n",
"##\n",
"## Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"## you may not use this file except in compliance with the License.\n",
"## You may obtain a copy of the License at\n",
"## http://www.apache.org/licenses/LICENSE-2.0\n",
"## Unless required by applicable law or agreed to in writing, software\n",
"## distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"## See the License for the specific language governing permissions and\n",
"## limitations under the License.\n",
"## SPDX-License-Identifier: Apache-2.0\n",
"\n",
"__version__ = '0.1.0'\n",
"from docopt import docopt\n",
Expand Down
10 changes: 1 addition & 9 deletions notebooks/MR/Old_notebooks/acquisition_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,7 @@
"## Project in Positron Emission Tomography and Magnetic Resonance imaging\n",
"## (http://www.ccppetmr.ac.uk/).\n",
"##\n",
"## Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"## you may not use this file except in compliance with the License.\n",
"## You may obtain a copy of the License at\n",
"## http://www.apache.org/licenses/LICENSE-2.0\n",
"## Unless required by applicable law or agreed to in writing, software\n",
"## distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"## See the License for the specific language governing permissions and\n",
"## limitations under the License.\n",
"## SPDX-License-Identifier: Apache-2.0\n",
"\n",
"__version__ = '0.1.0'\n",
"from docopt import docopt\n",
Expand Down
10 changes: 1 addition & 9 deletions notebooks/MR/Old_notebooks/acquisition_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,7 @@
"## Project in Positron Emission Tomography and Magnetic Resonance imaging\n",
"## (http://www.ccppetmr.ac.uk/).\n",
"##\n",
"## Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"## you may not use this file except in compliance with the License.\n",
"## You may obtain a copy of the License at\n",
"## http://www.apache.org/licenses/LICENSE-2.0\n",
"## Unless required by applicable law or agreed to in writing, software\n",
"## distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"## See the License for the specific language governing permissions and\n",
"## limitations under the License.\n",
"## SPDX-License-Identifier: Apache-2.0\n",
"\n",
"__version__ = '0.1.0'\n",
"from docopt import docopt\n",
Expand Down
10 changes: 1 addition & 9 deletions notebooks/MR/Old_notebooks/fully_sampled_recon.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,7 @@
"## Project in Positron Emission Tomography and Magnetic Resonance imaging\n",
"## (http://www.ccppetmr.ac.uk/).\n",
"##\n",
"## Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"## you may not use this file except in compliance with the License.\n",
"## You may obtain a copy of the License at\n",
"## http://www.apache.org/licenses/LICENSE-2.0\n",
"## Unless required by applicable law or agreed to in writing, software\n",
"## distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"## See the License for the specific language governing permissions and\n",
"## limitations under the License.\n",
"## SPDX-License-Identifier: Apache-2.0\n",
"\n",
"__version__ = '0.1.0'\n",
"from docopt import docopt\n",
Expand Down
10 changes: 1 addition & 9 deletions notebooks/MR/Old_notebooks/grappa_and_steepest_descent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@
"## Project in Positron Emission Tomography and Magnetic Resonance imaging\n",
"## (http://www.ccppetmr.ac.uk/).\n",
"##\n",
"## Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"## you may not use this file except in compliance with the License.\n",
"## You may obtain a copy of the License at\n",
"## http://www.apache.org/licenses/LICENSE-2.0\n",
"## Unless required by applicable law or agreed to in writing, software\n",
"## distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"## See the License for the specific language governing permissions and\n",
"## limitations under the License.\n",
"## SPDX-License-Identifier: Apache-2.0\n",
"\n",
"__version__ = '0.1.0'\n",
"from docopt import docopt\n",
Expand Down
10 changes: 1 addition & 9 deletions notebooks/MR/Old_notebooks/grappa_basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,7 @@
"## Project in Positron Emission Tomography and Magnetic Resonance imaging\n",
"## (http://www.ccppetmr.ac.uk/).\n",
"##\n",
"## Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"## you may not use this file except in compliance with the License.\n",
"## You may obtain a copy of the License at\n",
"## http://www.apache.org/licenses/LICENSE-2.0\n",
"## Unless required by applicable law or agreed to in writing, software\n",
"## distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"## See the License for the specific language governing permissions and\n",
"## limitations under the License.\n",
"## SPDX-License-Identifier: Apache-2.0\n",
"\n",
"#__version__ = '0.1.0'\n",
"from docopt import docopt\n",
Expand Down
10 changes: 1 addition & 9 deletions notebooks/MR/a_fully_sampled.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,7 @@
"Project in Positron Emission Tomography and Magnetic Resonance imaging\n",
"(http://www.ccppetmr.ac.uk/).\n",
"\n",
"Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"you may not use this file except in compliance with the License.\n",
"You may obtain a copy of the License at\n",
" http://www.apache.org/licenses/LICENSE-2.0\n",
"Unless required by applicable law or agreed to in writing, software\n",
"distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"See the License for the specific language governing permissions and\n",
"limitations under the License."
"SPDX-License-Identifier: Apache-2.0"
]
},
{
Expand Down
10 changes: 1 addition & 9 deletions notebooks/MR/b_kspace_filter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,7 @@
"Project in Positron Emission Tomography and Magnetic Resonance imaging\n",
"(http://www.ccppetmr.ac.uk/).\n",
"\n",
"Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"you may not use this file except in compliance with the License.\n",
"You may obtain a copy of the License at\n",
" http://www.apache.org/licenses/LICENSE-2.0\n",
"Unless required by applicable law or agreed to in writing, software\n",
"distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"See the License for the specific language governing permissions and\n",
"limitations under the License."
"SPDX-License-Identifier: Apache-2.0"
]
},
{
Expand Down
10 changes: 1 addition & 9 deletions notebooks/MR/c_coil_combination.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,7 @@
"Project in Positron Emission Tomography and Magnetic Resonance imaging\n",
"(http://www.ccppetmr.ac.uk/).\n",
"\n",
"Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"you may not use this file except in compliance with the License.\n",
"You may obtain a copy of the License at\n",
"http://www.apache.org/licenses/LICENSE-2.0\n",
"Unless required by applicable law or agreed to in writing, software\n",
"distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"See the License for the specific language governing permissions and\n",
"limitations under the License.\n"
"SPDX-License-Identifier: Apache-2.0"
]
},
{
Expand Down
10 changes: 1 addition & 9 deletions notebooks/MR/d_undersampled_reconstructions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,7 @@
"Project in Positron Emission Tomography and Magnetic Resonance imaging\n",
"(http://www.ccppetmr.ac.uk/).\n",
"\n",
"Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"you may not use this file except in compliance with the License.\n",
"You may obtain a copy of the License at\n",
" http://www.apache.org/licenses/LICENSE-2.0\n",
"Unless required by applicable law or agreed to in writing, software\n",
"distributed under the License is distributed on an \"AS IS\" BASIS,\n",
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"See the License for the specific language governing permissions and\n",
"limitations under the License."
"SPDX-License-Identifier: Apache-2.0"
]
},
{
Expand Down
Loading

0 comments on commit ab0a568

Please sign in to comment.