Commit aecf6f8c authored by Pierre Paleo's avatar Pierre Paleo Committed by Alessandro Mirone

scrivere parte immaginaria in edf

corrige' a deux endroit passage en argument du semaphore
parent 0eccb5ae
......@@ -6415,7 +6415,7 @@ void CCspace_read_chunk (CCspace * self , int sn, int ntok , int npbunches,
pos_s_[2*sn_nb], pos_s_[2*sn_nb+1],
size_s_[2*sn_nb +0], size_s_[2*sn_nb +1],
rotation_vertical,
binning, &(self->filereading_sem)
binning
);
} else {
fprintf(stderr, "file type MUST be either edf or h5, reading ffs \n");
......@@ -7236,6 +7236,13 @@ void Paganin(CCspace * self, float * RawptrA,
sprintf(output_name, "%s_%04d.edf",self->params.OUTPUT_PAGANIN_FILE, (int) mystart + npj - pstart );
if (self->params.verbosity>0) printf(" writing projection on %s \n", output_name);
write_data_to_edf(Rawptr , Size0, Size1 , output_name);
if(npj+1 <= pend-1 ) {
char output_name[1000];
sprintf(output_name, "%s_%04d.edf",self->params.OUTPUT_PAGANIN_FILE, (int) mystart + npj+1 - pstart );
if (self->params.verbosity>0) printf(" writing projection on %s \n", output_name);
write_data_to_edf(Rawptr + proj_step , Size0, Size1 , output_name);
}
}
}
......
......@@ -686,7 +686,7 @@ void read_data_from_edf_eli( char * filename,
float *ffcorr,
float *currents,
float curr,
sem_t * semaforo_pt
sem_t * semaforo_ptr
) {
long int i, j, nbytes, n1,n2, k,l;
char bsw;
......
......@@ -2,7 +2,7 @@ export TD=~/packages/
# export TD=/tmp_14_days/mirone/
mkdir $TD
rm ${TD}/scripts/PyHST
python setup.py install --prefix ${TD}
python3 setup.py install --prefix ${TD}
#--install-lib ${TD}/libs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment