Commit 9d7b50e0 authored by Shuai Feng's avatar Shuai Feng
Browse files

fix some bugs

parent 9c17622d
Pipeline #7605 failed with stage
in 0 seconds
......@@ -3,7 +3,8 @@ import numpy as np
class config():
"""
The configuration of spectral modeling. The default value is used for ETC calculation.
The configuration of spectral modeling. The default value is used for
ETC calculation.
Parameters
----------
......@@ -22,8 +23,8 @@ class config():
dpix : float, optional
Pixel size in the spatial direction, by default 0.2arcsec
"""
def __init__(self, wave_min=3500.0, wave_max=10000.0, dlam=2.0,
nx=30, ny=30, dpix=0.2):
def __init__(self, wave_min=3500.0, wave_max=10000.0, dlam=2.0, nx=30,
ny=30, dpix=0.2):
self.dlam = dlam
self.wave = np.arange(wave_min, wave_max, dlam)
self.wave_min = wave_min
......
......@@ -8,7 +8,8 @@ from skimage.transform import resize
def Sersic2D(x, y, mag=12.0, r_eff=1.0, n=2.0, ellip=0.5,
theta=0.0, x_0=0.0, y_0=0.0, pixelscale=0.01):
"""
Sersic2D: Caculate the surface brightness at given spatial position base on the Sersic model.
Sersic2D: Caculate the surface brightness at given spatial position
base on the Sersic model.
Parameters
----------
......
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