diff --git a/observation_sim/instruments/chip/effects.py b/observation_sim/instruments/chip/effects.py index 4aa0fc9b48e88aad6322b23219f1f67e71b77e7c..bef8da0bd73b6b6308b584cf636d6f10085803a3 100644 --- a/observation_sim/instruments/chip/effects.py +++ b/observation_sim/instruments/chip/effects.py @@ -267,7 +267,7 @@ def PRNU_Img(xsize, ysize, sigma=0.01, seed=202101): return prnuimg -def NonLinear_f(x, beta_1, beta_2): +def NonLinear_f(x, beta_1, beta_2): return x - beta_1 * x * x + beta_2 * x * x * x @@ -697,7 +697,7 @@ def produceCR_Map(xLen, yLen, exTime, cr_pixelRatio, gain, attachedSizes, seed=2 for i in np.arange(cr_event_size): xPos = round((xLen - 1) * np.random.random()) yPos = round((yLen - 1) * np.random.random()) - cr_lens = int(cr_size[i]); + cr_lens = int(cr_size[i]) if cr_lens == 0: continue pix_energy = cr_energys[i]/gain/cr_lens