From 4969d298616c9e68364ddee71adfd15cb687913a Mon Sep 17 00:00:00 2001 From: Benjamin Alan Weaver Date: Fri, 10 Jan 2025 10:35:15 -0700 Subject: [PATCH] Replace outdated http links --- doc/changes.rst | 6 +++--- py/desiutil/__init__.py | 2 +- py/desiutil/_version.py | 2 +- py/desiutil/bitmask.py | 2 +- py/desiutil/dust.py | 8 ++++---- py/desiutil/iers.py | 2 +- py/desiutil/modules.py | 2 +- py/desiutil/redirect.py | 4 ++-- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/doc/changes.rst b/doc/changes.rst index 6bcaaa81..239521d3 100644 --- a/doc/changes.rst +++ b/doc/changes.rst @@ -403,7 +403,7 @@ remains compatible with 2.x.x * Fix :command:`desiInstall` on cori. * Add :mod:`desiutil.census` to calculate DESI disk space use. -.. _basemap: http://matplotlib.org/basemap/ +.. _basemap: https://matplotlib.org/basemap/stable/ .. _`#61`: https://github.com/desihub/desiutil/pull/61 .. _`#63`: https://github.com/desihub/desiutil/pull/63 .. _`#70`: https://github.com/desihub/desiutil/pull/70 @@ -575,7 +575,7 @@ remains compatible with 2.x.x * Update the list of NERSC hosts, including cori. * Code is now `PEP 8`_ compliant. -.. _`PEP 8`: http://legacy.python.org/dev/peps/pep-0008/ +.. _`PEP 8`: https://legacy.python.org/dev/peps/pep-0008/ 1.1.0 (2015-11-06) ------------------ @@ -605,7 +605,7 @@ remains compatible with 2.x.x * fix_permissions.sh won't clobber executable bits. .. _`Travis build support`: https://travis-ci.org/desihub/desiutil -.. _`Read the Docs support`: http://desiutil.readthedocs.org/en/latest/ +.. _`Read the Docs support`: https://desiutil.readthedocs.io/en/latest/ 0.6.0 (2015-10-13) ------------------ diff --git a/py/desiutil/__init__.py b/py/desiutil/__init__.py index aa678c83..eda5bb05 100644 --- a/py/desiutil/__init__.py +++ b/py/desiutil/__init__.py @@ -7,7 +7,7 @@ This package provides low-level utilities for general use by DESI_. -.. _DESI: http://desi.lbl.gov +.. _DESI: https://www.desi.lbl.gov """ # # Set version string. diff --git a/py/desiutil/_version.py b/py/desiutil/_version.py index 90817734..5b2cd401 100644 --- a/py/desiutil/_version.py +++ b/py/desiutil/_version.py @@ -1 +1 @@ -__version__ = '3.4.4.dev1122' +__version__ = '3.5.0.dev1122' diff --git a/py/desiutil/bitmask.py b/py/desiutil/bitmask.py index c76dfc69..0783b16c 100644 --- a/py/desiutil/bitmask.py +++ b/py/desiutil/bitmask.py @@ -57,7 +57,7 @@ 'Cosmic ray' -.. _desispec: http://desispec.readthedocs.io +.. _desispec: https://desispec.readthedocs.io/en/latest/ """ diff --git a/py/desiutil/dust.py b/py/desiutil/dust.py index d8b8111e..b7dda4bd 100644 --- a/py/desiutil/dust.py +++ b/py/desiutil/dust.py @@ -7,7 +7,7 @@ Get :math:`E(B-V)` values from the `Schlegel, Finkbeiner & Davis (1998; SFD98)`_ dust map. -.. _`Schlegel, Finkbeiner & Davis (1998; SFD98)`: http://adsabs.harvard.edu/abs/1998ApJ...500..525S. +.. _`Schlegel, Finkbeiner & Davis (1998; SFD98)`: https://ui.adsabs.harvard.edu/abs/1998ApJ...500..525S/abstract """ import os import numpy as np @@ -388,7 +388,7 @@ def ext_fitzpatrick(wave, R_V=3.1, avglmc=False, lmc2=False, # -# based on the work from https://ui.adsabs.harvard.edu/abs/2011ApJ...737..103S +# based on the work from https://ui.adsabs.harvard.edu/abs/2011ApJ...737..103S/abstract # note from Eddie: I recommend applying the SF11 calibration in the following way: # A(lambda, F99) = A(lambda, F99, rv)/A(1 micron, F99, rv) * SFD_EBV * 1.029. # That's a definition that only uses monochromatic extinctions, @@ -584,7 +584,7 @@ class SFDMap(object): scaling : :class:`float`, optional, defaults to 1 Scale all E(B-V) map values by this multiplicative factor. Pass scaling=0.86 for the recalibration from - `Schlafly & Finkbeiner (2011) `_. + `Schlafly & Finkbeiner (2011) `_. Notes ----- @@ -769,7 +769,7 @@ def _get_ext_coeff(temp, photsys, band, ebv_sfd, rv=3.1): wave = np.linspace(2900, 11000, 4000) sed = 1. / (wave/6000)**5 / (np.exp(143877687. / wave / temp) - 1) # code to use Munari library - # http://cdsarc.u-strasbg.fr/ftp/J/A+A/442/1127/disp10A/fluxed_spectra/T_07000/ + # https://cdsarc.u-strasbg.fr/ftp/J/A+A/442/1127/disp10A/fluxed_spectra/T_07000/ # wave = np.loadtxt('LAMBDA_D10.DAT.txt') # wave = np.r_[wave, 10999] # sed = np.loadtxt('T07000G40M10V000K2SNWNVD10F.ASC') diff --git a/py/desiutil/iers.py b/py/desiutil/iers.py index 9ae32664..9f1f3ebc 100644 --- a/py/desiutil/iers.py +++ b/py/desiutil/iers.py @@ -52,7 +52,7 @@ def freeze_iers(name='iers_frozen.ecsv', ignore_warnings=True): :meth:`astropy.utils.iers.IERS._check_interpolate_indices` to prevent any IERSRangeError being raised. - See http://docs.astropy.org/en/stable/utils/iers.html for details. + See https://docs.astropy.org/en/stable/utils/iers.html for details. This function returns immediately after the first time it is called, so it it safe to insert anywhere that consistent IERS models are diff --git a/py/desiutil/modules.py b/py/desiutil/modules.py index bceb6831..666ac3c8 100644 --- a/py/desiutil/modules.py +++ b/py/desiutil/modules.py @@ -7,7 +7,7 @@ This package contains code for processing and installing `Module files`_. -.. _`Module files`: http://modules.sourceforge.net +.. _`Module files`: https://modules.readthedocs.io/en/latest/ """ import os import re diff --git a/py/desiutil/redirect.py b/py/desiutil/redirect.py index 1123d42c..ccb474a9 100644 --- a/py/desiutil/redirect.py +++ b/py/desiutil/redirect.py @@ -58,8 +58,8 @@ def stdouterr_redirected(to=None, comm=None): The general technique is based on: - http://stackoverflow.com/questions/5081657 - http://eli.thegreenplace.net/2015/redirecting-all-kinds-of-stdout-in-python/ + https://stackoverflow.com/questions/5081657/how-do-i-prevent-a-c-shared-library-to-print-on-stdout-in-python + https://eli.thegreenplace.net/2015/redirecting-all-kinds-of-stdout-in-python/ If the optional communicator is specified, then each process redirects to a different temporary file. Upon exit from the context the rank zero