summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-04-01 16:36:27 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2019-04-01 16:36:27 +0100
commitc1ce6acc73edd30115575cd13e4e3f2e1bb108e6 (patch)
tree29c5120bad7e34b60319c00b5390c85fadab0233 /Wrappers/Python
parent0e8dac47faf88379175310552a4611ca34f407ea (diff)
downloadframework-c1ce6acc73edd30115575cd13e4e3f2e1bb108e6.tar.gz
framework-c1ce6acc73edd30115575cd13e4e3f2e1bb108e6.tar.bz2
framework-c1ce6acc73edd30115575cd13e4e3f2e1bb108e6.tar.xz
framework-c1ce6acc73edd30115575cd13e4e3f2e1bb108e6.zip
added header
Diffstat (limited to 'Wrappers/Python')
-rw-r--r--Wrappers/Python/ccpi/optimisation/functions/L1Norm.py18
-rwxr-xr-xWrappers/Python/ccpi/optimisation/functions/ScaledFunction.py18
-rw-r--r--Wrappers/Python/ccpi/optimisation/functions/ZeroFun.py28
3 files changed, 57 insertions, 7 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/functions/L1Norm.py b/Wrappers/Python/ccpi/optimisation/functions/L1Norm.py
index f83de6f..5a47edd 100644
--- a/Wrappers/Python/ccpi/optimisation/functions/L1Norm.py
+++ b/Wrappers/Python/ccpi/optimisation/functions/L1Norm.py
@@ -1,5 +1,21 @@
-#!/usr/bin/env python3
# -*- coding: utf-8 -*-
+# This work is part of the Core Imaging Library developed by
+# Visual Analytics and Imaging System Group of the Science Technology
+# Facilities Council, STFC
+
+# Copyright 2018-2019 Evangelos Papoutsellis and Edoardo Pasca
+
+# 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.
"""
Created on Wed Mar 6 19:42:34 2019
diff --git a/Wrappers/Python/ccpi/optimisation/functions/ScaledFunction.py b/Wrappers/Python/ccpi/optimisation/functions/ScaledFunction.py
index b48135d..046a4a6 100755
--- a/Wrappers/Python/ccpi/optimisation/functions/ScaledFunction.py
+++ b/Wrappers/Python/ccpi/optimisation/functions/ScaledFunction.py
@@ -1,3 +1,21 @@
+# -*- coding: utf-8 -*-
+# This work is part of the Core Imaging Library developed by
+# Visual Analytics and Imaging System Group of the Science Technology
+# Facilities Council, STFC
+
+# Copyright 2018-2019 Evangelos Papoutsellis and Edoardo Pasca
+
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+
+# http://www.apache.org/licenses/LICENSE-2.0
+
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
from numbers import Number
import numpy
diff --git a/Wrappers/Python/ccpi/optimisation/functions/ZeroFun.py b/Wrappers/Python/ccpi/optimisation/functions/ZeroFun.py
index 8c28874..88d9b64 100644
--- a/Wrappers/Python/ccpi/optimisation/functions/ZeroFun.py
+++ b/Wrappers/Python/ccpi/optimisation/functions/ZeroFun.py
@@ -1,10 +1,21 @@
-#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-"""
-Created on Wed Mar 6 19:44:10 2019
+# This work is part of the Core Imaging Library developed by
+# Visual Analytics and Imaging System Group of the Science Technology
+# Facilities Council, STFC
-@author: evangelos
-"""
+# Copyright 2018-2019 Evangelos Papoutsellis and Edoardo Pasca
+
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+
+# http://www.apache.org/licenses/LICENSE-2.0
+
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
import numpy as np
#from ccpi.optimisation.funcs import Function
@@ -41,4 +52,9 @@ class ZeroFun(Function):
out.fill(x)
def proximal_conjugate(self, x, tau):
- return 0 \ No newline at end of file
+ return 0
+
+ def domain_geometry(self):
+ pass
+ def range_geometry(self):
+ pass \ No newline at end of file