Skip to content

Commit 6791e97

Browse files
committed
INTEGRALSWRQ-158: pycodestyle fixes 2
1 parent 2271264 commit 6791e97

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

astroquery/esa/integral/core.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@
99
1010
"""
1111
import numpy as np
12-
from astropy.units import Quantity
1312
from astropy.table import Table
1413
from astroquery.query import BaseQuery, BaseVOQuery
1514
from astroquery import log
1615
import warnings
17-
from astropy.utils.exceptions import AstropyDeprecationWarning
18-
import getpass
1916
import pyvo
20-
from pyvo.auth import AuthSession
2117

2218
from . import conf
2319
import time
@@ -538,7 +534,7 @@ def download_long_term_timeseries(self, target_name, *, instrument=None, band=No
538534

539535
params = {'RETRIEVAL_TYPE': 'long_timeseries',
540536
'source': target_name,
541-
"instrument_oid": self.instrument_band_map[value]['instrument_oid']}
537+
'instrument_oid': self.instrument_band_map[value]['instrument_oid']}
542538
try:
543539
return esautils.download_file(url=conf.ISLA_DATA_SERVER, session=self.tap._session, filename=output_file,
544540
params=params, verbose=True)
@@ -726,7 +722,7 @@ def get_spectra(self, target_name, epoch, instrument=None, band=None, *, plot=Fa
726722
if plot:
727723
esautils.plot_result(spectra_element['spectra']['energy'], spectra_element['spectra']['rate'],
728724
'Energy (keV)', 'Counts s⁻¹ keV⁻¹',
729-
f"Spectrum", error_x=spectra_element['spectra']['energy_error'],
725+
'Spectrum', error_x=spectra_element['spectra']['energy_error'],
730726
error_y=spectra_element['spectra']['rate_error'], log_scale=True)
731727

732728
self.__log_warning_message('get_spectra', 'download_spectra', show_warning)

astroquery/esa/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def get_degree_radius(radius):
192192
return radius
193193
elif isinstance(radius, int):
194194
return float(radius)
195-
raise ValueError(f"Radius must be either a Quantity or float value")
195+
raise ValueError('Radius must be either a Quantity or float value')
196196

197197

198198
def download_table(astropy_table, output_file=None, output_format=None):

0 commit comments

Comments
 (0)