/tomo/pyhst

To get this branch, use:
bzr branch http://darksoft.org/webbzr/tomo/pyhst

« back to all changes in this revision

Viewing changes to PyHST_c.c

  • Committer: Suren A. Chilingaryan
  • Date: 2017-09-28 10:34:47 UTC
  • Revision ID: csa@suren.me-20170928103447-dggjgnuxmymgew2a
Quality fixes (tex-based)

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
                                /* (num_bins,num_projections,dim_slices)  */
67
67
  PyObject *axis_corrections;   /*  Dimensions:  */
68
68
                                /* (num_projections)  */
 
69
  int astra_scaling;
69
70
  int BICUBIC;                  /* ignored at the moment */
70
71
 
71
72
  int do_custom_angles;
212
213
  res->recon_info = NULL;
213
214
#endif /* PYHST_MEASURE_TIMINGS */
214
215
 
 
216
#ifdef PYHST_ASTRA_SCALING
 
217
    res->astra_scaling = 1;
 
218
#else
 
219
    res->astra_scaling = 0;
 
220
#endif
 
221
 
215
222
  if(!PyArg_ParseTuple(args,"OissiiiiiiiifffiiiOOiiOfiO:PyHST_new", 
216
223
                       &(res->logger), 
217
224
                       &(res->setup.max_slices),
305
312
            err = 1;
306
313
    }
307
314
    
 
315
 
308
316
    //pyhst_warning("double buffer: %i\n", double_buffer);
309
317
 
310
318
    if (err) {      
1007
1015
 
1008
1016
static struct memberlist PyHST_memberlist[]={
1009
1017
    {"SINOGRAMS", T_OBJECT, offsetof(PyHST, SINOGRAMS)},
 
1018
    {"astra_scaling", T_INT, offsetof(PyHST, astra_scaling)},
1010
1019
#ifdef PYHST_MEASURE_TIMINGS
1011
1020
    {"recon_timer", T_DOUBLE, offsetof(PyHST, recon_timer)},
1012
1021
    {"comp_timer", T_DOUBLE, offsetof(PyHST, comp_timer)},