summaryrefslogtreecommitdiffstats
path: root/src/Python/test.py
diff options
context:
space:
mode:
authoralgol <dkazanc@hotmail.com>2018-01-25 17:22:13 +0000
committeralgol <dkazanc@hotmail.com>2018-01-25 17:22:13 +0000
commit7edf78f4733379ddc093dc37650f5886bb03d98b (patch)
treec78c03166d90c06de88d5d78bed449041361da02 /src/Python/test.py
parentef41d45779400ae029a14822df79d5d8910ef03d (diff)
parent993022bdddef2c81067db70be6c65a6f943c24bb (diff)
downloadregularization-7edf78f4733379ddc093dc37650f5886bb03d98b.tar.gz
regularization-7edf78f4733379ddc093dc37650f5886bb03d98b.tar.bz2
regularization-7edf78f4733379ddc093dc37650f5886bb03d98b.tar.xz
regularization-7edf78f4733379ddc093dc37650f5886bb03d98b.zip
Merge branch 'master' of https://github.com/vais-ral/CCPi-FISTA_Reconstruction
Diffstat (limited to 'src/Python/test.py')
-rw-r--r--src/Python/test.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/Python/test.py b/src/Python/test.py
deleted file mode 100644
index db47380..0000000
--- a/src/Python/test.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-Created on Thu Aug 3 14:08:09 2017
-
-@author: ofn77899
-"""
-
-import prova
-import numpy as np
-
-a = np.asarray([i for i in range(1*2*3)])
-a = a.reshape([1,2,3])
-print (a)
-b = prova.mexFunction(a)
-#print (b)
-print (b[4].shape)
-print (b[4])
-print (b[5])
-
-def print_element(input):
- print ("f: {0}".format(input))
-
-prova.doSomething(a, print_element, None)
-
-c = []
-def append_to_list(input, shouldPrint=False):
- c.append(input)
- if shouldPrint:
- print ("{0} appended to list {1}".format(input, c))
-
-def element_wise_algebra(input, shouldPrint=True):
- ret = input - 7
- if shouldPrint:
- print ("element_wise {0}".format(ret))
- return ret
-
-prova.doSomething(a, append_to_list, None)
-#print ("this is c: {0}".format(c))
-
-b = prova.doSomething(a, None, element_wise_algebra)
-#print (a)
-print (b[5])