From 1d71b1894312c8d5f19951d00cbda95f24f30476 Mon Sep 17 00:00:00 2001 From: Tharindu Jayasinghe Date: Mon, 23 Jan 2023 14:00:44 -0800 Subject: [PATCH] Update svo.py to fix SVO query Fixes issue #50 --- pyphot/svo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'])])