Commit 63648f5e authored by Sebastian Heimann's avatar Sebastian Heimann
Browse files

add new option ifc_count_normalization

parent b5bb6c66
......@@ -91,6 +91,10 @@ class Config(HasPaths):
default=True,
help='whether to divide image function frames by their mean value')
ifc_count_normalization = Bool.T(
default=False,
help='whether to divide image function by number of contributors')
detector_threshold = Float.T(
default=200.,
help='threshold on detector function')
......
......@@ -387,6 +387,9 @@ def search(
frames *= (frame_maxs / frame_means)[num.newaxis, :]
frames *= norm_map[:, num.newaxis]
if config.ifc_count_normalization:
frames *= 1.0 / len(ifcs)
frame_maxs = frames.max(axis=0)
tmin_frames = t0 + ioff * deltat_cf
......
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