Skip to content

Commit

Permalink
Update svo.py to fix SVO query
Browse files Browse the repository at this point in the history
Fixes issue mfouesneau#50
  • Loading branch information
tjayasinghe committed Jan 23, 2023
1 parent b308965 commit 1d71b18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyphot/svo.py
Expand Up @@ -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'])])


Expand Down Expand Up @@ -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'])])
dtype=DETECTOR_TYPE[int(params['DetectorType'])])

0 comments on commit 1d71b18

Please sign in to comment.