Skip to content

Commit

Permalink
materials: use https in henke
Browse files Browse the repository at this point in the history
  • Loading branch information
tfarago committed May 22, 2020
1 parent f1bcf07 commit 25cb991
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions syris/materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def make_pmasf(name, energies):


def make_henke(name, energies, formula=None, density=None):
"""Use the http://henke.lbl.gov database to lookup a material *name* for *energies*, use the
"""Use the https://henke.lbl.gov database to lookup a material *name* for *energies*, use the
specified chemical *formula* and *density*.
"""
indices = _HenkeQuery(name, energies, formula=formula, density=density).refractive_indices
Expand All @@ -277,7 +277,7 @@ def make_henke(name, energies, formula=None, density=None):
if element in ELEMENTS:
# Get the scattering factors
response = urllib.request.urlopen(
"http://henke.lbl.gov/optical_constants" + "/sf/{}.nff".format(element)
"https://henke.lbl.gov/optical_constants" + "/sf/{}.nff".format(element)
)
data = response.read().decode("utf-8")
response.close()
Expand All @@ -296,7 +296,7 @@ def make_henke(name, energies, formula=None, density=None):


def make_stepanov(name, energies, density=None, formula=None, crystal=None):
"""Use the http://x-server.gmca.aps.anl.gov database to lookup a material *name* for
"""Use the https://x-server.gmca.aps.anl.gov database to lookup a material *name* for
*energies*, use the specified chemical *formula* and *density*.
"""
if crystal and formula:
Expand Down Expand Up @@ -340,10 +340,10 @@ class _HenkeQuery(object):

"""Class for obtaining refractive indices obtained from `The Center For X-ray Optics`_.
.. _The Center For X-ray Optics: http://henke.lbl.gov/optical_constants/getdb2.html
.. _The Center For X-ray Optics: https://henke.lbl.gov/optical_constants/getdb2.html
"""

_URL = "http://henke.lbl.gov"
_URL = "https://henke.lbl.gov"

class HenkeHTMLParser(HTMLParser):

Expand Down

0 comments on commit 25cb991

Please sign in to comment.