Changeset 42822 for trunk/psLib/test/math/tap_psMatrix08.c
- Timestamp:
- May 8, 2025, 4:42:12 PM (12 months ago)
- Location:
- trunk/psLib/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test
- Property svn:ignore
-
old new 6 6 *.da 7 7 gmon.out 8 test.00.jpg 9 test.01.jpg 10 test.02.jpg 11 test.03.jpg 12 test.04.jpg 13 test.05.jpg 14 test.06.jpg 15 test.07.jpg 16 test.08.jpg 17 test.09.jpg 18 test.10.jpg 19 test.11.jpg 20 test.12.jpg 21 test.im.fits 22 test.mk.fits 23 test.sm1.fits 24 test.sm2.fits 25 test.sm3.fits 26 test.sm4.fits 27 tmpImages 28 tst_psTrace02_OUT
-
- Property svn:ignore
-
trunk/psLib/test/math
- Property svn:ignore
-
old new 53 53 tap_psSpline1D 54 54 tap_psPolynomialMD 55 tap_psMinimizeLMM 56 tap_psMinimizeLMM_Alt 57 tap_psMinimizeLMM_Trail 58 tap_psPolyFit_IRLS_1D 59 tap_psPolyFit_IRLS_2D 60 tap_psPolynomialMD_sampleDark 61 test-suite.log
-
- Property svn:ignore
-
trunk/psLib/test/math/tap_psMatrix08.c
r24087 r42822 20 20 psS32 main( psS32 argc, char* argv[] ) 21 21 { 22 fprintf (stderr, "path: %s\n", argv[0]); 23 24 char imApath[1024]; 25 char imBpath[1024]; 26 char topPath[1024]; 27 char *libpath = strstr (argv[0], ".libs/"); 28 if (!libpath) { 29 fprintf (stderr, "ERROR: cannot find input data\n"); 30 exit (2); 31 } 32 33 // if (strncmp(argv[0], ".libs/", 6)) 34 int nTopPath = libpath - argv[0]; // 35 if (nTopPath) { 36 ps_strncpy_nowarn (topPath, argv[0], nTopPath); topPath[nTopPath] = 0; 37 ps_snprintf_nowarn (imApath, 1024, "%s/%s", topPath, "data/Agj.fits"); 38 ps_snprintf_nowarn (imBpath, 1024, "%s/%s", topPath, "data/Bgj.fits"); 39 } else { 40 ps_snprintf_nowarn (imApath, 1024, "%s", "data/Agj.fits"); 41 ps_snprintf_nowarn (imBpath, 1024, "%s", "data/Bgj.fits"); 42 } 43 22 44 plan_tests(23); 23 45 // psTraceSetLevel("psLib.math.psMatrixGJSolve", 4); … … 32 54 // XXX this is an ill-conditioned matrix. LU Decomposition does not inform us that it is ill-conditioned. 33 55 // the result solves the equation, but what are the errors on the values? 34 fits = psFitsOpen ( "data/Agj.fits", "r");56 fits = psFitsOpen (imApath, "r"); 35 57 ok(fits, "opened test image Agj.fits"); 36 58 … … 43 65 psFitsClose (fits); 44 66 45 fits = psFitsOpen ( "data/Bgj.fits", "r");67 fits = psFitsOpen (imBpath, "r"); 46 68 ok(fits, "opened test image Bgj.fits"); 47 69 … … 98 120 99 121 // we have a specific ill-conditioned matrix in Agj.fits. psMatrixGJSolve detects this and reports a failure. 100 fits = psFitsOpen ( "data/Agj.fits", "r");122 fits = psFitsOpen (imApath, "r"); 101 123 ok(fits, "opened test image Agj.fits"); 102 124 … … 106 128 psFitsClose (fits); 107 129 108 fits = psFitsOpen ( "data/Bgj.fits", "r");130 fits = psFitsOpen (imBpath, "r"); 109 131 ok(fits, "opened test image Bgj.fits"); 110 132 … … 147 169 148 170 // we have a specific ill-conditioned matrix in Agj.fits. psMatrixGJSolve detects this and reports a failure. 149 fits = psFitsOpen ( "data/Agj.fits", "r");171 fits = psFitsOpen (imApath, "r"); 150 172 ok(fits, "opened test image Agj.fits"); 151 173 … … 158 180 psFitsClose (fits); 159 181 160 fits = psFitsOpen ( "data/Bgj.fits", "r");182 fits = psFitsOpen (imBpath, "r"); 161 183 ok(fits, "opened test image Bgj.fits"); 162 184
Note:
See TracChangeset
for help on using the changeset viewer.
