Commit ba121152 authored by Wei Chengliang's avatar Wei Chengliang
Browse files

update codestyle-PEP8

parent 1742c3e2
Pipeline #7105 failed with stage
in 0 seconds
...@@ -267,7 +267,7 @@ def PRNU_Img(xsize, ysize, sigma=0.01, seed=202101): ...@@ -267,7 +267,7 @@ def PRNU_Img(xsize, ysize, sigma=0.01, seed=202101):
return prnuimg 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 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 ...@@ -697,7 +697,7 @@ def produceCR_Map(xLen, yLen, exTime, cr_pixelRatio, gain, attachedSizes, seed=2
for i in np.arange(cr_event_size): for i in np.arange(cr_event_size):
xPos = round((xLen - 1) * np.random.random()) xPos = round((xLen - 1) * np.random.random())
yPos = round((yLen - 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: if cr_lens == 0:
continue continue
pix_energy = cr_energys[i]/gain/cr_lens pix_energy = cr_energys[i]/gain/cr_lens
......
Supports Markdown
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