From bca4aeef2189ba735e850fb9e09e808a5fec5ca5 Mon Sep 17 00:00:00 2001 From: "zhaojunyan@shao.ac.cn" Date: Sun, 14 Apr 2024 19:20:41 +0800 Subject: [PATCH] test --- csst_mci_sim/support/sed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csst_mci_sim/support/sed.py b/csst_mci_sim/support/sed.py index c91ecc8..52169fe 100755 --- a/csst_mci_sim/support/sed.py +++ b/csst_mci_sim/support/sed.py @@ -89,7 +89,7 @@ def flux_to_mag(wave, flux, path, band='GAIA_bp'): return -2.5 * np.log10(Tflux) -def calibrate(wave, flux, mag, band='GAIA_bp'): +def calibrate(wave, flux, mag, path,band='GAIA_bp'): """ Calibrate the spectra according to the magnitude. @@ -102,7 +102,7 @@ def calibrate(wave, flux, mag, band='GAIA_bp'): Returns: float: Flux of calibrated spectra. Units: 1e-17 erg/s/A/cm^2 """ - inst_mag = flux_to_mag(wave, flux, band = band) + inst_mag = flux_to_mag(wave, flux, path,band = band) instflux = 10 ** (-0.4 * inst_mag) realflux = (mag * u.STmag).to(u.erg/u.s/u.cm**2/u.AA).value -- GitLab