Skip to content

Commit

Permalink
Merge pull request #26 from David-McKenna/silenceHealpyWarning
Browse files Browse the repository at this point in the history
Silence deprecation warning by removing the hp.read_map verbose kwarg
  • Loading branch information
telegraphic committed May 6, 2024
2 parents 05cbd2c + 4d54363 commit f830df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygdsm/haslam.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, freq_unit='MHz', spectral_index=-2.6, include_cmb=False):

super(HaslamSkyModel, self).__init__('Haslam', HASLAM_FILEPATH, freq_unit, data_unit, basemap)
self.spectral_index = spectral_index
self.data = hp.read_map(self.fits, verbose=False, dtype=np.float64) - T_CMB
self.data = hp.read_map(self.fits, dtype=np.float64) - T_CMB
self.nside = 512

self.include_cmb = include_cmb
Expand Down

0 comments on commit f830df7

Please sign in to comment.