1515
1616from aiapy import _SSW_MIRRORS
1717from aiapy .calibrate import degradation
18- from aiapy .calibrate .util import _select_epoch_from_correction_table , get_correction_table
18+ from aiapy .calibrate .util import _select_epoch_from_correction_table
1919from aiapy .data ._manager import manager
2020from aiapy .util import telescope_number
2121from aiapy .util .decorators import validate_channel
@@ -282,7 +282,7 @@ def crosstalk(
282282 return u .Quantity (np .zeros (self .wavelength .shape ), u .cm ** 2 )
283283
284284 @u .quantity_input
285- def eve_correction (self , obstime , source ) -> u .dimensionless_unscaled :
285+ def eve_correction (self , obstime , correction_table ) -> u .dimensionless_unscaled :
286286 r"""
287287 Correct effective area to give good agreement with full-disk EVE data.
288288
@@ -306,8 +306,9 @@ def eve_correction(self, obstime, source) -> u.dimensionless_unscaled:
306306 ----------
307307 obstime : `~astropy.time.Time`
308308 The time of the observation.
309- source : `pathlib.Path` or `str` or `int`, optional
310- TODO: UPDATE
309+ correction_table : `astropy.table.QTable`
310+ Table of correction parameters.
311+ See `aiapy.calibrate.util.get_correction_table` for more information.
311312
312313 Returns
313314 -------
@@ -320,7 +321,7 @@ def eve_correction(self, obstime, source) -> u.dimensionless_unscaled:
320321 table = _select_epoch_from_correction_table (
321322 self .channel ,
322323 obstime ,
323- get_correction_table ( source = source ) ,
324+ correction_table = correction_table ,
324325 )
325326 effective_area_interp = np .interp (table ["EFF_WVLN" ][- 1 ], self .wavelength , self .effective_area )
326327 return table ["EFF_AREA" ][0 ] / effective_area_interp
@@ -360,7 +361,7 @@ def wavelength_response(
360361 obstime = None ,
361362 include_eve_correction = False ,
362363 include_crosstalk = True ,
363- ** kwargs ,
364+ correction_table ,
364365 ) -> u .DN / u .ph * u .cm ** 2 :
365366 r"""
366367 The wavelength response function is the product of the gain and the
@@ -393,9 +394,8 @@ def wavelength_response(
393394 The time-dependent correction is also included.
394395 include_crosstalk : `bool`, optional
395396 If true, include the effect of crosstalk between channels that share a telescope
396- correction_table : `~astropy.table.Table` or `str`, optional
397- Table of correction parameters or path to correction table file.
398- If not specified, it will be queried from JSOC.
397+ correction_table : `~astropy.table.Table`
398+ Table of correction parameters.
399399 See `aiapy.calibrate.util.get_correction_table` for more information.
400400
401401 Returns
@@ -412,8 +412,8 @@ def wavelength_response(
412412 """
413413 eve_correction , time_correction = 1 , 1
414414 if obstime is not None :
415- time_correction = degradation (self .channel , obstime , ** kwargs )
415+ time_correction = degradation (self .channel , obstime , correction_table = correction_table )
416416 if include_eve_correction :
417- eve_correction = self .eve_correction (obstime , ** kwargs )
417+ eve_correction = self .eve_correction (obstime , correction_table = correction_table )
418418 crosstalk = self .crosstalk if include_crosstalk else 0 * u .cm ** 2
419419 return (self .effective_area + crosstalk ) * self .gain * time_correction * eve_correction
0 commit comments