- Fixed a massive memory leak in Hipadaba
- Extended the Hdb adapter to support SICSdata - Made the simulated histogram memory driver work properly when data has been set. - Implemented the hfactory command - Removed hdbcommand which was never finsihed
This commit is contained in:
16
tasscanub.c
16
tasscanub.c
@ -1023,7 +1023,7 @@ int TASUBPrepare(pScanData self)
|
||||
/*---------------------------------------------------------------------*/
|
||||
static void TASUBDump(pTASdata self, SicsInterp *pSics, SConnection *pCon,
|
||||
int argc, char *argv[]){
|
||||
float v[3], ub[3][3], cell[6];
|
||||
float v[9], ub[3][3], cell[6];
|
||||
int status, i, j;
|
||||
pNXScript nxscript = NULL;
|
||||
char pBueffel[256];
|
||||
@ -1083,7 +1083,13 @@ static void TASUBDump(pTASdata self, SicsInterp *pSics, SConnection *pCon,
|
||||
v[0] = r.qe.qh;
|
||||
v[1] = r.qe.qk;
|
||||
v[2] = r.qe.ql;
|
||||
status = NXDputalias(nxscript->fileHandle,nxscript->dictHandle,pBueffel,v);
|
||||
v[3] = r.angles.a3;
|
||||
v[4] = r.angles.sample_two_theta;
|
||||
v[5] = r.angles.sgl;
|
||||
v[6] = r.angles.sgu;
|
||||
v[7] = KtoEnergy(r.qe.ki);
|
||||
v[8] = KtoEnergy(r.qe.kf);
|
||||
status = NXDputalias(nxscript->fileHandle,nxscript->dictHandle,pBueffel,v);
|
||||
if(status != NX_OK){
|
||||
snprintf(pBueffel,255,"ERROR: failed to write plane vector 1 to %s_vec1",argv[3]);
|
||||
SCWrite(pCon,pBueffel,eWarning);
|
||||
@ -1093,6 +1099,12 @@ static void TASUBDump(pTASdata self, SicsInterp *pSics, SConnection *pCon,
|
||||
v[0] = r.qe.qh;
|
||||
v[1] = r.qe.qk;
|
||||
v[2] = r.qe.ql;
|
||||
v[3] = r.angles.a3;
|
||||
v[4] = r.angles.sample_two_theta;
|
||||
v[5] = r.angles.sgl;
|
||||
v[6] = r.angles.sgu;
|
||||
v[7] = KtoEnergy(r.qe.ki);
|
||||
v[8] = KtoEnergy(r.qe.kf);
|
||||
status = NXDputalias(nxscript->fileHandle,nxscript->dictHandle,pBueffel,v);
|
||||
if(status != NX_OK){
|
||||
snprintf(pBueffel,255,"ERROR: failed to write plane vector 2 to %s_vec2",argv[3]);
|
||||
|
Reference in New Issue
Block a user