From 9d7b50e03caefb23aa2a738ac3d9d71dcd6f299c Mon Sep 17 00:00:00 2001 From: Shuai Feng <451424498@qq.com> Date: Tue, 24 Dec 2024 17:27:11 +0800 Subject: [PATCH] fix some bugs --- csst_ifs_gehong/config.py | 7 ++++--- csst_ifs_gehong/map2d.py | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/csst_ifs_gehong/config.py b/csst_ifs_gehong/config.py index 073224f..46da374 100644 --- a/csst_ifs_gehong/config.py +++ b/csst_ifs_gehong/config.py @@ -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 diff --git a/csst_ifs_gehong/map2d.py b/csst_ifs_gehong/map2d.py index 13e68c5..b5f7387 100644 --- a/csst_ifs_gehong/map2d.py +++ b/csst_ifs_gehong/map2d.py @@ -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 ---------- -- GitLab