Commit 27cb83b1 authored by Wei Chengliang's avatar Wei Chengliang
Browse files

update codestyle-PEP8

parent dec10f3e
Loading
Loading
Loading
Loading
Loading
+25 −22
Original line number Diff line number Diff line
import unittest

import sys,os,math
import sys
import os
import math
from itertools import islice
import numpy as np
import galsim
@@ -8,7 +10,7 @@ import yaml

from observation_sim.instruments import Chip, Filter, FilterParam, FocalPlane

### test FUNCTION --- START ###
# test FUNCTION --- START #
def AddPreScan(GSImage, pre1=27, pre2=4, over1=71, over2=80, nsecy=2, nsecx=8):
    img = GSImage.array
    ny, nx = img.shape
@@ -48,7 +50,7 @@ def AddPreScan(GSImage, pre1=27, pre2=4, over1=71, over2=80, nsecy = 2, nsecx=8)
    newimg.wcs = GSImage.wcs
    return newimg

### test FUNCTION --- END ###
# test FUNCTION --- END #


def defineCCD(iccd, config_file):
@@ -65,6 +67,7 @@ def defineCCD(iccd, config_file):
    chip.img.wcs = focal_plane.getTanWCS(192.8595, 27.1283, -113.4333*galsim.degrees, chip.pix_scale)
    return chip


def defineFilt(chip):
    filter_param = FilterParam()
    filter_id, filter_type = chip.getChipFilter()