Changeset 3298
- Timestamp:
- Feb 22, 2005, 9:25:53 AM (21 years ago)
- Location:
- trunk/psLib
- Files:
-
- 12 added
- 12 deleted
- 12 edited
-
pslib.kdevelop.pcs (modified) ( previous)
-
pslib.kdevses (modified) (1 diff)
-
src/collections/psBitSet.c (modified) (4 diffs)
-
src/dataIO/psFits.c (modified) (2 diffs)
-
src/fileUtils/psFits.c (modified) (2 diffs)
-
src/fits/psFits.c (modified) (2 diffs)
-
src/types/psBitSet.c (modified) (4 diffs)
-
test/dataIO/Makefile.am (modified) (2 diffs)
-
test/dataIO/table10.dat (deleted)
-
test/dataIO/table2.dat (deleted)
-
test/dataIO/table3.dat (deleted)
-
test/dataIO/tableF32.dat (deleted)
-
test/dataIO/tableS32.dat (deleted)
-
test/dataIO/tableU8.dat (deleted)
-
test/dataIO/tst_psFits.c (modified) (4 diffs)
-
test/dataIO/verified/table10.dat (added)
-
test/dataIO/verified/table2.dat (added)
-
test/dataIO/verified/table3.dat (added)
-
test/dataIO/verified/tableF32.dat (added)
-
test/dataIO/verified/tableS32.dat (added)
-
test/dataIO/verified/tableU8.dat (added)
-
test/fileUtils/Makefile.am (modified) (2 diffs)
-
test/fileUtils/table10.dat (deleted)
-
test/fileUtils/table2.dat (deleted)
-
test/fileUtils/table3.dat (deleted)
-
test/fileUtils/tableF32.dat (deleted)
-
test/fileUtils/tableS32.dat (deleted)
-
test/fileUtils/tableU8.dat (deleted)
-
test/fileUtils/tst_psFits.c (modified) (4 diffs)
-
test/fileUtils/verified/table10.dat (added)
-
test/fileUtils/verified/table2.dat (added)
-
test/fileUtils/verified/table3.dat (added)
-
test/fileUtils/verified/tableF32.dat (added)
-
test/fileUtils/verified/tableS32.dat (added)
-
test/fileUtils/verified/tableU8.dat (added)
-
test/image/tst_psImageManip.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/pslib.kdevses
r3246 r3298 2 2 <!DOCTYPE KDevPrjSession> 3 3 <KDevPrjSession> 4 <DocsAndViews NumberOfDocuments="0" /> 4 <DocsAndViews NumberOfDocuments="6" > 5 <Doc0 NumberOfViews="1" URL="file:/home/desonia/panstarrs/psLib/src/astronomy/psMetadata.c" > 6 <View0 line="342" Type="Source" /> 7 </Doc0> 8 <Doc1 NumberOfViews="1" URL="file:/home/desonia/panstarrs/psLib/test/fileUtils/tst_psFits.c" > 9 <View0 line="193" Type="Source" /> 10 </Doc1> 11 <Doc2 NumberOfViews="1" URL="file:/home/desonia/panstarrs/psLib/src/collections/psHash.c" > 12 <View0 line="290" Type="Source" /> 13 </Doc2> 14 <Doc3 NumberOfViews="1" URL="file:/home/desonia/panstarrs/psLib/src/fileUtils/psFits.c" > 15 <View0 line="1471" Type="Source" /> 16 </Doc3> 17 <Doc4 NumberOfViews="1" URL="file:/home/desonia/panstarrs/psLib/src/sysUtils/psMemory.h" > 18 <View0 line="397" Type="Source" /> 19 </Doc4> 20 <Doc5 NumberOfViews="1" URL="file:/home/desonia/panstarrs/psLib/src/collections/psArray.c" > 21 <View0 line="0" Type="Source" /> 22 </Doc5> 23 </DocsAndViews> 5 24 <pluginList> 6 25 <kdevbookmarks> -
trunk/psLib/src/collections/psBitSet.c
r3264 r3298 11 11 * @author Robert DeSonia, MHPCC 12 12 * 13 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-02- 17 19:26:23$13 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-02-22 19:25:52 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 186 186 return NULL; 187 187 } 188 189 // make operator all caps190 psS32 tempStrLen = strlen(operator);191 char* tempStr = psAlloc(tempStrLen+1);192 193 for (psS32 lcv=0;lcv<tempStrLen;lcv++) {194 tempStr[lcv] = (char)toupper(operator[lcv]);195 }196 tempStr[tempStrLen] = '\0';197 188 198 189 // parse the operator … … 206 197 op = NOT_OP; 207 198 } else { 208 psFree(tempStr);209 199 psFree(outBitSet); 210 200 psError(PS_ERR_BAD_PARAMETER_VALUE, true, … … 213 203 return NULL; 214 204 } 215 psFree(tempStr);216 205 217 206 if (op != NOT_OP) { -
trunk/psLib/src/dataIO/psFits.c
r3264 r3298 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-02- 17 19:26:24$9 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-22 19:25:52 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1496 1496 } 1497 1497 if (! found) { 1498 psArrayAdd(columns, columns->nalloc, psMemIncrRefCounter(item));1498 psArrayAdd(columns, columns->nalloc, item); 1499 1499 } 1500 1500 } -
trunk/psLib/src/fileUtils/psFits.c
r3264 r3298 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-02- 17 19:26:24$9 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-22 19:25:52 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1496 1496 } 1497 1497 if (! found) { 1498 psArrayAdd(columns, columns->nalloc, psMemIncrRefCounter(item));1498 psArrayAdd(columns, columns->nalloc, item); 1499 1499 } 1500 1500 } -
trunk/psLib/src/fits/psFits.c
r3264 r3298 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-02- 17 19:26:24$9 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-22 19:25:52 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1496 1496 } 1497 1497 if (! found) { 1498 psArrayAdd(columns, columns->nalloc, psMemIncrRefCounter(item));1498 psArrayAdd(columns, columns->nalloc, item); 1499 1499 } 1500 1500 } -
trunk/psLib/src/types/psBitSet.c
r3264 r3298 11 11 * @author Robert DeSonia, MHPCC 12 12 * 13 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-02- 17 19:26:23$13 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-02-22 19:25:52 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 186 186 return NULL; 187 187 } 188 189 // make operator all caps190 psS32 tempStrLen = strlen(operator);191 char* tempStr = psAlloc(tempStrLen+1);192 193 for (psS32 lcv=0;lcv<tempStrLen;lcv++) {194 tempStr[lcv] = (char)toupper(operator[lcv]);195 }196 tempStr[tempStrLen] = '\0';197 188 198 189 // parse the operator … … 206 197 op = NOT_OP; 207 198 } else { 208 psFree(tempStr);209 199 psFree(outBitSet); 210 200 psError(PS_ERR_BAD_PARAMETER_VALUE, true, … … 213 203 return NULL; 214 204 } 215 psFree(tempStr);216 205 217 206 if (op != NOT_OP) { -
trunk/psLib/test/dataIO/Makefile.am
r3275 r3298 22 22 check_PROGRAMS = $(TESTS) 23 23 24 check_DATA = table10.dat table2.dat table3.dat tableF32.dat tableS32.dat tableU8.dat 25 24 26 TESTS_ENVIRONMENT = perl $(top_srcdir)/test/runTest -verified=$(srcdir)/verified 25 27 tests: $(TESTS) … … 27 29 tst_psLookupTable_01_SOURCES = tst_psLookupTable_01.c 28 30 tst_psFits_SOURCES = tst_psFits.c 31 32 %.dat: verified/%.dat 33 cp $? $@ 34 -
trunk/psLib/test/dataIO/tst_psFits.c
r3286 r3298 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-02- 18 22:17:20$8 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-02-22 19:25:53 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 161 161 header = psMetadataAlloc(); 162 162 163 int id = psMemGetId();164 163 psMetadataAdd(header,PS_LIST_TAIL, "MYINT", 165 164 PS_TYPE_S32, PS_META_PRIMITIVE, 166 165 "psS32 Item", (psS32)row); 167 166 168 fprintf(stderr,"ref=%d(%d), ",(int)psMemGetRefCounter(header->list->tail->data), id);169 170 id = psMemGetId();171 167 psMetadataAdd(header,PS_LIST_TAIL, "MYFLT", 172 168 PS_TYPE_F32, PS_META_PRIMITIVE, 173 169 "psF32 Item", (float)(1.0f/(float)(1+row))); 174 170 175 fprintf(stderr,"%d(%d), ",(int)psMemGetRefCounter(header->list->tail->data),id);176 177 id = psMemGetId();178 171 psMetadataAdd(header,PS_LIST_TAIL, "MYDBL", 179 172 PS_TYPE_F64, PS_META_PRIMITIVE, 180 173 "psF64 Item", (double)(1.0/(double)(1+row))); 181 174 182 fprintf(stderr,"%d(%d), ",(int)psMemGetRefCounter(header->list->tail->data),id);183 184 id = psMemGetId();185 175 psMetadataAdd(header,PS_LIST_TAIL, "MYBOOL", 186 176 PS_TYPE_BOOL, PS_META_PRIMITIVE, … … 188 178 (row%2 == 0)); 189 179 190 fprintf(stderr,"%d(%d)\n",(int)psMemGetRefCounter(header->list->tail->data),id);191 192 180 table->data[row] = header; 193 181 } … … 198 186 psFree(fitsFile); 199 187 200 psMemCheckLeaks(15,NULL,stderr,false); 201 202 return true; 188 return ! psMemCheckLeaks(15,NULL,stderr,false); 203 189 } 204 190 -
trunk/psLib/test/fileUtils/Makefile.am
r3275 r3298 22 22 check_PROGRAMS = $(TESTS) 23 23 24 check_DATA = table10.dat table2.dat table3.dat tableF32.dat tableS32.dat tableU8.dat 25 24 26 TESTS_ENVIRONMENT = perl $(top_srcdir)/test/runTest -verified=$(srcdir)/verified 25 27 tests: $(TESTS) … … 27 29 tst_psLookupTable_01_SOURCES = tst_psLookupTable_01.c 28 30 tst_psFits_SOURCES = tst_psFits.c 31 32 %.dat: verified/%.dat 33 cp $? $@ 34 -
trunk/psLib/test/fileUtils/tst_psFits.c
r3286 r3298 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-02- 18 22:17:20$8 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-02-22 19:25:53 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 161 161 header = psMetadataAlloc(); 162 162 163 int id = psMemGetId();164 163 psMetadataAdd(header,PS_LIST_TAIL, "MYINT", 165 164 PS_TYPE_S32, PS_META_PRIMITIVE, 166 165 "psS32 Item", (psS32)row); 167 166 168 fprintf(stderr,"ref=%d(%d), ",(int)psMemGetRefCounter(header->list->tail->data), id);169 170 id = psMemGetId();171 167 psMetadataAdd(header,PS_LIST_TAIL, "MYFLT", 172 168 PS_TYPE_F32, PS_META_PRIMITIVE, 173 169 "psF32 Item", (float)(1.0f/(float)(1+row))); 174 170 175 fprintf(stderr,"%d(%d), ",(int)psMemGetRefCounter(header->list->tail->data),id);176 177 id = psMemGetId();178 171 psMetadataAdd(header,PS_LIST_TAIL, "MYDBL", 179 172 PS_TYPE_F64, PS_META_PRIMITIVE, 180 173 "psF64 Item", (double)(1.0/(double)(1+row))); 181 174 182 fprintf(stderr,"%d(%d), ",(int)psMemGetRefCounter(header->list->tail->data),id);183 184 id = psMemGetId();185 175 psMetadataAdd(header,PS_LIST_TAIL, "MYBOOL", 186 176 PS_TYPE_BOOL, PS_META_PRIMITIVE, … … 188 178 (row%2 == 0)); 189 179 190 fprintf(stderr,"%d(%d)\n",(int)psMemGetRefCounter(header->list->tail->data),id);191 192 180 table->data[row] = header; 193 181 } … … 198 186 psFree(fitsFile); 199 187 200 psMemCheckLeaks(15,NULL,stderr,false); 201 202 return true; 188 return ! psMemCheckLeaks(15,NULL,stderr,false); 203 189 } 204 190 -
trunk/psLib/test/image/tst_psImageManip.c
r3264 r3298 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.3 8$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-02- 17 19:26:25$8 * @version $Revision: 1.39 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-02-22 19:25:53 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1356 1356 1357 1357 // now, let's compare this with the verified file 1358 fTruth = psImageReadSection(fTruth,0,0,0,0,0,NULL,index," fOut.fits");1359 sTruth = psImageReadSection(sTruth,0,0,0,0,0,NULL,index," sOut.fits");1360 fBiTruth = psImageReadSection(fBiTruth,0,0,0,0,0,NULL,index," fBiOut.fits");1361 sBiTruth = psImageReadSection(sBiTruth,0,0,0,0,0,NULL,index," sBiOut.fits");1358 fTruth = psImageReadSection(fTruth,0,0,0,0,0,NULL,index,"temp/fOut.fits"); 1359 sTruth = psImageReadSection(sTruth,0,0,0,0,0,NULL,index,"temp/sOut.fits"); 1360 fBiTruth = psImageReadSection(fBiTruth,0,0,0,0,0,NULL,index,"temp/fBiOut.fits"); 1361 sBiTruth = psImageReadSection(sBiTruth,0,0,0,0,0,NULL,index,"temp/sBiOut.fits"); 1362 1362 if (fTruth == NULL) { 1363 1363 psError(PS_ERR_UNKNOWN, true,"verified psF32 image failed to be read (%d deg. rotation)",
Note:
See TracChangeset
for help on using the changeset viewer.
