Skip to content

Commit

Permalink
remove unused import; fix whitespace between functions and classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiang87 committed May 13, 2024
1 parent 3e0d70d commit 10c1228
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions imsim/sky_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import warnings
import numpy as np
import galsim
import pickle
from galsim.config import InputLoader, RegisterInputType, RegisterValueType
from scipy.interpolate import RegularGridInterpolator, RectBivariateSpline
import os
Expand Down Expand Up @@ -120,6 +119,7 @@ def __call__(self, x, y):
"""
return (self.a*x + self.b*y + self.c)/self.sky_level_center


class CCD_Fringing:
"""
Class generates normalized fringing map.
Expand Down Expand Up @@ -172,7 +172,6 @@ def generate_heightfield(self, fractal_dimension=2.5, n=4096):

return np.fft.ifft2(A)


def simulate_fringes(self, amp=0.002):
'''
# Generate random fringing pattern from a heightfield
Expand All @@ -191,7 +190,6 @@ def simulate_fringes(self, amp=0.002):
#Z += 1
return(Z)


def fringe_variation_level(self):
'''
Function implementing temporal and spatial variation of fringing.
Expand Down Expand Up @@ -245,6 +243,7 @@ def calculate_fringe_amplitude(self,x,y,amplitude = 0.002):

return (interp_func((x,y)))


class SkyModelLoader(InputLoader):
"""
Class to load a SkyModel object.
Expand Down

0 comments on commit 10c1228

Please sign in to comment.