Changeset 5258 for trunk/psModules
- Timestamp:
- Oct 10, 2005, 11:59:27 AM (21 years ago)
- Location:
- trunk/psModules/test
- Files:
-
- 3 added
- 5 edited
-
astrom/verified (added)
-
astrom/verified/tst_pmAstrometry.stderr (added)
-
astrom/verified/tst_pmAstrometry.stdout (added)
-
imcombine/tst_pmImageCombine.c (modified) (3 diffs)
-
imcombine/verified/tst_pmImageCombine.stdout (modified) (2 diffs)
-
objects/tst_pmObjects01.c (modified) (3 diffs)
-
objects/verified/tst_pmObjects01.stderr (modified) (3 diffs)
-
objects/verified/tst_pmObjects01.stdout (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/imcombine/tst_pmImageCombine.c
r5169 r5258 10 10 * XXX: Must test masks with pmRejectPixels() 11 11 * 12 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $13 * @date $Date: 2005- 09-28 20:42:52$12 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-10-10 21:58:34 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 276 276 psPixels *myPixels = (psPixels *) questionablePixels->data[i]; 277 277 for (psS32 p = 0 ; p < myPixels->n ; p++) { 278 printf("Image %d, questionable pixel %d is (%d %d)\n", i, p, myPixels->data[p].y, myPixels->data[p].x); 278 printf("Image %d, questionable pixel %d is (%f %f)\n", 279 i, p, myPixels->data[p].y, myPixels->data[p].x); 279 280 } 280 281 } … … 318 319 319 320 for (psS32 p = 0 ; p < myPixels->n ; p++) { 320 printf("Image %d, rejected pixel %d is (% d %d)\n", i, p,321 printf("Image %d, rejected pixel %d is (%f %f)\n", i, p, 321 322 myPixels->data[p].y, myPixels->data[p].x); 322 323 } -
trunk/psModules/test/imcombine/verified/tst_pmImageCombine.stdout
r5169 r5258 19 19 Calling with a NULL stats. Should generate error, return NULL. 20 20 Calling with acceptable data. Should generate a psImage. 21 Image 1, questionable pixel 0 is (0 8)22 Image 1, questionable pixel 1 is (1 2)23 Image 1, questionable pixel 2 is (3 9)24 Image 1, questionable pixel 3 is (4 5)25 Image 1, questionable pixel 4 is (3 8)26 Image 2, questionable pixel 0 is (9 9)27 Image 2, questionable pixel 1 is (0 5)28 Image 2, questionable pixel 2 is (6 2)29 Image 2, questionable pixel 3 is (3 7)30 Image 3, questionable pixel 0 is (7 5)21 Image 1, questionable pixel 0 is (0.000000 8.000000) 22 Image 1, questionable pixel 1 is (1.000000 2.000000) 23 Image 1, questionable pixel 2 is (3.000000 9.000000) 24 Image 1, questionable pixel 3 is (4.000000 5.000000) 25 Image 1, questionable pixel 4 is (3.000000 8.000000) 26 Image 2, questionable pixel 0 is (9.000000 9.000000) 27 Image 2, questionable pixel 1 is (0.000000 5.000000) 28 Image 2, questionable pixel 2 is (6.000000 2.000000) 29 Image 2, questionable pixel 3 is (3.000000 7.000000) 30 Image 3, questionable pixel 0 is (7.000000 5.000000) 31 31 32 32 … … 35 35 tst_pmImageCombine.c: Image 0 had 0 rejects. 36 36 tst_pmImageCombine.c: Image 1 had 4 rejects. 37 Image 1, rejected pixel 0 is (0 8)38 Image 1, rejected pixel 1 is (1 2)39 Image 1, rejected pixel 2 is (4 5)40 Image 1, rejected pixel 3 is (3 8)37 Image 1, rejected pixel 0 is (0.000000 8.000000) 38 Image 1, rejected pixel 1 is (1.000000 2.000000) 39 Image 1, rejected pixel 2 is (4.000000 5.000000) 40 Image 1, rejected pixel 3 is (3.000000 8.000000) 41 41 tst_pmImageCombine.c: Image 2 had 3 rejects. 42 Image 2, rejected pixel 0 is (0 5)43 Image 2, rejected pixel 1 is (6 2)44 Image 2, rejected pixel 2 is (3 7)42 Image 2, rejected pixel 0 is (0.000000 5.000000) 43 Image 2, rejected pixel 1 is (6.000000 2.000000) 44 Image 2, rejected pixel 2 is (3.000000 7.000000) 45 45 tst_pmImageCombine.c: Image 3 had 1 rejects. 46 Image 3, rejected pixel 0 is (7 5)46 Image 3, rejected pixel 0 is (7.000000 5.000000) 47 47 tst_pmImageCombine.c: Image 4 had 0 rejects. -
trunk/psModules/test/objects/tst_pmObjects01.c
r5255 r5258 25 25 26 26 * 27 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $28 * @date $Date: 2005-10-10 19:53:54$27 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 28 * @date $Date: 2005-10-10 21:55:42 $ 29 29 * 30 30 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 46 46 static int test05(void); 47 47 //static int test06(void); 48 static int test07(void);48 //static int test07(void); 49 49 /* 50 50 static int test08(void); … … 62 62 {test05, 001, "pmObjects: pmSourceMoments()", true, false}, 63 63 // {test06, 001, "pmObjects: pmSourceSetPixelsCircle()", true, false}, 64 {test07, 001, "pmObjects: pmMin()", true, false},64 // {test07, 001, "pmObjects: pmMin()", true, false}, 65 65 /* 66 66 {test08, 001, "pmObjects: pmSourceModelGuess()", true, false}, -
trunk/psModules/test/objects/verified/tst_pmObjects01.stderr
r5169 r5258 5 5 \**********************************************************************************/ 6 6 7 <HOST>|E|pmModelParameterCount (FILE:LINENO) 8 Undefined pmModelType 7 9 8 10 ---> TESTPOINT PASSED (Test Point Driver{pmObjects: structure allocators and deallocators} | tst_pmObjects01.c) … … 56 58 57 59 <HOST>|E|pmSourceLocalSky (FILE:LINENO) 58 Unallowable operation: psImage image or its datais NULL.60 Unallowable operation: source is NULL. 59 61 <HOST>|E|pmSourceLocalSky (FILE:LINENO) 60 Unallowable operation: psImage image has incorrect type. 61 <HOST>|E|pmSourceLocalSky (FILE:LINENO) 62 Unallowable operation: peak is NULL. 63 <HOST>|E|pmSourceLocalSky (FILE:LINENO) 64 Error: (0.0 > innerRadius) (0.000000 -10.000000) 65 <HOST>|E|pmSourceLocalSky (FILE:LINENO) 66 Error: (innerRadius > outerRadius) (10.000000 5.000000) 62 Error: Radius is 0 or less. 67 63 68 64 ---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceLocalSky()} | tst_pmObjects01.c) 69 70 /***************************** TESTPOINT ******************************************\71 * TestFile: tst_pmObjects01.c *72 * TestPoint: Test Point Driver{pmObjects: pmSourceSetPixelsCircle()} *73 * TestType: Positive *74 \**********************************************************************************/75 76 <HOST>|E|pmSourceSetPixelsCircle (FILE:LINENO)77 Unallowable operation: source is NULL.78 <HOST>|E|pmSourceSetPixelsCircle (FILE:LINENO)79 Unallowable operation: psImage image or its data is NULL.80 <HOST>|E|pmSourceSetPixelsCircle (FILE:LINENO)81 Unallowable operation: psImage image has incorrect type.82 <HOST>|E|pmSourceSetPixelsCircle (FILE:LINENO)83 Error: (0.0 > radius) (0.000000 -10.000000)84 85 ---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceSetPixelsCircle()} | tst_pmObjects01.c)86 65 87 66 /***************************** TESTPOINT ******************************************\ … … 94 73 Unallowable operation: source is NULL. 95 74 <HOST>|E|pmSourceMoments (FILE:LINENO) 96 Error: (0.0 > radius) (0.000000 -10.000000)75 Error: !(radius > 0.0) (-10.000000 0.000000). 97 76 98 77 ---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceMoments()} | tst_pmObjects01.c) 99 78 100 /***************************** TESTPOINT ******************************************\101 * TestFile: tst_pmObjects01.c *102 * TestPoint: Test Point Driver{pmObjects: pmMin()} *103 * TestType: Positive *104 \**********************************************************************************/105 106 <HOST>|E|pmMinLM_Gauss2D (FILE:LINENO)107 Unallowable operation: psVector params or its data is NULL.108 <HOST>|E|pmMinLM_Gauss2D (FILE:LINENO)109 Unallowable operation: psVector x or its data is NULL.110 <HOST>|E|pmMinLM_PsuedoGauss2D (FILE:LINENO)111 Unallowable operation: psVector params or its data is NULL.112 <HOST>|E|pmMinLM_PsuedoGauss2D (FILE:LINENO)113 Unallowable operation: psVector x or its data is NULL.114 <HOST>|E|pmMinLM_Wauss2D (FILE:LINENO)115 Unallowable operation: psVector params or its data is NULL.116 <HOST>|E|pmMinLM_Wauss2D (FILE:LINENO)117 Unallowable operation: psVector x or its data is NULL.118 <HOST>|E|pmMinLM_TwistGauss2D (FILE:LINENO)119 Unallowable operation: psVector params or its data is NULL.120 <HOST>|E|pmMinLM_TwistGauss2D (FILE:LINENO)121 Unallowable operation: psVector x or its data is NULL.122 <HOST>|E|pmMinLM_Sersic (FILE:LINENO)123 This function is not implemented yet.124 <HOST>|E|pmMinLM_Sersic (FILE:LINENO)125 Unallowable operation: psVector params or its data is NULL.126 <HOST>|E|pmMinLM_Sersic (FILE:LINENO)127 Unallowable operation: psVector x or its data is NULL.128 <HOST>|E|pmMinLM_SersicCore (FILE:LINENO)129 This function is not implemented yet.130 <HOST>|E|pmMinLM_SersicCore (FILE:LINENO)131 Unallowable operation: psVector params or its data is NULL.132 <HOST>|E|pmMinLM_SersicCore (FILE:LINENO)133 Unallowable operation: psVector x or its data is NULL.134 135 ---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmMin()} | tst_pmObjects01.c)136 137 /***************************** TESTPOINT ******************************************\138 * TestFile: tst_pmObjects01.c *139 * TestPoint: Test Point Driver{pmObjects: pmSourceModelGuess()} *140 * TestType: Positive *141 \**********************************************************************************/142 143 <HOST>|E|pmSourceModelGuess (FILE:LINENO)144 Unallowable operation: source is NULL.145 <HOST>|E|pmSourceModelGuess (FILE:LINENO)146 Unallowable operation: psImage image or its data is NULL.147 <HOST>|E|pmSourceModelGuess (FILE:LINENO)148 Undefined psModelType149 <HOST>|W|pmSourceModelGuess150 WARNING: source->modelPSF was non-NULL; calling psFree(source->modelPSF).151 <HOST>|W|pmSourceModelGuess152 WARNING: source->modelPSF was non-NULL; calling psFree(source->modelPSF).153 <HOST>|W|pmSourceModelGuess154 WARNING: source->modelPSF was non-NULL; calling psFree(source->modelPSF).155 <HOST>|W|pmSourceModelGuess156 WARNING: source->modelPSF was non-NULL; calling psFree(source->modelPSF).157 <HOST>|W|pmSourceModelGuess158 WARNING: source->modelPSF was non-NULL; calling psFree(source->modelPSF).159 160 ---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceModelGuess()} | tst_pmObjects01.c)161 162 /***************************** TESTPOINT ******************************************\163 * TestFile: tst_pmObjects01.c *164 * TestPoint: Test Point Driver{pmObjects: pmSourceContour()} *165 * TestType: Positive *166 \**********************************************************************************/167 168 <HOST>|E|pmSourceContour (FILE:LINENO)169 Unallowable operation: source is NULL.170 <HOST>|E|pmSourceContour (FILE:LINENO)171 Unallowable operation: image is NULL.172 173 ---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceContour()} | tst_pmObjects01.c)174 175 /***************************** TESTPOINT ******************************************\176 * TestFile: tst_pmObjects01.c *177 * TestPoint: Test Point Driver{pmObjects: pmSourceAddModel()} *178 * TestType: Positive *179 \**********************************************************************************/180 181 <HOST>|E|sourceAddOrSubModel (FILE:LINENO)182 Unallowable operation: psImage image or its data is NULL.183 <HOST>|E|sourceAddOrSubModel (FILE:LINENO)184 Unallowable operation: src is NULL.185 186 ---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceAddModel()} | tst_pmObjects01.c)187 188 /***************************** TESTPOINT ******************************************\189 * TestFile: tst_pmObjects01.c *190 * TestPoint: Test Point Driver{pmObjects: pmSourceSubModel()} *191 * TestType: Positive *192 \**********************************************************************************/193 194 <HOST>|E|sourceAddOrSubModel (FILE:LINENO)195 Unallowable operation: psImage image or its data is NULL.196 <HOST>|E|sourceAddOrSubModel (FILE:LINENO)197 Unallowable operation: src is NULL.198 199 ---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceSubModel()} | tst_pmObjects01.c)200 201 /***************************** TESTPOINT ******************************************\202 * TestFile: tst_pmObjects01.c *203 * TestPoint: Test Point Driver{pmObjects: pmSourceSubModel()} *204 * TestType: Positive *205 \**********************************************************************************/206 207 <HOST>|E|pmSourceFitModel (FILE:LINENO)208 Unallowable operation: psImage image or its data is NULL.209 <HOST>|E|pmSourceFitModel (FILE:LINENO)210 Unallowable operation: source is NULL.211 212 ---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceSubModel()} | tst_pmObjects01.c)213 -
trunk/psModules/test/objects/verified/tst_pmObjects01.stdout
r5169 r5258 2 2 Testing pmMomentsAlloc()... 3 3 Testing pmModelAlloc(PS_MODEL_GAUSS)... 4 Testing pmModelAlloc(PS_MODEL_PGAUSS)... 5 Testing pmModelAlloc(PS_MODEL_TWIST_GAUSS)... 6 Testing pmModelAlloc(PS_MODEL_WAUSS)... 7 Testing pmModelAlloc(PS_MODEL_SERSIC)... 8 Testing pmModelAlloc(PS_MODEL_SERSIC_CORE)... 4 Testing pmModelAlloc(PS_MODEL_GAUSS)... 5 Testing pmModelAlloc(PS_MODEL_GAUSS)... 6 Testing pmModelAlloc(PS_MODEL_GAUSS)... 9 7 ---------------------------------------------------------------------------------- 10 8 Calling pmFindVectorPeaks with NULL psVector. Should generate error and return NULL. … … 77 75 ---------------------------------------------------------------------------------- 78 76 ---------------------------------------------------------------------------------- 79 Calling pmSourceLocalSky with NULL psImage. Should generate error and return NULL.77 Calling pmSourceLocalSky with NULL tmpSource. Should generate error and return FALSE. 80 78 ---------------------------------------------------------------------------------- 81 Calling pmSourceLocalSky with wrong-type psImage. Should generate error and return NULL. 82 ---------------------------------------------------------------------------------- 83 Calling pmSourceLocalSky with NULL pmPeak. Should generate error and return NULL. 84 ---------------------------------------------------------------------------------- 85 Calling pmSourceLocalSky with innerRadius<0.0. Should generate error and return NULL. 86 ---------------------------------------------------------------------------------- 87 Calling pmSourceLocalSky with innerRadius>outerRadius. Should generate error and return NULL. 79 Calling pmSourceLocalSky with Radius<0.0. Should generate error and return FALSE. 88 80 ---------------------------------------------------------------------------------- 89 81 Calling pmSourceLocalSky with valid data. 90 82 ---------------------------------------------------------------------------------- 91 83 ---------------------------------------------------------------------------------- 92 Calling pmSource SetPixelsCircle with NULL pmSource. Should generate error and return NULL.84 Calling pmSourceMoments with NULL pmSource. Should generate error and return FALSE. 93 85 ---------------------------------------------------------------------------------- 94 Calling pmSource SetPixelsCircle with NULL psImage. Should generate error and return NULL.86 Calling pmSourceMoments with radius < 0.0. Should generate error and return FALSE. 95 87 ---------------------------------------------------------------------------------- 96 Calling pmSourceSetPixelsCircle with wrong type psImage. Should generate error and return NULL.97 ----------------------------------------------------------------------------------98 Calling pmSourceSetPixelsCircle with radius < 0.0. Should generate error and return NULL.99 ----------------------------------------------------------------------------------100 Calling pmSourceSetPixelsCircle with valid data.101 ----------------------------------------------------------------------------------102 ----------------------------------------------------------------------------------103 Calling pmSourceMoments with NULL pmSource. Should generate error and return NULL.104 ----------------------------------------------------------------------------------105 Calling pmSourceMoments with radius < 0.0. Should generate error and return NULL.106 ----------------------------------------------------------------------------------107 ----------------------------------------------------------------------------------108 Calling pmMinLM_Gauss2D with NULL deriv vector. Should not generate error.109 ----------------------------------------------------------------------------------110 Calling pmMinLM_Gauss2D with NULL params vector. Should generate error and return NAN.111 ----------------------------------------------------------------------------------112 Calling pmMinLM_Gauss2D with NULL x vector. Should generate error and return NAN.113 ----------------------------------------------------------------------------------114 Calling pmMinLM_PsuedoGauss2D with NULL deriv vector. Should not generate error.115 ----------------------------------------------------------------------------------116 Calling pmMinLM_PsuedoGauss2D with NULL params vector. Should generate error and return NAN.117 ----------------------------------------------------------------------------------118 Calling pmMinLM_PsuedoGauss2D with NULL x vector. Should generate error and return NAN.119 ----------------------------------------------------------------------------------120 Calling pmMinLM_Wauss2D with NULL deriv vector. Should not generate error.121 ----------------------------------------------------------------------------------122 Calling pmMinLM_Wauss2D with NULL params vector. Should generate error and return NAN.123 ----------------------------------------------------------------------------------124 Calling pmMinLM_Wauss2D with NULL x vector. Should generate error and return NAN.125 ----------------------------------------------------------------------------------126 Calling pmMinLM_TwistGauss2D with NULL deriv vector. Should not generate error.127 ----------------------------------------------------------------------------------128 Calling pmMinLM_TwistGauss2D with NULL params vector. Should generate error and return NAN.129 ----------------------------------------------------------------------------------130 Calling pmMinLM_TwistGauss2D with NULL x vector. Should generate error and return NAN.131 ----------------------------------------------------------------------------------132 Calling pmMinLM_Sersic with NULL deriv vector. Should not generate error.133 ----------------------------------------------------------------------------------134 Calling pmMinLM_Sersic with NULL params vector. Should generate error and return NAN.135 ----------------------------------------------------------------------------------136 Calling pmMinLM_Sersic with NULL x vector. Should generate error and return NAN.137 ----------------------------------------------------------------------------------138 Calling pmMinLM_SersicCore with NULL deriv vector. Should not generate error.139 ----------------------------------------------------------------------------------140 Calling pmMinLM_SersicCore with NULL params vector. Should generate error and return NAN.141 ----------------------------------------------------------------------------------142 Calling pmMinLM_SersicCore with NULL x vector. Should generate error and return NAN.143 Calling pmSourceLocalSky with valid data.144 ----------------------------------------------------------------------------------145 Calling pmSourceModelGuess with NULL pmSource. Should generate error, return FALSE.146 ----------------------------------------------------------------------------------147 Calling pmSourceModelGuess with NULL psImage. Should generate error, return FALSE.148 ----------------------------------------------------------------------------------149 Calling pmSourceModelGuess with bad model type. Should generate error, return FALSE.150 ----------------------------------------------------------------------------------151 Calling pmSourceModelGuess with PS_MODEL_GAUSS152 ----------------------------------------------------------------------------------153 Calling pmSourceModelGuess with PS_MODEL_PGAUSS154 ----------------------------------------------------------------------------------155 Calling pmSourceModelGuess with PS_MODEL_TWIST_GAUSS156 ----------------------------------------------------------------------------------157 Calling pmSourceModelGuess with PS_MODEL_WAUSS158 ----------------------------------------------------------------------------------159 Calling pmSourceModelGuess with PS_MODEL_SERSIC160 ----------------------------------------------------------------------------------161 Calling pmSourceModelGuess with PS_MODEL_SERSIC_CORE162 Calling pmSourceLocalSky with valid data.163 ----------------------------------------------------------------------------------164 Calling pmSourceContour with NULL pmSource . Should generate error, return NULL.165 ----------------------------------------------------------------------------------166 Calling pmSourceContour with NULL psImage . Should generate error, return NULL.167 Calling pmSourceLocalSky with valid data.168 ----------------------------------------------------------------------------------169 Calling pmSourceAddModel with NULL psImage. Should generate error, return FALSE.170 ----------------------------------------------------------------------------------171 Calling pmSourceAddModel with NULL psSrc. Should generate error, return FALSE.172 ----------------------------------------------------------------------------------173 Calling pmSourceAddModel with acceptable data.174 Calling pmSourceLocalSky with valid data.175 ----------------------------------------------------------------------------------176 Calling pmSourceSubModel with NULL psImage. Should generate error, return FALSE.177 ----------------------------------------------------------------------------------178 Calling pmSourceSubModel with NULL psSrc. Should generate error, return FALSE.179 ----------------------------------------------------------------------------------180 Calling pmSourceSubModel with acceptable data.181 Calling pmSourceLocalSky with valid data.182 ----------------------------------------------------------------------------------183 Calling pmSourceFitModel with NULL psImage. Should generate error, return FALSE.184 ----------------------------------------------------------------------------------185 Calling pmSourceFitModel with NULL pmSource. Should generate error, return FALSE.186 ----------------------------------------------------------------------------------187 Calling pmSourceFitModel with acceptable data.188 pmSourceFitModel returned 1
Note:
See TracChangeset
for help on using the changeset viewer.
