|
9 | 9 |
|
10 | 10 | """
|
11 | 11 | import numpy as np
|
12 |
| -from astropy.units import Quantity |
13 | 12 | from astropy.table import Table
|
14 | 13 | from astroquery.query import BaseQuery, BaseVOQuery
|
15 | 14 | from astroquery import log
|
16 | 15 | import warnings
|
17 |
| -from astropy.utils.exceptions import AstropyDeprecationWarning |
18 |
| -import getpass |
19 | 16 | import pyvo
|
20 |
| -from pyvo.auth import AuthSession |
21 | 17 |
|
22 | 18 | from . import conf
|
23 | 19 | import time
|
@@ -538,7 +534,7 @@ def download_long_term_timeseries(self, target_name, *, instrument=None, band=No
|
538 | 534 |
|
539 | 535 | params = {'RETRIEVAL_TYPE': 'long_timeseries',
|
540 | 536 | 'source': target_name,
|
541 |
| - "instrument_oid": self.instrument_band_map[value]['instrument_oid']} |
| 537 | + 'instrument_oid': self.instrument_band_map[value]['instrument_oid']} |
542 | 538 | try:
|
543 | 539 | return esautils.download_file(url=conf.ISLA_DATA_SERVER, session=self.tap._session, filename=output_file,
|
544 | 540 | params=params, verbose=True)
|
@@ -726,7 +722,7 @@ def get_spectra(self, target_name, epoch, instrument=None, band=None, *, plot=Fa
|
726 | 722 | if plot:
|
727 | 723 | esautils.plot_result(spectra_element['spectra']['energy'], spectra_element['spectra']['rate'],
|
728 | 724 | 'Energy (keV)', 'Counts s⁻¹ keV⁻¹',
|
729 |
| - f"Spectrum", error_x=spectra_element['spectra']['energy_error'], |
| 725 | + 'Spectrum', error_x=spectra_element['spectra']['energy_error'], |
730 | 726 | error_y=spectra_element['spectra']['rate_error'], log_scale=True)
|
731 | 727 |
|
732 | 728 | self.__log_warning_message('get_spectra', 'download_spectra', show_warning)
|
|
0 commit comments