Skip to content

Commit bd38090

Browse files
committed
photon -> event
1 parent 0d025af commit bd38090

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/anscombe_transform/common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)