/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 hst.c

  • Committer: Suren A. Chilingaryan
  • Date: 2011-08-27 23:38:31 UTC
  • Revision ID: csa@dside.dyndns.org-20110827233831-uts6phfd9ubqf4on
To prevent silent segmentations during fatal errors executed within multithreaded context, as a temporal solution just print error message before calling g_log

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
    axis_position = ctx->setup.axis_position;
157
157
 
158
158
        // Computing FFT dimensions, hard to understand why the -1 is there but it works nicely
 
159
        // DS: This is actually two times more than the closest power of 2. Do we need that?
159
160
    ctx->setup.dim_fft = 1<<((int)(log((2. * ctx->setup.num_bins - 1)) / log(2.0) + 0.9999));
160
161
    ctx->setup.filter = malloc((2 * ctx->setup.dim_fft) * sizeof(float));
161
162
    check_alloc(ctx->setup.filter, " FILTER");