File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,16 @@ def make_demo_data(
55 n_frames : int = 50 ,
66 height : int = 256 ,
77 width : int = 256 ,
8- mean_photon_rate : float = 5.0 ,
8+ mean_event_rate : float = 5.0 ,
99 zero_level : float = 20.0 ,
1010 conversion_gain : float = 30.0
1111 ) -> np .ndarray :
1212 """
1313 A convenience function for generating synthetic imaging data
1414 """
1515
16- photon_rate = np .random .exponential (scale = mean_photon_rate , size = (1 , height , width ))
17- photon_counts = np .random .poisson (np .tile (photon_rate , (n_frames , 1 , 1 )))
18- measured_signal = photon_counts + np .random .randn (n_frames , height , width ) * 0.2
16+ event_rate = np .random .exponential (scale = mean_event_rate , size = (1 , height , width ))
17+ event_counts = np .random .poisson (np .tile (event_rate , (n_frames , 1 , 1 )))
18+ measured_signal = event_counts + np .random .randn (n_frames , height , width ) * 0.2
1919
2020 return (zero_level + conversion_gain * measured_signal ).astype ('int16' )
You can’t perform that action at this time.
0 commit comments