From b51caa781584442f9e12b2ad9ad9fb76da44be1c Mon Sep 17 00:00:00 2001 From: Sylwester Arabas Date: Thu, 2 Jan 2025 01:56:07 +0100 Subject: [PATCH] doi fix; add archive.org to patterns --- .../physics/saturation_vapour_pressure/wexler_1976.py | 2 +- docs/bibliography.json | 10 ++++++++++ docs/generate_html.py | 3 ++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/PySDM/physics/saturation_vapour_pressure/wexler_1976.py b/PySDM/physics/saturation_vapour_pressure/wexler_1976.py index e983fa716..514dd35a8 100644 --- a/PySDM/physics/saturation_vapour_pressure/wexler_1976.py +++ b/PySDM/physics/saturation_vapour_pressure/wexler_1976.py @@ -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 diff --git a/docs/bibliography.json b/docs/bibliography.json index 3a8ebe73d..0b9ccdc60 100644 --- a/docs/bibliography.json +++ b/docs/bibliography.json @@ -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)" } } diff --git a/docs/generate_html.py b/docs/generate_html.py index af316e0f5..32bf061ce 100644 --- a/docs/generate_html.py +++ b/docs/generate_html.py @@ -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: @@ -106,7 +107,7 @@ def create_references_html(urls_from_json, code_path): f'{data["label"]}: "{data["title"]}"\n' ) fout.write('