diff --git a/pyphot/svo.py b/pyphot/svo.py index 56ce069..34b70fc 100644 --- a/pyphot/svo.py +++ b/pyphot/svo.py @@ -51,7 +51,7 @@ def get_pyphot_astropy_filter(identifier: str): tab = table.to_table() return UnitFilter(tab['Wavelength'].to('nm'), tab['Transmission'], - name=params['filterID'].replace('/', '_'), + name=params['filterID'].decode().replace('/', '_'), dtype=DETECTOR_TYPE[int(params['DetectorType'])]) @@ -80,4 +80,4 @@ def get_pyphot_filter(identifier: str): return UnitFilter(tab['Wavelength'].to('nm'), tab['Transmission'], name=params['filterID'].replace('/', '_'), - dtype=DETECTOR_TYPE[int(params['DetectorType'])]) \ No newline at end of file + dtype=DETECTOR_TYPE[int(params['DetectorType'])])