diff options
author | Thomas White <taw@physics.org> | 2010-04-14 19:30:57 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-04-14 19:30:57 +0200 |
commit | 7ac0868f912364458f80665e78721bdebf9d8f87 (patch) | |
tree | 2de8a4f9f61f7443fb1df1702f47435f1bb90969 /src | |
parent | 7677d79ffc64e384549b436d20fbb01d0e5dfcea (diff) |
When simulating, don't round values when noise is not requested
Diffstat (limited to 'src')
-rw-r--r-- | src/detector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/detector.c b/src/detector.c index e8eade98..78fb216f 100644 --- a/src/detector.c +++ b/src/detector.c @@ -113,7 +113,7 @@ void record_image(struct image *image, int do_poisson) counts = poisson_noise(intensity * ph_per_e * sa * DQE); } else { cf = intensity * ph_per_e * sa * DQE; - counts = rint(cf); + counts = cf; } image->data[x + image->width*y] = counts * DETECTOR_GAIN; |