- Added code to read SANS TOF frames from a) files and b) from HM
- Fixed an bug causing core dumps on bad Tcl scripts - Started on a syntax checker for SICS
This commit is contained in:
@@ -503,7 +503,7 @@
|
||||
|
||||
/* get size of our problem */
|
||||
GetHistDim(self->pHM,iDim,&i3);
|
||||
assert(i3 == 3);
|
||||
/* assert(i3 == 3); */
|
||||
|
||||
/* allocate some data */
|
||||
length = 2 + iDim[0]*iDim[1];
|
||||
@@ -546,7 +546,7 @@
|
||||
iImage[i] = htonl(iImage[i]);
|
||||
}
|
||||
/*
|
||||
printf("Collpased maximum: %d\n",iMax);
|
||||
printf("Collapsed maximum: %d\n",iMax);
|
||||
*/
|
||||
if(status != 1)
|
||||
{
|
||||
@@ -557,14 +557,15 @@
|
||||
else
|
||||
{
|
||||
/*
|
||||
we are in simulation and justcreate some random numbers
|
||||
we are in simulation and just create some random numbers
|
||||
*/
|
||||
for(i = 0; i < iDim[0]; i++)
|
||||
{
|
||||
for(i2 = 0; i2 < iDim[1]; i2++)
|
||||
{
|
||||
iIdx = i*iDim[1] + i2;
|
||||
iImage[iIdx+2] = htonl(random());
|
||||
iImage[iIdx+2] = htonl(random());
|
||||
/* iImage[iIdx+2] = htonl(77);*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user