aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hdf5-file.c2
-rw-r--r--src/likelihood.c4
-rw-r--r--src/likelihood.h2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c
index d6d646ed..a344656f 100644
--- a/src/hdf5-file.c
+++ b/src/hdf5-file.c
@@ -218,6 +218,8 @@ static double get_f0(struct hdfile *f)
H5Dclose(dh);
if ( r < 0 ) return -1.0;
+ STATUS("%f\n", f0);
+
return f0;
}
diff --git a/src/likelihood.c b/src/likelihood.c
index e8c62010..1089e396 100644
--- a/src/likelihood.c
+++ b/src/likelihood.c
@@ -26,13 +26,13 @@ void detwin_intensities(const double *model, double *new_pattern,
void scale_intensities(const double *model, double *new_pattern,
const unsigned int *model_counts,
- unsigned int *new_counts)
+ unsigned int *new_counts, double f0)
{
double s;
unsigned int i;
s = stat_scale_intensity(model, model_counts, new_pattern, new_counts);
- printf("%f\n", s);
+ printf("%f %f\n", s, f0);
/* NaN -> abort */
if ( isnan(s) ) return;
diff --git a/src/likelihood.h b/src/likelihood.h
index 9a773829..860640b5 100644
--- a/src/likelihood.h
+++ b/src/likelihood.h
@@ -23,7 +23,7 @@ extern void detwin_intensities(const double *model, double *new_pattern,
extern void scale_intensities(const double *model, double *new_pattern,
const unsigned int *model_counts,
- unsigned int *new_counts);
+ unsigned int *new_counts, double f0);
#endif /* LIKELIHOOD_H */