File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,8 +108,12 @@ def fetch_and_adjust_zeropoints(combined_footprint_hash):
108108 zp_scatter_normalized = zeropoints_data ['adjusted_zeropoint' ].std ()
109109 global_zp = zeropoints_data ['adjusted_zeropoint' ].median ()
110110
111- message = "The scatter in zeropoints before normalizing is lower than after normalizing? Not normal, investigate."
112- #assert zp_scatter_normalized < zp_scatter_not_normalized, message
111+ if zp_scatter_normalized < zp_scatter_not_normalized :
112+ # This shouldn't happen in well controlled case. (normalising should result in a very stable zeropoint)
113+ # If might happen harmlessly for very low frame numbers.
114+ message = "The scatter in zeropoints before normalizing is lower than after normalizing? Not normal, investigate."
115+ logger = logging .getLogger ('lightcurver.roi_file_preparation' )
116+ logger .warning (message )
113117
114118 return global_zp , zp_scatter_normalized
115119
You can’t perform that action at this time.
0 commit comments