Skip to content

Commit

Permalink
doi fix; add archive.org to patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo committed Jan 2, 2025
1 parent ff8fa45 commit b51caa7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PySDM/physics/saturation_vapour_pressure/wexler_1976.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
[Wexler 1976](https://nvlpubs.nist.gov/nistpubs/jres/80A/jresv80An5-6p775_A1b.pdf)
[Wexler 1976](https://doi.org/10.6028/jres.080A.071)
"""

import numpy as np
Expand Down
10 changes: 10 additions & 0 deletions docs/bibliography.json
Original file line number Diff line number Diff line change
Expand Up @@ -681,5 +681,15 @@
"usages": ["examples/PySDM_examples/Arabas_et_al_2023/__init__.py"],
"label": "Arabas et al. 2023 (arXiv:2308.05015)",
"title": "Immersion freezing in particle-based aerosol-cloud microphysics: a probabilistic perspective on singular and time-dependent models"
},
"https://archive.org/details/physicsofclouds0000maso": {
"usages": ["PySDM/physics/drop_growth/mason_1971.py"],
"title": "The Physics of Clouds",
"label": "Mason 1971 (Clarendon Press, Oxford)"
},
"https://doi.org/10.6028/jres.080A.071": {
"usages": ["PySDM/physics/saturation_vapour_pressure/wexler_1976.py"],
"title": "Vapor Pressure Formulation for Water in Range 0 to f 00 °C. A Revision",
"label": "Wexler 1976 (J. Res. NBS A Phys. Ch. 80A)"
}
}
3 changes: 2 additions & 1 deletion docs/generate_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def check_urls(urls_from_json):
r"\b(https://doi\.org/10[.][0-9]{4,}(?:[.][0-9]+)*/(?:(?![\"&\'<>^\\])\S)+)\b",
r"\b(https://digitallibrary\.un\.org/record/(?:[0-9])+)\b",
r"\b(http://mi\.mathnet\.ru/dan(?:[0-9])+)\b",
r"\b(https://archive.org/details/(?:[0-9a-z])+)\b",
):
urls = re.findall(pattern, text)
if urls:
Expand Down Expand Up @@ -106,7 +107,7 @@ def create_references_html(urls_from_json, code_path):
f'<a href="{url}">{data["label"]}: "<em>{data["title"]}</em>"</a>\n'
)
fout.write('<ul style="list-style-type:square;font-size:smaller;">')
for path in data["usages"]:
for path in sorted(data["usages"]):
fout.write(
f'<li><a href="https://github.com/open-atmos/PySDM/tree/main/{path}">'
)
Expand Down

0 comments on commit b51caa7

Please sign in to comment.