Skip to content

Commit 10c1228

Browse files
committed
remove unused import; fix whitespace between functions and classes
1 parent 3e0d70d commit 10c1228

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

imsim/sky_model.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import warnings
44
import numpy as np
55
import galsim
6-
import pickle
76
from galsim.config import InputLoader, RegisterInputType, RegisterValueType
87
from scipy.interpolate import RegularGridInterpolator, RectBivariateSpline
98
import os
@@ -120,6 +119,7 @@ def __call__(self, x, y):
120119
"""
121120
return (self.a*x + self.b*y + self.c)/self.sky_level_center
122121

122+
123123
class CCD_Fringing:
124124
"""
125125
Class generates normalized fringing map.
@@ -172,7 +172,6 @@ def generate_heightfield(self, fractal_dimension=2.5, n=4096):
172172

173173
return np.fft.ifft2(A)
174174

175-
176175
def simulate_fringes(self, amp=0.002):
177176
'''
178177
# Generate random fringing pattern from a heightfield
@@ -191,7 +190,6 @@ def simulate_fringes(self, amp=0.002):
191190
#Z += 1
192191
return(Z)
193192

194-
195193
def fringe_variation_level(self):
196194
'''
197195
Function implementing temporal and spatial variation of fringing.
@@ -245,6 +243,7 @@ def calculate_fringe_amplitude(self,x,y,amplitude = 0.002):
245243

246244
return (interp_func((x,y)))
247245

246+
248247
class SkyModelLoader(InputLoader):
249248
"""
250249
Class to load a SkyModel object.

0 commit comments

Comments
 (0)