From 559d50f9d505d5042df976f4d0f010f4e925850a Mon Sep 17 00:00:00 2001 From: Domantas Kuryla Date: Sun, 22 Feb 2026 01:44:12 +0000 Subject: [PATCH 01/27] Water densities analysis --- .../WaterDensity/analyse_WaterDensity.py | 197 ++++++++++++++++++ .../WaterDensity/metrics.yml | 8 + 2 files changed, 205 insertions(+) create mode 100644 ml_peg/analysis/molecular_dynamics/WaterDensity/analyse_WaterDensity.py create mode 100644 ml_peg/analysis/molecular_dynamics/WaterDensity/metrics.yml diff --git a/ml_peg/analysis/molecular_dynamics/WaterDensity/analyse_WaterDensity.py b/ml_peg/analysis/molecular_dynamics/WaterDensity/analyse_WaterDensity.py new file mode 100644 index 000000000..511598e90 --- /dev/null +++ b/ml_peg/analysis/molecular_dynamics/WaterDensity/analyse_WaterDensity.py @@ -0,0 +1,197 @@ +"""Analyse water densities.""" + +from __future__ import annotations + +from pathlib import Path + +from ase import units +import numpy as np +import pytest + +from ml_peg.analysis.utils.decorators import build_table, plot_parity +from ml_peg.analysis.utils.utils import build_d3_name_map, load_metrics_config, mae +from ml_peg.app import APP_ROOT +from ml_peg.calcs import CALCS_ROOT +from ml_peg.calcs.utils.utils import download_s3_data +from ml_peg.models.get_models import load_models +from ml_peg.models.models import current_models + +MODELS = load_models(current_models) +D3_MODEL_NAMES = build_d3_name_map(MODELS) + +CALC_PATH = CALCS_ROOT / "molecular_dynamics" / "WaterDensity" / "outputs" +OUT_PATH = APP_ROOT / "data" / "molecular_dynamics" / "WaterDensity" + +METRICS_CONFIG_PATH = Path(__file__).with_name("metrics.yml") +DEFAULT_THRESHOLDS, DEFAULT_TOOLTIPS, DEFAULT_WEIGHTS = load_metrics_config( + METRICS_CONFIG_PATH +) + +EV_TO_KCAL = units.mol / units.kcal +INFO = [270, 290, 300, 330] + +experimental_data = { + "temperature": np.array( + [ + 270, + 273.15, + 277, + 280, + 283, + 286, + 290, + 293, + 296, + 300, + 303, + 306, + 310, + 313, + 316, + 320, + 323, + 326, + 330, + 333, + 336, + 340, + ] + ), + "density": np.array( + [ + 0.9998, + 0.9999, + 1.0000, + 0.9999, + 0.9998, + 0.9997, + 0.9991, + 0.9985, + 0.9978, + 0.9970, + 0.9957, + 0.9944, + 0.9927, + 0.9910, + 0.9893, + 0.9871, + 0.9849, + 0.9827, + 0.9802, + 0.9777, + 0.9752, + 0.9723, + ] + ), # g/cm³ +} + +DATA_PATH = ( + download_s3_data( + filename="WaterDensities.zip", + key="inputs/molecular_dynamics/WaterDensities/WaterDensities.zip", + ) + / "WaterDensities" +) + + +@pytest.fixture +@plot_parity( + filename=OUT_PATH / "figure_WaterDensity.json", + title="Water density", + x_label="Predicted density / g/cm^3", + y_label="Reference density / g/cm^3", + hoverdata={"Labels": INFO}, +) +def densities() -> dict[str, list]: + """ + Get water density for all the teperatures. + + Returns + ------- + dict[str, list] + Dictionary of all reference and predicted densities. + """ + results = {"ref": []} | {mlip: [] for mlip in MODELS} + + results["ref"] = [ + density + for density, temp in zip( + experimental_data["density"], experimental_data["temperature"], strict=False + ) + if temp in INFO + ] + + for model_name in MODELS: + for temperature in INFO: + instantaneous_densities = [] + with open( + DATA_PATH / model_name / f"water_T_{temperature:.1f}" / "water.log" + ) as lines: + skip_time_ps = 500 + for line in lines: + items = line.strip().split() + time = float(items[1]) + if time < skip_time_ps: + continue + instantaneous_densities.append(float(items[13])) + + results[model_name].append(np.mean(instantaneous_densities)) + return results + + +@pytest.fixture +def get_mae(densities) -> dict[str, float]: + """ + Get mean absolute error for densities for all temperatures. + + Parameters + ---------- + densities + Dictionary of reference and predicted densities. + + Returns + ------- + dict[str, float] + Dictionary of predicted densities errors for all models. + """ + results = {} + for model_name in MODELS: + results[model_name] = mae(densities["ref"], densities[model_name]) + return results + + +@pytest.fixture +@build_table( + filename=OUT_PATH / "WaterDensity_metrics_table.json", + metric_tooltips=DEFAULT_TOOLTIPS, + thresholds=DEFAULT_THRESHOLDS, + weights=DEFAULT_WEIGHTS, + mlip_name_map=D3_MODEL_NAMES, +) +def metrics(get_mae: dict[str, float]) -> dict[str, dict]: + """ + Get all metrics. + + Parameters + ---------- + get_mae + Mean absolute errors for all models. + + Returns + ------- + dict[str, dict] + Metric names and values for all models. + """ + return {"MAE": get_mae} + + +def test_water_density(metrics: dict[str, dict]) -> None: + """ + Run water density test. + + Parameters + ---------- + metrics + All new benchmark metric names and dictionary of values for each model. + """ + return diff --git a/ml_peg/analysis/molecular_dynamics/WaterDensity/metrics.yml b/ml_peg/analysis/molecular_dynamics/WaterDensity/metrics.yml new file mode 100644 index 000000000..0f5f5961e --- /dev/null +++ b/ml_peg/analysis/molecular_dynamics/WaterDensity/metrics.yml @@ -0,0 +1,8 @@ +metrics: + MAE: + good: 0.0 + bad: 0.4 + unit: g/cm^3 + tooltip: Mean Absolute Error in density for all systems + level_of_theory: Experimental density + weight: 1 From 7fdbfab2f14f0003d8f715e1e655396342b23cd6 Mon Sep 17 00:00:00 2001 From: Domantas Kuryla Date: Sun, 22 Feb 2026 01:44:39 +0000 Subject: [PATCH 02/27] change thresholds --- ml_peg/analysis/molecular_dynamics/WaterDensity/metrics.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml_peg/analysis/molecular_dynamics/WaterDensity/metrics.yml b/ml_peg/analysis/molecular_dynamics/WaterDensity/metrics.yml index 0f5f5961e..0754e9a91 100644 --- a/ml_peg/analysis/molecular_dynamics/WaterDensity/metrics.yml +++ b/ml_peg/analysis/molecular_dynamics/WaterDensity/metrics.yml @@ -1,7 +1,7 @@ metrics: MAE: good: 0.0 - bad: 0.4 + bad: 0.2 unit: g/cm^3 tooltip: Mean Absolute Error in density for all systems level_of_theory: Experimental density From 18dc038f0c1c6ef2861ca39806c88599826c4b6d Mon Sep 17 00:00:00 2001 From: Domantas Kuryla Date: Sun, 22 Feb 2026 01:57:27 +0000 Subject: [PATCH 03/27] Water density app --- .../WaterDensity/app_WaterDensity.py | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 ml_peg/app/molecular_dynamics/WaterDensity/app_WaterDensity.py diff --git a/ml_peg/app/molecular_dynamics/WaterDensity/app_WaterDensity.py b/ml_peg/app/molecular_dynamics/WaterDensity/app_WaterDensity.py new file mode 100644 index 000000000..74fee5f61 --- /dev/null +++ b/ml_peg/app/molecular_dynamics/WaterDensity/app_WaterDensity.py @@ -0,0 +1,69 @@ +"""Run water density app.""" + +from __future__ import annotations + +from dash import Dash +from dash.html import Div + +from ml_peg.app import APP_ROOT +from ml_peg.app.base_app import BaseApp +from ml_peg.app.utils.build_callbacks import ( + plot_from_table_column, +) +from ml_peg.app.utils.load import read_plot +from ml_peg.models.get_models import get_model_names +from ml_peg.models.models import current_models + +MODELS = get_model_names(current_models) +BENCHMARK_NAME = "WaterDensity" +DOCS_URL = "https://ddmms.github.io/ml-peg/user_guide/benchmarks/molecular_dynamics.html#Water_Density" +DATA_PATH = APP_ROOT / "data" / "molecular_dynamics" / "WaterDensity" + + +class WaterDensityApp(BaseApp): + """Water density benchmark app layout and callbacks.""" + + def register_callbacks(self) -> None: + """Register callbacks to app.""" + scatter = read_plot( + DATA_PATH / "figure_water_density.json", + id=f"{BENCHMARK_NAME}-figure", + ) + + plot_from_table_column( + table_id=self.table_id, + plot_id=f"{BENCHMARK_NAME}-figure-placeholder", + column_to_plot={"MAE": scatter}, + ) + + +def get_app() -> WaterDensityApp: + """ + Get water density benchmark app layout and callback registration. + + Returns + ------- + WaterDensityApp + Benchmark layout and callback registration. + """ + return WaterDensityApp( + name=BENCHMARK_NAME, + description=( + "Performance in predicting water density at different temperatures." + "Reference data is experimental densities." + ), + docs_url=DOCS_URL, + table_path=DATA_PATH / "water_density_metrics_table.json", + extra_components=[ + Div(id=f"{BENCHMARK_NAME}-figure-placeholder"), + Div(id=f"{BENCHMARK_NAME}-struct-placeholder"), + ], + ) + + +if __name__ == "__main__": + full_app = Dash(__name__, assets_folder=DATA_PATH.parent.parent) + benchmark_app = get_app() + full_app.layout = benchmark_app.layout + benchmark_app.register_callbacks() + full_app.run(port=8063, debug=True) From 48f74eca02cc1d04d38ab53291df03fd24d57cd1 Mon Sep 17 00:00:00 2001 From: Domantas Kuryla Date: Sun, 22 Feb 2026 02:02:16 +0000 Subject: [PATCH 04/27] Water density docs --- .../benchmarks/molecular_dynamics.rst | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/source/user_guide/benchmarks/molecular_dynamics.rst diff --git a/docs/source/user_guide/benchmarks/molecular_dynamics.rst b/docs/source/user_guide/benchmarks/molecular_dynamics.rst new file mode 100644 index 000000000..dcae3cfb1 --- /dev/null +++ b/docs/source/user_guide/benchmarks/molecular_dynamics.rst @@ -0,0 +1,38 @@ + +================== +Molecular dynamics +================== + +Water density +================ + +Summary +------- + +Performance in predicting the density of water at temperatures of 270, 290, 300, and 330 K. +The water systems consist of 333 molecules. + +Metrics +------- + +1. Density error + +For each system, the density is calculated by taking the average density of an NPT molecular +dynamics run. The initial part of the simulation, here 500 ps, is omitted from the density +calculation. This is compared to the reference density, obtained from experiment. + +Computational cost +------------------ + +Low: tests are likely to take several days to run on GPU. + +Data availability +----------------- + +Input structures: + +* + +Reference data: + +* Experiment From 2983367f54cc41e32da697edf62da85b6e0a644a Mon Sep 17 00:00:00 2001 From: Domantas Kuryla <116088428+kuryla@users.noreply.github.com> Date: Mon, 2 Mar 2026 12:32:34 +0000 Subject: [PATCH 05/27] 3dTMV benchmark (#380) Co-authored-by: Domantas Kuryla Co-authored-by: joehart2001 Co-authored-by: ElliottKasoar <45317199+ElliottKasoar@users.noreply.github.com> --- docs/source/user_guide/benchmarks/index.rst | 1 + .../user_guide/benchmarks/tm_complexes.rst | 42 +++ .../tm_complexes/3dTMV/analyse_3dTMV.py | 282 ++++++++++++++++++ .../analysis/tm_complexes/3dTMV/metrics.yml | 25 ++ ml_peg/app/tm_complexes/3dTMV/app_3dTMV.py | 97 ++++++ ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py | 157 ++++++++++ 6 files changed, 604 insertions(+) create mode 100644 docs/source/user_guide/benchmarks/tm_complexes.rst create mode 100644 ml_peg/analysis/tm_complexes/3dTMV/analyse_3dTMV.py create mode 100644 ml_peg/analysis/tm_complexes/3dTMV/metrics.yml create mode 100644 ml_peg/app/tm_complexes/3dTMV/app_3dTMV.py create mode 100644 ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py diff --git a/docs/source/user_guide/benchmarks/index.rst b/docs/source/user_guide/benchmarks/index.rst index 83afd6ec5..63333e784 100644 --- a/docs/source/user_guide/benchmarks/index.rst +++ b/docs/source/user_guide/benchmarks/index.rst @@ -14,3 +14,4 @@ Benchmarks bulk_crystal lanthanides non_covalent_interactions + tm_complexes diff --git a/docs/source/user_guide/benchmarks/tm_complexes.rst b/docs/source/user_guide/benchmarks/tm_complexes.rst new file mode 100644 index 000000000..80f8a1a29 --- /dev/null +++ b/docs/source/user_guide/benchmarks/tm_complexes.rst @@ -0,0 +1,42 @@ +========================== +Transition Metal Complexes +========================== + +3dTMV +======= + +Summary +------- + +Performance in predicting vertical ionization energies for 28 transition metal +complexes. + +Metrics +------- + +1. Ionization energy error + +For each complex, the ionization energy is calculated by taking the difference in energy +between the complex in its oxidized state and initial state, which differ by one electron +and spin multiplicity. This is compared to the reference ionization energy, calculated in the same way. + +Computational cost +------------------ + +Low: tests are likely to take minutes to run on CPU. + +Data availability +----------------- + +Input structures: + +* Toward Benchmark-Quality Ab Initio Predictions for 3d Transition Metal + Electrocatalysts: A Comparison of CCSD(T) and ph-AFQMC Hagen Neugebauer, Hung T. + Vuong, John L. Weber, Richard A. Friesner, James Shee, and Andreas Hansen Journal of + Chemical Theory and Computation 2023 19 (18), 6208-6225, + DOI: 10.1021/acs.jctc.3c00617 + +Reference data: + +* Same as input data +* ph-AFQMC level of theory: Auxiliary-Field Quantum Monte Carlo. diff --git a/ml_peg/analysis/tm_complexes/3dTMV/analyse_3dTMV.py b/ml_peg/analysis/tm_complexes/3dTMV/analyse_3dTMV.py new file mode 100644 index 000000000..ddd6e2db8 --- /dev/null +++ b/ml_peg/analysis/tm_complexes/3dTMV/analyse_3dTMV.py @@ -0,0 +1,282 @@ +"""Analyse the 3dTMV benchmark.""" + +from __future__ import annotations + +from pathlib import Path + +from ase import units +from ase.io import read, write +import pytest + +from ml_peg.analysis.utils.decorators import ( + build_table, + plot_parity, +) +from ml_peg.analysis.utils.utils import ( + build_d3_name_map, + load_metrics_config, + mae, +) +from ml_peg.app import APP_ROOT +from ml_peg.calcs import CALCS_ROOT +from ml_peg.models.get_models import load_models +from ml_peg.models.models import current_models + +MODELS = load_models(current_models) +D3_MODEL_NAMES = build_d3_name_map(MODELS) + +EV_TO_KCAL = units.mol / units.kcal +CALC_PATH = CALCS_ROOT / "tm_complexes" / "3dTMV" / "outputs" +OUT_PATH = APP_ROOT / "data" / "tm_complexes" / "3dTMV" + +METRICS_CONFIG_PATH = Path(__file__).with_name("metrics.yml") +DEFAULT_THRESHOLDS, DEFAULT_TOOLTIPS, DEFAULT_WEIGHTS = load_metrics_config( + METRICS_CONFIG_PATH +) + +SUBSETS = { + 1: "SR", + 2: "SR", + 3: "SR", + 4: "SR", + 5: "SR", + 6: "SR", + 7: "SR", + 8: "SR", + 9: "SR", + 10: "SR", + 11: "SR", + 12: "SR", + 13: "SR/MR", + 14: "SR/MR", + 15: "SR/MR", + 16: "SR/MR", + 17: "SR/MR", + 18: "SR/MR", + 19: "SR/MR", + 20: "SR/MR", + 21: "SR/MR", + 22: "SR/MR", + 23: "MR", + 24: "MR", + 25: "MR", + 26: "MR", + 27: "MR", + 28: "MR", +} + + +def labels(): + """ + Get complex ids. + + Returns + ------- + list + IDs of the complexes. + """ + return list(range(1, 29)) + + +@pytest.fixture +@plot_parity( + filename=OUT_PATH / "figure_3dtmv.json", + title="Ionization energies", + x_label="Predicted ionization energy / kcal/mol", + y_label="Reference ionization energy / kcal/mol", + hoverdata={ + "Labels": labels(), + }, +) +def ionization_energies() -> dict[str, list]: + """ + Get ionization energies for all systems. + + Returns + ------- + dict[str, list] + Dictionary of all reference and predicted energies. + """ + results = {"ref": []} | {mlip: [] for mlip in MODELS} + ref_stored = False + + for model_name in MODELS: + for complex_id in labels(): + atoms = read(CALC_PATH / model_name / f"{complex_id}.xyz") + model_ion_energy = atoms.info["model_ionization_energy"] + ref_ion_energy = atoms.info["ref_ionization_energy"] + # Write structures for app + structs_dir = OUT_PATH / model_name + structs_dir.mkdir(parents=True, exist_ok=True) + write(structs_dir / f"{complex_id}.xyz", atoms) + results[model_name].append(model_ion_energy * EV_TO_KCAL) + if not ref_stored: + results["ref"].append(ref_ion_energy * EV_TO_KCAL) + ref_stored = True + return results + + +@pytest.fixture +def sr_mae(ionization_energies) -> dict[str, float]: + """ + Get mean absolute error for SR subset. + + Parameters + ---------- + ionization_energies + Dictionary of reference and predicted energies. + + Returns + ------- + dict[str, float] + Dictionary of predicted energy errors for all models. + """ + results = {} + + for model_name in MODELS: + subsampled_ref_e = [ + ionization_energies["ref"][i - 1] for i in labels() if SUBSETS[i] == "SR" + ] + subsampled_model_e = [ + ionization_energies[model_name][i - 1] + for i in labels() + if SUBSETS[i] == "SR" + ] + results[model_name] = mae(subsampled_ref_e, subsampled_model_e) + return results + + +@pytest.fixture +def mr_mae(ionization_energies) -> dict[str, float]: + """ + Get mean absolute error for MR subset. + + Parameters + ---------- + ionization_energies + Dictionary of reference and predicted energies. + + Returns + ------- + dict[str, float] + Dictionary of predicted energy errors for all models. + """ + results = {} + + for model_name in MODELS: + subsampled_ref_e = [ + ionization_energies["ref"][i - 1] for i in labels() if SUBSETS[i] == "MR" + ] + subsampled_model_e = [ + ionization_energies[model_name][i - 1] + for i in labels() + if SUBSETS[i] == "MR" + ] + results[model_name] = mae(subsampled_ref_e, subsampled_model_e) + return results + + +@pytest.fixture +def sr_mr_mae(ionization_energies) -> dict[str, float]: + """ + Get mean absolute error for SR/MR subset. + + Parameters + ---------- + ionization_energies + Dictionary of reference and predicted energies. + + Returns + ------- + dict[str, float] + Dictionary of predicted energy errors for all models. + """ + results = {} + + for model_name in MODELS: + subsampled_ref_e = [ + ionization_energies["ref"][i - 1] for i in labels() if SUBSETS[i] == "SR/MR" + ] + subsampled_model_e = [ + ionization_energies[model_name][i - 1] + for i in labels() + if SUBSETS[i] == "SR/MR" + ] + results[model_name] = mae(subsampled_ref_e, subsampled_model_e) + return results + + +@pytest.fixture +def total_mae(ionization_energies) -> dict[str, float]: + """ + Get mean absolute error for all conmplexes. + + Parameters + ---------- + ionization_energies + Dictionary of reference and predicted energies. + + Returns + ------- + dict[str, float] + Dictionary of predicted energy errors for all models. + """ + results = {} + + for model_name in MODELS: + results[model_name] = mae( + ionization_energies["ref"], ionization_energies[model_name] + ) + return results + + +@pytest.fixture +@build_table( + filename=OUT_PATH / "3dtmv_metrics_table.json", + metric_tooltips=DEFAULT_TOOLTIPS, + thresholds=DEFAULT_THRESHOLDS, + mlip_name_map=D3_MODEL_NAMES, +) +def metrics( + total_mae: dict[str, float], + sr_mae: dict[str, float], + mr_mae: dict[str, float], + sr_mr_mae: dict[str, float], +) -> dict[str, dict]: + """ + Get all metrics. + + Parameters + ---------- + total_mae + Mean absolute errors for all models, all complexes. + sr_mae + Mean absolute errors for all models, single-reference complexes. + mr_mae + Mean absolute errors for all models, multi-reference complexes. + sr_mr_mae + Mean absolute errors for all models, intermediate complexes. + + Returns + ------- + dict[str, dict] + Metric names and values for all models. + """ + return { + "Overall MAE": total_mae, + "SR MAE": sr_mae, + "MR MAE": mr_mae, + "SR/MR MAE": sr_mr_mae, + } + + +def test_3dtmv(metrics: dict[str, dict]) -> None: + """ + Run 3dTMV test. + + Parameters + ---------- + metrics + All new benchmark metric names and dictionary of values for each model. + """ + return diff --git a/ml_peg/analysis/tm_complexes/3dTMV/metrics.yml b/ml_peg/analysis/tm_complexes/3dTMV/metrics.yml new file mode 100644 index 000000000..c0fed546d --- /dev/null +++ b/ml_peg/analysis/tm_complexes/3dTMV/metrics.yml @@ -0,0 +1,25 @@ +metrics: + Overall MAE: + good: 0.0 + bad: 50 + unit: kcal/mol + tooltip: Mean Absolute Error for all systems + level_of_theory: ph-AFQMC + SR MAE: + good: 0.0 + bad: 50 + unit: kcal/mol + tooltip: Mean Absolute Error for the single reference (SR) subset + level_of_theory: ph-AFQMC + MR MAE: + good: 0.0 + bad: 50 + unit: kcal/mol + tooltip: Mean Absolute Error for the multireference (MR) subset + level_of_theory: ph-AFQMC + SR/MR MAE: + good: 0.0 + bad: 50 + unit: kcal/mol + tooltip: Mean Absolute Error for the SR/MR (intermediate category) subset + level_of_theory: ph-AFQMC diff --git a/ml_peg/app/tm_complexes/3dTMV/app_3dTMV.py b/ml_peg/app/tm_complexes/3dTMV/app_3dTMV.py new file mode 100644 index 000000000..af3290b4b --- /dev/null +++ b/ml_peg/app/tm_complexes/3dTMV/app_3dTMV.py @@ -0,0 +1,97 @@ +"""Run 3dTMV barriers app.""" + +from __future__ import annotations + +from dash import Dash +from dash.html import Div + +from ml_peg.app import APP_ROOT +from ml_peg.app.base_app import BaseApp +from ml_peg.app.utils.build_callbacks import ( + plot_from_table_column, + struct_from_scatter, +) +from ml_peg.app.utils.load import read_plot +from ml_peg.models.get_models import get_model_names +from ml_peg.models.models import current_models + +MODELS = get_model_names(current_models) +BENCHMARK_NAME = "3dTMV" +DOCS_URL = ( + "https://ddmms.github.io/ml-peg/user_guide/benchmarks/" + "molecular.html#3dTMV-tm-complexes" +) +DATA_PATH = APP_ROOT / "data" / "tm_complexes" / "3dTMV" + + +class Benchmark3dTMVApp(BaseApp): + """3dTMV benchmark app layout and callbacks.""" + + def register_callbacks(self) -> None: + """Register callbacks to app.""" + scatter = read_plot( + DATA_PATH / "figure_3dtmv.json", + id=f"{BENCHMARK_NAME}-figure", + ) + + model_dir = DATA_PATH / MODELS[0] + if model_dir.exists(): + # Note: sorting different to rxn_count order in calc + ts_files = sorted(model_dir.glob("*.xyz"), key=lambda path: int(path.stem)) + structs = [ + f"assets/tm_complexes/3dTMV/{MODELS[0]}/{ts_file.name}" + for ts_file in ts_files + ] + else: + structs = [] + + plot_from_table_column( + table_id=self.table_id, + plot_id=f"{BENCHMARK_NAME}-figure-placeholder", + column_to_plot={ + "Overall MAE": scatter, + "SR MAE": scatter, + "MR MAE": scatter, + "SR/MR MAE": scatter, + }, + ) + + struct_from_scatter( + scatter_id=f"{BENCHMARK_NAME}-figure", + struct_id=f"{BENCHMARK_NAME}-struct-placeholder", + structs=structs, + mode="struct", + ) + + +def get_app() -> Benchmark3dTMVApp: + """ + Get 3dTMV benchmark app layout and callback registration. + + Returns + ------- + Benchmark3dTMVApp + Benchmark layout and callback registration. + """ + return Benchmark3dTMVApp( + name=BENCHMARK_NAME, + description=( + "Performance in predicting vertical ionization energies for the " + "3dTMV dataset of 28 transition metal complexes." + "Reference data from ph-AFQMC calculations." + ), + docs_url=DOCS_URL, + table_path=DATA_PATH / "3dtmv_metrics_table.json", + extra_components=[ + Div(id=f"{BENCHMARK_NAME}-figure-placeholder"), + Div(id=f"{BENCHMARK_NAME}-struct-placeholder"), + ], + ) + + +if __name__ == "__main__": + full_app = Dash(__name__, assets_folder=DATA_PATH.parent.parent) + benchmark_app = get_app() + full_app.layout = benchmark_app.layout + benchmark_app.register_callbacks() + full_app.run(port=8071, debug=True) diff --git a/ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py b/ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py new file mode 100644 index 000000000..9c7e49413 --- /dev/null +++ b/ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py @@ -0,0 +1,157 @@ +""" +Compute the 3dTMV dataset for transition metal complex vertical ionization energies. + +Journal of Chemical Theory and Computation 2023 19 (18), 6208-6225 +""" + +from __future__ import annotations + +from pathlib import Path +from typing import Any + +from ase import units +from ase.io import read, write +import pytest +from tqdm import tqdm + +from ml_peg.calcs.utils.utils import download_s3_data +from ml_peg.models.get_models import load_models +from ml_peg.models.models import current_models + +MODELS = load_models(current_models) + +KCAL_TO_EV = units.kcal / units.mol + +OUT_PATH = Path(__file__).parent / "outputs" + +# Molecular data from Main Paper Table 1 +MOLECULAR_DATA = { + 1: {"charge_ox": 1, "charge_in": 0, "mult_ox": 2, "mult_in": 1, "subset": "SR"}, + 2: {"charge_ox": 1, "charge_in": 0, "mult_ox": 1, "mult_in": 2, "subset": "SR"}, + 3: {"charge_ox": 1, "charge_in": 0, "mult_ox": 4, "mult_in": 3, "subset": "SR"}, + 4: {"charge_ox": 1, "charge_in": 0, "mult_ox": 2, "mult_in": 1, "subset": "SR"}, + 5: {"charge_ox": 1, "charge_in": 0, "mult_ox": 2, "mult_in": 1, "subset": "SR"}, + 6: {"charge_ox": 2, "charge_in": 1, "mult_ox": 2, "mult_in": 1, "subset": "SR"}, + 7: {"charge_ox": 1, "charge_in": 0, "mult_ox": 2, "mult_in": 1, "subset": "SR"}, + 8: {"charge_ox": 2, "charge_in": 1, "mult_ox": 2, "mult_in": 1, "subset": "SR"}, + 9: {"charge_ox": 2, "charge_in": 1, "mult_ox": 2, "mult_in": 1, "subset": "SR"}, + 10: {"charge_ox": 2, "charge_in": 1, "mult_ox": 2, "mult_in": 1, "subset": "SR"}, + 11: {"charge_ox": 2, "charge_in": 1, "mult_ox": 1, "mult_in": 2, "subset": "SR"}, + 12: {"charge_ox": 2, "charge_in": 1, "mult_ox": 1, "mult_in": 2, "subset": "SR"}, + 13: {"charge_ox": 1, "charge_in": 0, "mult_ox": 1, "mult_in": 2, "subset": "SR/MR"}, + 14: {"charge_ox": 1, "charge_in": 0, "mult_ox": 2, "mult_in": 3, "subset": "SR/MR"}, + 15: {"charge_ox": 1, "charge_in": 0, "mult_ox": 2, "mult_in": 1, "subset": "SR/MR"}, + 16: {"charge_ox": 1, "charge_in": 0, "mult_ox": 2, "mult_in": 1, "subset": "SR/MR"}, + 17: {"charge_ox": 1, "charge_in": 0, "mult_ox": 2, "mult_in": 1, "subset": "SR/MR"}, + 18: {"charge_ox": 1, "charge_in": 0, "mult_ox": 2, "mult_in": 1, "subset": "SR/MR"}, + 19: {"charge_ox": 2, "charge_in": 1, "mult_ox": 2, "mult_in": 1, "subset": "SR/MR"}, + 20: {"charge_ox": 1, "charge_in": 0, "mult_ox": 3, "mult_in": 2, "subset": "SR/MR"}, + 21: {"charge_ox": 1, "charge_in": 0, "mult_ox": 3, "mult_in": 2, "subset": "SR/MR"}, + 22: {"charge_ox": 1, "charge_in": 0, "mult_ox": 2, "mult_in": 1, "subset": "SR/MR"}, + 23: {"charge_ox": 1, "charge_in": 0, "mult_ox": 2, "mult_in": 1, "subset": "MR"}, + 24: {"charge_ox": 1, "charge_in": 0, "mult_ox": 3, "mult_in": 4, "subset": "MR"}, + 25: {"charge_ox": 1, "charge_in": 0, "mult_ox": 3, "mult_in": 6, "subset": "MR"}, + 26: {"charge_ox": 1, "charge_in": 0, "mult_ox": 2, "mult_in": 1, "subset": "MR"}, + 27: {"charge_ox": 0, "charge_in": -1, "mult_ox": 2, "mult_in": 3, "subset": "MR"}, + 28: {"charge_ox": 0, "charge_in": -1, "mult_ox": 1, "mult_in": 2, "subset": "MR"}, +} + +# ph-AFQMC reference IPs from SM Table S9 (kcal/mol) +REFERENCE_IES = { + # SR subset (1-12) + 1: 188.4, + 2: 158.3, + 3: 119.6, + 4: 152.3, + 5: 142.2, + 6: 315.9, + 7: 191.1, + 8: 259.6, + 9: 276.2, + 10: 284.1, + 11: 198.5, + 12: 230.3, + # SR/MR subset (13-22) + 13: 120.9, + 14: 148.1, + 15: 140.4, + 16: 164.1, + 17: 130.9, + 18: 136.3, + 19: 300.7, + 20: 186.4, + 21: 125.3, + 22: 161.2, + # MR subset (23-28) + 23: 198.9, + 24: 166.0, + 25: 215.8, + 26: 192.9, + 27: 68.6, + 28: 43.6, +} + + +def get_atoms(data_path, complex_id: int): + """ + Get the atoms object with charge and spin. + + Parameters + ---------- + data_path + Path to the data. + complex_id + Identifier of the complex, from 1 to 28. + + Returns + ------- + Atoms + Atoms object of the system. + """ + return read(data_path / str(complex_id) / "struc.xyz") + + +@pytest.mark.parametrize("mlip", MODELS.items()) +def test_3dtmv(mlip: tuple[str, Any]) -> None: + """ + Run 3dTMV benchmark. + + Parameters + ---------- + mlip + Name of model use and model to get calculator. + """ + model_name, model = mlip + + data_path = ( + download_s3_data( + filename="3dTMV.zip", + key="inputs/tm_complexes/3dTMV/3dTMV.zip", + ) + / "3dTMV" + ) + for complex_id in tqdm(range(1, 29)): + atoms = get_atoms(data_path, complex_id) + atoms_ox = atoms.copy() + atoms_ox.info["charge"] = MOLECULAR_DATA[complex_id]["charge_ox"] + atoms_ox.info["spin"] = MOLECULAR_DATA[complex_id]["mult_ox"] + atoms_ox.calc = model.add_d3_calculator(model.get_calculator()) + oxidized_energy = atoms_ox.get_potential_energy() + + atoms_in = atoms.copy() + atoms_in.info["charge"] = MOLECULAR_DATA[complex_id]["charge_in"] + atoms_in.info["spin"] = MOLECULAR_DATA[complex_id]["mult_in"] + atoms_in.calc = model.add_d3_calculator(model.get_calculator()) + initial_energy = atoms_in.get_potential_energy() + + model_ion_energy = oxidized_energy - initial_energy + + atoms.info.update( + { + "model_ionization_energy": model_ion_energy, + "ref_ionization_energy": REFERENCE_IES[complex_id] * KCAL_TO_EV, + } + ) + write_dir = OUT_PATH / model_name + write_dir.mkdir(parents=True, exist_ok=True) + write(write_dir / f"{complex_id}.xyz", atoms) From 9273e629227428287a1eebcd878a4c394e10bf16 Mon Sep 17 00:00:00 2001 From: Elliott Kasoar <45317199+ElliottKasoar@users.noreply.github.com> Date: Tue, 3 Mar 2026 22:43:48 +0000 Subject: [PATCH 06/27] Update MACE (#398) --- pyproject.toml | 2 +- uv.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b4dd09055..d9ff60e98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ grace = [ "tensorpotential == 0.5.1; python_version < '3.13'", ] mace = [ - "mace-torch==0.3.14", + "mace-torch==0.3.15", ] mattersim = [ diff --git a/uv.lock b/uv.lock index bff4c60b7..fe9123429 100644 --- a/uv.lock +++ b/uv.lock @@ -4724,7 +4724,7 @@ wheels = [ [[package]] name = "mace-torch" -version = "0.3.14" +version = "0.3.15" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "ase" }, @@ -4749,9 +4749,9 @@ dependencies = [ { name = "torchmetrics" }, { name = "tqdm" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/c2/c5/41fcb72b386e4b864501430ca2075f0797a5915adca3c0f3022a20427d1a/mace_torch-0.3.14.tar.gz", hash = "sha256:7e05372b50b5ee3da2973d7da860bde0facbc0934bb672af264af303d3596d05", size = 206925, upload-time = "2025-08-06T17:30:15.272Z" } +sdist = { url = "https://files.pythonhosted.org/packages/2c/a7/2a60120b15eca67d153e6b5a40cb4b70e4bbe00b9504df2c82a6cf38fda3/mace_torch-0.3.15.tar.gz", hash = "sha256:23f9bd7521db56ce91586c110089bdbd79ffd2475fec8fea2cae4780be495049", size = 230748, upload-time = "2026-02-22T23:35:03.411Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/c6/53/7d7b1de354a43e11cb19b370f81833f078f931aff4555b24e869013eea1a/mace_torch-0.3.14-py3-none-any.whl", hash = "sha256:9a7a00a79b3fa3448a13961e2a4af616ff10466fa193aeb4579dc83be9da1b00", size = 237087, upload-time = "2025-08-06T17:30:11.377Z" }, + { url = "https://files.pythonhosted.org/packages/01/6d/d5b578dce5c995ce8c9cbeb53871331e575a09bf11ca4739fac770665b6e/mace_torch-0.3.15-py3-none-any.whl", hash = "sha256:9e38df131667f4abdb3c0ab7b77927f217886cbca68c417dcc985465c4b9a53c", size = 264276, upload-time = "2026-02-22T23:35:01.73Z" }, ] [[package]] @@ -6077,7 +6077,7 @@ requires-dist = [ { name = "fairchem-core", marker = "extra == 'uma'", specifier = "==2.10.0" }, { name = "janus-core", specifier = ">=0.8.2,<1.0.0" }, { name = "kaleido", specifier = ">=1.0.0" }, - { name = "mace-torch", marker = "extra == 'mace'", specifier = "==0.3.14" }, + { name = "mace-torch", marker = "extra == 'mace'", specifier = "==0.3.15" }, { name = "matcalc" }, { name = "matminer" }, { name = "mattersim", marker = "extra == 'mattersim'", specifier = "==1.2.0" }, From 64a07baaa82de6451230cfe218cc5bf7cd101d5d Mon Sep 17 00:00:00 2001 From: Elliott Kasoar <45317199+ElliottKasoar@users.noreply.github.com> Date: Tue, 3 Mar 2026 22:44:20 +0000 Subject: [PATCH 07/27] Tidy 3dTMV benchmark (#399) --- ml_peg/analysis/tm_complexes/3dTMV/analyse_3dTMV.py | 1 + ml_peg/analysis/tm_complexes/3dTMV/metrics.yml | 4 ++++ ml_peg/app/tm_complexes/3dTMV/app_3dTMV.py | 5 +---- ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py | 8 ++++++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ml_peg/analysis/tm_complexes/3dTMV/analyse_3dTMV.py b/ml_peg/analysis/tm_complexes/3dTMV/analyse_3dTMV.py index ddd6e2db8..304d488f8 100644 --- a/ml_peg/analysis/tm_complexes/3dTMV/analyse_3dTMV.py +++ b/ml_peg/analysis/tm_complexes/3dTMV/analyse_3dTMV.py @@ -236,6 +236,7 @@ def total_mae(ionization_energies) -> dict[str, float]: metric_tooltips=DEFAULT_TOOLTIPS, thresholds=DEFAULT_THRESHOLDS, mlip_name_map=D3_MODEL_NAMES, + weights=DEFAULT_WEIGHTS, ) def metrics( total_mae: dict[str, float], diff --git a/ml_peg/analysis/tm_complexes/3dTMV/metrics.yml b/ml_peg/analysis/tm_complexes/3dTMV/metrics.yml index c0fed546d..0d7ba50b3 100644 --- a/ml_peg/analysis/tm_complexes/3dTMV/metrics.yml +++ b/ml_peg/analysis/tm_complexes/3dTMV/metrics.yml @@ -5,21 +5,25 @@ metrics: unit: kcal/mol tooltip: Mean Absolute Error for all systems level_of_theory: ph-AFQMC + weight: 1 SR MAE: good: 0.0 bad: 50 unit: kcal/mol tooltip: Mean Absolute Error for the single reference (SR) subset level_of_theory: ph-AFQMC + weight: 0 MR MAE: good: 0.0 bad: 50 unit: kcal/mol tooltip: Mean Absolute Error for the multireference (MR) subset level_of_theory: ph-AFQMC + weight: 0 SR/MR MAE: good: 0.0 bad: 50 unit: kcal/mol tooltip: Mean Absolute Error for the SR/MR (intermediate category) subset level_of_theory: ph-AFQMC + weight: 0 diff --git a/ml_peg/app/tm_complexes/3dTMV/app_3dTMV.py b/ml_peg/app/tm_complexes/3dTMV/app_3dTMV.py index af3290b4b..2ac3a0fb8 100644 --- a/ml_peg/app/tm_complexes/3dTMV/app_3dTMV.py +++ b/ml_peg/app/tm_complexes/3dTMV/app_3dTMV.py @@ -17,10 +17,7 @@ MODELS = get_model_names(current_models) BENCHMARK_NAME = "3dTMV" -DOCS_URL = ( - "https://ddmms.github.io/ml-peg/user_guide/benchmarks/" - "molecular.html#3dTMV-tm-complexes" -) +DOCS_URL = "https://ddmms.github.io/ml-peg/user_guide/benchmarks/tm_complexes.html#dtmv" DATA_PATH = APP_ROOT / "data" / "tm_complexes" / "3dTMV" diff --git a/ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py b/ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py index 9c7e49413..88c8d34a7 100644 --- a/ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py +++ b/ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py @@ -6,6 +6,7 @@ from __future__ import annotations +from copy import copy from pathlib import Path from typing import Any @@ -122,6 +123,9 @@ def test_3dtmv(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -135,13 +139,13 @@ def test_3dtmv(mlip: tuple[str, Any]) -> None: atoms_ox = atoms.copy() atoms_ox.info["charge"] = MOLECULAR_DATA[complex_id]["charge_ox"] atoms_ox.info["spin"] = MOLECULAR_DATA[complex_id]["mult_ox"] - atoms_ox.calc = model.add_d3_calculator(model.get_calculator()) + atoms_ox.calc = copy(calc) oxidized_energy = atoms_ox.get_potential_energy() atoms_in = atoms.copy() atoms_in.info["charge"] = MOLECULAR_DATA[complex_id]["charge_in"] atoms_in.info["spin"] = MOLECULAR_DATA[complex_id]["mult_in"] - atoms_in.calc = model.add_d3_calculator(model.get_calculator()) + atoms_in.calc = copy(calc) initial_energy = atoms_in.get_potential_energy() model_ion_energy = oxidized_energy - initial_energy From cb849a59f3585108ba3dacdcbe80d10d1e676413 Mon Sep 17 00:00:00 2001 From: Elliott Kasoar <45317199+ElliottKasoar@users.noreply.github.com> Date: Tue, 3 Mar 2026 22:44:35 +0000 Subject: [PATCH 08/27] Fix setting MACE default dtype (#400) --- ml_peg/models/get_models.py | 97 +++++++++++++++++++------------------ 1 file changed, 49 insertions(+), 48 deletions(-) diff --git a/ml_peg/models/get_models.py b/ml_peg/models/get_models.py index 523fa7aaf..a2c441eac 100644 --- a/ml_peg/models/get_models.py +++ b/ml_peg/models/get_models.py @@ -108,54 +108,55 @@ def load_models(models: None | str | Iterable = None) -> dict[str, Any]: for name, cfg in get_subset(all_models, models).items(): print(f"Loading model from models.yml: {name}") - if cfg["class_name"] == "FAIRChemCalculator": - kwargs = cfg.get("kwargs", {}) - loaded_models[name] = FairChemCalc( - model_name=kwargs["model_name"], - task_name=kwargs.get("task_name", "omat"), - device=cfg.get("device", "cpu"), - overrides=kwargs.get("overrides", {}), - trained_on_d3=cfg.get("trained_on_d3", False), - d3_kwargs=cfg.get("d3_kwargs", {}), - ) - elif cfg["class_name"] == "OrbCalc": - kwargs = cfg.get("kwargs", {}) - loaded_models[name] = OrbCalc( - name=kwargs["name"], - device=cfg.get("device", "cpu"), - default_dtype=cfg.get("default_dtype", "float32"), - trained_on_d3=cfg.get("trained_on_d3", False), - d3_kwargs=cfg.get("d3_kwargs", {}), - ) - elif cfg["class_name"] == "mace_mp": - loaded_models[name] = GenericASECalc( - module=cfg["module"], - class_name=cfg["class_name"], - device=cfg.get("device", "auto"), - default_dtype=cfg.get("default_dtype", "float32"), - kwargs=cfg.get("kwargs", {}), - trained_on_d3=cfg.get("trained_on_d3", False), - d3_kwargs=cfg.get("d3_kwargs", {}), - ) - elif cfg["class_name"] == "PETMADCalculator": - loaded_models[name] = PetMadCalc( - module=cfg["module"], - class_name=cfg["class_name"], - device=cfg.get("device", "cpu"), - default_dtype=cfg.get("default_dtype", "float32"), - kwargs=cfg.get("kwargs", {}), - trained_on_d3=cfg.get("trained_on_d3", False), - d3_kwargs=cfg.get("d3_kwargs", {}), - ) - else: - loaded_models[name] = GenericASECalc( - module=cfg["module"], - class_name=cfg["class_name"], - device=cfg.get("device", "auto"), - kwargs=cfg.get("kwargs", {}), - trained_on_d3=cfg.get("trained_on_d3", False), - d3_kwargs=cfg.get("d3_kwargs", {}), - ) + match cfg["class_name"]: + case "FAIRChemCalculator": + kwargs = cfg.get("kwargs", {}) + loaded_models[name] = FairChemCalc( + model_name=kwargs["model_name"], + task_name=kwargs.get("task_name", "omat"), + device=cfg.get("device", "cpu"), + overrides=kwargs.get("overrides", {}), + trained_on_d3=cfg.get("trained_on_d3", False), + d3_kwargs=cfg.get("d3_kwargs", {}), + ) + case "OrbCalc": + kwargs = cfg.get("kwargs", {}) + loaded_models[name] = OrbCalc( + name=kwargs["name"], + device=cfg.get("device", "cpu"), + default_dtype=cfg.get("default_dtype", "float32"), + trained_on_d3=cfg.get("trained_on_d3", False), + d3_kwargs=cfg.get("d3_kwargs", {}), + ) + case "mace" | "mace_mp" | "mace_off" | "mace_omol" | "mace_polar": + loaded_models[name] = GenericASECalc( + module=cfg["module"], + class_name=cfg["class_name"], + device=cfg.get("device", "auto"), + default_dtype=cfg.get("default_dtype", "float32"), + kwargs=cfg.get("kwargs", {}), + trained_on_d3=cfg.get("trained_on_d3", False), + d3_kwargs=cfg.get("d3_kwargs", {}), + ) + case "PETMADCalculator": + loaded_models[name] = PetMadCalc( + module=cfg["module"], + class_name=cfg["class_name"], + device=cfg.get("device", "cpu"), + default_dtype=cfg.get("default_dtype", "float32"), + kwargs=cfg.get("kwargs", {}), + trained_on_d3=cfg.get("trained_on_d3", False), + d3_kwargs=cfg.get("d3_kwargs", {}), + ) + case _: + loaded_models[name] = GenericASECalc( + module=cfg["module"], + class_name=cfg["class_name"], + device=cfg.get("device", "auto"), + kwargs=cfg.get("kwargs", {}), + trained_on_d3=cfg.get("trained_on_d3", False), + d3_kwargs=cfg.get("d3_kwargs", {}), + ) return loaded_models From 58c07d9c841d3d50f3f31038aac32b181255ef6c Mon Sep 17 00:00:00 2001 From: Elliott Kasoar <45317199+ElliottKasoar@users.noreply.github.com> Date: Tue, 3 Mar 2026 22:45:05 +0000 Subject: [PATCH 09/27] Add mace-polar models (#401) --- ml_peg/models/models.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/ml_peg/models/models.yml b/ml_peg/models/models.yml index c230bbee5..ce83dd31f 100644 --- a/ml_peg/models/models.yml +++ b/ml_peg/models/models.yml @@ -180,3 +180,33 @@ pet-mad: version: "v1.0.2" d3_kwargs: xc: pbesol + +# mace-polar-1-s: +# module: mace.calculators +# class_name: mace_polar +# device: "cpu" +# default_dtype: float32 +# trained_on_d3: true +# level_of_theory: ωB97M-V +# kwargs: +# model: "polar-1-s" + +# mace-polar-1-m: +# module: mace.calculators +# class_name: mace_polar +# device: "cpu" +# default_dtype: float32 +# trained_on_d3: true +# level_of_theory: ωB97M-V +# kwargs: +# model: "polar-1-m" + +# mace-polar-1-l: +# module: mace.calculators +# class_name: mace_polar +# device: "cpu" +# default_dtype: float32 +# trained_on_d3: true +# level_of_theory: ωB97M-V +# kwargs: +# model: "polar-1-l" From 1e97659d098f230749f65fe03b4a5606de036838 Mon Sep 17 00:00:00 2001 From: ElliottKasoar <45317199+ElliottKasoar@users.noreply.github.com> Date: Wed, 4 Mar 2026 01:25:05 +0000 Subject: [PATCH 10/27] Bump version for release 0.3.1 --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d9ff60e98..48e5e6ae8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ml-peg" -version = "0.3.0" +version = "0.3.1" description = "ML Performance and Extrapolation Guide" authors = [ { name = "Elliott Kasoar" }, diff --git a/uv.lock b/uv.lock index fe9123429..b7f7f422a 100644 --- a/uv.lock +++ b/uv.lock @@ -5989,7 +5989,7 @@ wheels = [ [[package]] name = "ml-peg" -version = "0.3.0" +version = "0.3.1" source = { editable = "." } dependencies = [ { name = "boto3" }, From ee54957e2da776d5c54b6c5beaf40c64b64f6d57 Mon Sep 17 00:00:00 2001 From: Fabian Zills <46721498+PythonFZ@users.noreply.github.com> Date: Wed, 4 Mar 2026 17:25:40 +0100 Subject: [PATCH 11/27] Add BMIM Cl bond formation benchmark (#334) --- .../user_guide/benchmarks/molecular.rst | 50 +++ .../BMIMCl_RDF/analyse_BMIMCl_RDF.py | 199 +++++++++ .../analysis/molecular/BMIMCl_RDF/metrics.yml | 7 + .../molecular/BMIMCl_RDF/app_BMIMCl_RDF.py | 66 +++ .../molecular/BMIMCl_RDF/calc_BMIMCl_RDF.py | 82 ++++ pyproject.toml | 1 + uv.lock | 394 +++++++++++------- 7 files changed, 645 insertions(+), 154 deletions(-) create mode 100644 ml_peg/analysis/molecular/BMIMCl_RDF/analyse_BMIMCl_RDF.py create mode 100644 ml_peg/analysis/molecular/BMIMCl_RDF/metrics.yml create mode 100644 ml_peg/app/molecular/BMIMCl_RDF/app_BMIMCl_RDF.py create mode 100644 ml_peg/calcs/molecular/BMIMCl_RDF/calc_BMIMCl_RDF.py diff --git a/docs/source/user_guide/benchmarks/molecular.rst b/docs/source/user_guide/benchmarks/molecular.rst index 21460d29c..7b1857d9e 100644 --- a/docs/source/user_guide/benchmarks/molecular.rst +++ b/docs/source/user_guide/benchmarks/molecular.rst @@ -124,3 +124,53 @@ Reference data: * Same as input data * DLPNO-CCSD(T)/CBS + + +BMIM Cl RDF +=========== + +Summary +------- + +Tests whether MLIPs incorrectly predict covalent bond formation between chloride +anions (Cl⁻) and carbon atoms in 1-butyl-3-methylimidazolium (BMIM⁺) cations. +Such Cl-C bonds should NOT form in the ionic liquid under normal conditions. + +This benchmark runs NVT molecular dynamics simulations of BMIM Cl at +353.15 K and analyses the Cl-C RDF to detect any unphysical bond formation. + + +Metrics +------- + +1. Cl-C Bonds Formed + +Binary metric indicating whether unphysical Cl-C bonds formed during the MD simulation. + +The Cl-C RDF is computed from the MD trajectory. If the RDF shows a peak (g(r) > 0.1) +at distances below 2.5 Å, this indicates bond formation and the model fails the test. + +* 0 = no bonds formed (correct physical behaviour) +* 1 = bonds formed (unphysical, model failure) + + +Computational cost +------------------ + +Medium: tests require running 10,000 steps of Langevin MD for a system of 10 ion +pairs, which may take tens of minutes on GPU. + + +Data availability +----------------- + +Input structures: + +* Generated using molify from SMILES representations of BMIM⁺ (CCCCN1C=C[N+](=C1)C) + and Cl⁻ ions, packed to experimental density of 1052 kg/m³ at 353.15 K. +* Zills, F. molify: Molecular Structure Interface. Journal of Open Source Software + 10, 8829 (2025). https://doi.org/10.21105/joss.08829 +* Density from: Yang, F., Wang, D., Wang, X. & Liu, Z. Volumetric Properties of + Binary and Ternary Mixtures of Bis(2-hydroxyethyl)ammonium Acetate with Methanol, + N,N-Dimethylformamide, and Water at Several Temperatures. J. Chem. Eng. Data 62, + 3958-3966 (2017). https://doi.org/10.1021/acs.jced.7b00654 diff --git a/ml_peg/analysis/molecular/BMIMCl_RDF/analyse_BMIMCl_RDF.py b/ml_peg/analysis/molecular/BMIMCl_RDF/analyse_BMIMCl_RDF.py new file mode 100644 index 000000000..1831dcad5 --- /dev/null +++ b/ml_peg/analysis/molecular/BMIMCl_RDF/analyse_BMIMCl_RDF.py @@ -0,0 +1,199 @@ +"""Analyse BMIMCl RDF benchmark for unphysical Cl-C bond formation.""" + +from __future__ import annotations + +from pathlib import Path + +from ase.data import atomic_numbers +from ase.geometry.rdf import get_rdf +import ase.io as aio +import numpy as np +import pytest +from tqdm import tqdm + +from ml_peg.analysis.utils.decorators import build_table, plot_scatter +from ml_peg.analysis.utils.utils import load_metrics_config +from ml_peg.app import APP_ROOT +from ml_peg.calcs import CALCS_ROOT +from ml_peg.models.get_models import get_model_names +from ml_peg.models.models import current_models + +MODELS = get_model_names(current_models) +CALC_PATH = CALCS_ROOT / "molecular" / "BMIMCl_RDF" / "outputs" +OUT_PATH = APP_ROOT / "data" / "molecular" / "BMIMCl_RDF" + +METRICS_CONFIG_PATH = Path(__file__).with_name("metrics.yml") +DEFAULT_THRESHOLDS, DEFAULT_TOOLTIPS, DEFAULT_WEIGHTS = load_metrics_config( + METRICS_CONFIG_PATH +) + +# RDF parameters +ELEMENT1 = "Cl" +ELEMENT2 = "C" +Z1 = atomic_numbers[ELEMENT1] +Z2 = atomic_numbers[ELEMENT2] +BINS_PER_ANG = 50 +UNPHYSICAL_CUTOFF = 2.5 +# Angstrom - any Cl-C closer than this indicates +# a bond which should not be there +PEAK_THRESHOLD = 0.1 # g(r) threshold for bond detection + + +def compute_rdf_from_trajectory(traj_path: Path) -> tuple[np.ndarray, np.ndarray]: + """ + Compute Cl-C RDF from MD trajectory. + + Parameters + ---------- + traj_path + Path to trajectory xyz file. + + Returns + ------- + tuple[np.ndarray, np.ndarray] + (r, rdf) arrays - distances and averaged g(r) values. + """ + images = aio.read(traj_path, index=":") + + # Infer rmax from cell (NVT) + cell_lengths = images[0].cell.lengths() + rmax = min(cell_lengths) / 2 - 0.01 + nbins = int(rmax * BINS_PER_ANG) + + # Compute RDFs with progress bar + rdfs = [] + r = None + for atoms in tqdm(images, desc="Computing RDF"): + rdf_frame, distances = get_rdf( + atoms, rmax, nbins, elements=(Z1, Z2), no_dists=False + ) + rdfs.append(rdf_frame) + if r is None: + r = distances + + rdf = np.mean(rdfs, axis=0) + + return r, rdf + + +def check_bond_formation(r: np.ndarray, rdf: np.ndarray) -> int: + """ + Check if Cl-C bonds formed based on RDF. + + Parameters + ---------- + r + Distance array. + rdf + The g(r) values. + + Returns + ------- + int + 1 if bonds formed (bad), 0 if no bonds (good). + """ + mask = r < UNPHYSICAL_CUTOFF + max_gr = rdf[mask].max() if mask.any() else 0.0 + return 1 if max_gr > PEAK_THRESHOLD else 0 + + +@pytest.fixture +@plot_scatter( + title="Cl-C Radial Distribution Function", + x_label="r / Å", + y_label="g(r)", + show_line=True, + filename=str(OUT_PATH / "figure_rdf.json"), +) +def rdf_data() -> dict[str, list]: + """ + Compute RDF for all models. + + Returns + ------- + dict[str, list] + Dictionary mapping model names to [r, g(r)] arrays. + """ + results = {} + + OUT_PATH.mkdir(parents=True, exist_ok=True) + + for model_name in MODELS: + traj_path = CALC_PATH / model_name / "md.xyz" + if not traj_path.exists(): + continue + + r, rdf = compute_rdf_from_trajectory(traj_path) + results[model_name] = [r.tolist(), rdf.tolist()] + + rdf_out = OUT_PATH / model_name + rdf_out.mkdir(parents=True, exist_ok=True) + np.savetxt( + rdf_out / "rdf.dat", + np.column_stack([r, rdf]), + header="r/A g(r)", + fmt="%.6f", + ) + + return results + + +@pytest.fixture +def bond_formation(rdf_data: dict[str, list]) -> dict[str, int]: + """ + Check bond formation for all models. + + Parameters + ---------- + rdf_data + Dictionary of RDF data per model. + + Returns + ------- + dict[str, int] + Dictionary mapping model names to bond formation flag (0 or 1). + """ + results = {} + for model_name, (r, rdf) in rdf_data.items(): + r_arr = np.array(r) + rdf_arr = np.array(rdf) + results[model_name] = check_bond_formation(r_arr, rdf_arr) + return results + + +@pytest.fixture +@build_table( + filename=str(OUT_PATH / "bmimcl_metrics_table.json"), + metric_tooltips=DEFAULT_TOOLTIPS, + thresholds=DEFAULT_THRESHOLDS, + weights=DEFAULT_WEIGHTS, +) +def metrics(bond_formation: dict[str, int]) -> dict[str, dict]: + """ + Build metrics table. + + Parameters + ---------- + bond_formation + Bond formation flags per model. + + Returns + ------- + dict[str, dict] + Metrics dictionary for table building. + """ + return { + "Cl-C Bonds Formed": bond_formation, + } + + +def test_bmimcl_rdf(metrics: dict[str, dict]) -> None: + """ + Run BMIMCl RDF analysis. + + Parameters + ---------- + metrics + Benchmark metrics generated by fixtures. + """ + return diff --git a/ml_peg/analysis/molecular/BMIMCl_RDF/metrics.yml b/ml_peg/analysis/molecular/BMIMCl_RDF/metrics.yml new file mode 100644 index 000000000..75df3aab6 --- /dev/null +++ b/ml_peg/analysis/molecular/BMIMCl_RDF/metrics.yml @@ -0,0 +1,7 @@ +metrics: + Cl-C Bonds Formed: + good: 0.0 + bad: 1.0 + unit: null + tooltip: "Whether Cl-C bonds formed (g(r) > 0.1 for r < 2.5 A). 0 = no bonds (correct), 1 = bonds formed (wrong)." + weight: 1.0 diff --git a/ml_peg/app/molecular/BMIMCl_RDF/app_BMIMCl_RDF.py b/ml_peg/app/molecular/BMIMCl_RDF/app_BMIMCl_RDF.py new file mode 100644 index 000000000..c8dbc5c06 --- /dev/null +++ b/ml_peg/app/molecular/BMIMCl_RDF/app_BMIMCl_RDF.py @@ -0,0 +1,66 @@ +"""Run BMIMCl RDF benchmark app.""" + +from __future__ import annotations + +from dash import Dash +from dash.html import Div + +from ml_peg.app import APP_ROOT +from ml_peg.app.base_app import BaseApp +from ml_peg.app.utils.build_callbacks import plot_from_table_column +from ml_peg.app.utils.load import read_plot + +BENCHMARK_NAME = "BMIMCl Cl-C RDF" +DOCS_URL = ( + "https://ddmms.github.io/ml-peg/user_guide/benchmarks/molecular.html#bmimcl-rdf" +) +DATA_PATH = APP_ROOT / "data" / "molecular" / "BMIMCl_RDF" + + +class BMIMClRDFApp(BaseApp): + """BMIMCl RDF benchmark app layout and callbacks.""" + + def register_callbacks(self) -> None: + """Register callbacks to app.""" + rdf_plot = read_plot( + DATA_PATH / "figure_rdf.json", + id=f"{BENCHMARK_NAME}-figure", + ) + + plot_from_table_column( + table_id=self.table_id, + plot_id=f"{BENCHMARK_NAME}-figure-placeholder", + column_to_plot={"Cl-C Bonds Formed": rdf_plot}, + ) + + +def get_app() -> BMIMClRDFApp: + """ + Get BMIMCl RDF benchmark app layout and callback registration. + + Returns + ------- + BMIMClRDFApp + Benchmark layout and callback registration. + """ + return BMIMClRDFApp( + name=BENCHMARK_NAME, + description=( + "Tests whether MLIPs incorrectly predict Cl-C bond formation " + "in BMIMCl ionic liquid. Bonds should NOT form." + ), + docs_url=DOCS_URL, + table_path=DATA_PATH / "bmimcl_metrics_table.json", + extra_components=[ + Div(id=f"{BENCHMARK_NAME}-figure-placeholder"), + ], + ) + + +if __name__ == "__main__": + full_app = Dash(__name__, assets_folder=DATA_PATH.parent.parent) + bmimcl_app = get_app() + full_app.layout = bmimcl_app.layout + bmimcl_app.register_callbacks() + + full_app.run(port=8054, debug=True) diff --git a/ml_peg/calcs/molecular/BMIMCl_RDF/calc_BMIMCl_RDF.py b/ml_peg/calcs/molecular/BMIMCl_RDF/calc_BMIMCl_RDF.py new file mode 100644 index 000000000..3bffef75c --- /dev/null +++ b/ml_peg/calcs/molecular/BMIMCl_RDF/calc_BMIMCl_RDF.py @@ -0,0 +1,82 @@ +""" +Run MD simulation of BMIMCl ionic liquid to test for unphysical Cl-C bond formation. + +This benchmark tests whether MLIPs incorrectly predict covalent bond formation +between chloride anions and carbon atoms in BMIM cations. Such bonds should NOT +form in ionic liquids at normal conditions. +""" + +from __future__ import annotations + +from pathlib import Path +from typing import Any + +from ase import units +from ase.io import write +from ase.md.langevin import Langevin +from ase.md.velocitydistribution import MaxwellBoltzmannDistribution +from ase.optimize import LBFGS +import molify +import pytest +from tqdm import tqdm + +from ml_peg.models.get_models import load_models +from ml_peg.models.models import current_models + +MODELS = load_models(current_models) + +OUT_PATH = Path(__file__).parent / "outputs" + +# MD parameters +# Density from https://pubs.acs.org/doi/full/10.1021/acs.jced.7b00654 at 353.15 K +TEMPERATURE = 353.15 +STEPS = 10_000 +TIMESTEP = 0.5 # fs +FRICTION = 0.01 +N_ION_PAIRS = 10 +DENSITY = 1052 # kg/m³ at 353.15 K + + +@pytest.mark.parametrize("mlip", MODELS.items()) +def test_bmimcl_md(mlip: tuple[str, Any]) -> None: + """ + Run NVT MD simulation of BMIMCl ionic liquid. + + Parameters + ---------- + mlip + Name of model and model to get calculator. + """ + model_name, model = mlip + calc = model.get_calculator() + + bmim = molify.smiles2atoms("CCCCN1C=C[N+](=C1)C") + cl = molify.smiles2atoms("[Cl-]") + ion_pair = molify.pack(data=[[bmim], [cl]], counts=[1, 1], density=900) + box = molify.pack(data=[[ion_pair]], counts=[N_ION_PAIRS], density=DENSITY) + box.info["charge"] = 0 + box.info["spin"] = 1 + box.calc = calc + + opt = LBFGS(box) + opt.run(fmax=0.1) + + MaxwellBoltzmannDistribution(box, temperature_K=TEMPERATURE) + + dyn = Langevin( + box, + timestep=TIMESTEP * units.fs, + temperature_K=TEMPERATURE, + friction=FRICTION / units.fs, + ) + + write_dir = OUT_PATH / model_name + write_dir.mkdir(parents=True, exist_ok=True) + traj_file = write_dir / "md.xyz" + + if traj_file.exists(): + traj_file.unlink() + + for _ in tqdm(range(STEPS), desc=f"{model_name} MD"): + dyn.run(1) + write(traj_file, box, append=True) diff --git a/pyproject.toml b/pyproject.toml index 48e5e6ae8..e631180c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,7 @@ dependencies = [ "MDAnalysis", "openpyxl", "tqdm", + "molify>=0.2.2", ] [project.optional-dependencies] diff --git a/uv.lock b/uv.lock index b7f7f422a..4324ccaac 100644 --- a/uv.lock +++ b/uv.lock @@ -1828,62 +1828,67 @@ toml = [ [[package]] name = "cryptography" -version = "46.0.5" +version = "46.0.3" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "cffi", marker = "platform_python_implementation != 'PyPy' or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-uma') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-uma')" }, { name = "typing-extensions", marker = "python_full_version < '3.11' or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-uma') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-uma')" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/60/04/ee2a9e8542e4fa2773b81771ff8349ff19cdd56b7258a0cc442639052edb/cryptography-46.0.5.tar.gz", hash = "sha256:abace499247268e3757271b2f1e244b36b06f8515cf27c4d49468fc9eb16e93d", size = 750064, upload-time = "2026-02-10T19:18:38.255Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/f7/81/b0bb27f2ba931a65409c6b8a8b358a7f03c0e46eceacddff55f7c84b1f3b/cryptography-46.0.5-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:351695ada9ea9618b3500b490ad54c739860883df6c1f555e088eaf25b1bbaad", size = 7176289, upload-time = "2026-02-10T19:17:08.274Z" }, - { url = "https://files.pythonhosted.org/packages/ff/9e/6b4397a3e3d15123de3b1806ef342522393d50736c13b20ec4c9ea6693a6/cryptography-46.0.5-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c18ff11e86df2e28854939acde2d003f7984f721eba450b56a200ad90eeb0e6b", size = 4275637, upload-time = "2026-02-10T19:17:10.53Z" }, - { url = "https://files.pythonhosted.org/packages/63/e7/471ab61099a3920b0c77852ea3f0ea611c9702f651600397ac567848b897/cryptography-46.0.5-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4d7e3d356b8cd4ea5aff04f129d5f66ebdc7b6f8eae802b93739ed520c47c79b", size = 4424742, upload-time = "2026-02-10T19:17:12.388Z" }, - { url = "https://files.pythonhosted.org/packages/37/53/a18500f270342d66bf7e4d9f091114e31e5ee9e7375a5aba2e85a91e0044/cryptography-46.0.5-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:50bfb6925eff619c9c023b967d5b77a54e04256c4281b0e21336a130cd7fc263", size = 4277528, upload-time = "2026-02-10T19:17:13.853Z" }, - { url = "https://files.pythonhosted.org/packages/22/29/c2e812ebc38c57b40e7c583895e73c8c5adb4d1e4a0cc4c5a4fdab2b1acc/cryptography-46.0.5-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:803812e111e75d1aa73690d2facc295eaefd4439be1023fefc4995eaea2af90d", size = 4947993, upload-time = "2026-02-10T19:17:15.618Z" }, - { url = "https://files.pythonhosted.org/packages/6b/e7/237155ae19a9023de7e30ec64e5d99a9431a567407ac21170a046d22a5a3/cryptography-46.0.5-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:3ee190460e2fbe447175cda91b88b84ae8322a104fc27766ad09428754a618ed", size = 4456855, upload-time = "2026-02-10T19:17:17.221Z" }, - { url = "https://files.pythonhosted.org/packages/2d/87/fc628a7ad85b81206738abbd213b07702bcbdada1dd43f72236ef3cffbb5/cryptography-46.0.5-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:f145bba11b878005c496e93e257c1e88f154d278d2638e6450d17e0f31e558d2", size = 3984635, upload-time = "2026-02-10T19:17:18.792Z" }, - { url = "https://files.pythonhosted.org/packages/84/29/65b55622bde135aedf4565dc509d99b560ee4095e56989e815f8fd2aa910/cryptography-46.0.5-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:e9251e3be159d1020c4030bd2e5f84d6a43fe54b6c19c12f51cde9542a2817b2", size = 4277038, upload-time = "2026-02-10T19:17:20.256Z" }, - { url = "https://files.pythonhosted.org/packages/bc/36/45e76c68d7311432741faf1fbf7fac8a196a0a735ca21f504c75d37e2558/cryptography-46.0.5-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:47fb8a66058b80e509c47118ef8a75d14c455e81ac369050f20ba0d23e77fee0", size = 4912181, upload-time = "2026-02-10T19:17:21.825Z" }, - { url = "https://files.pythonhosted.org/packages/6d/1a/c1ba8fead184d6e3d5afcf03d569acac5ad063f3ac9fb7258af158f7e378/cryptography-46.0.5-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:4c3341037c136030cb46e4b1e17b7418ea4cbd9dd207e4a6f3b2b24e0d4ac731", size = 4456482, upload-time = "2026-02-10T19:17:25.133Z" }, - { url = "https://files.pythonhosted.org/packages/f9/e5/3fb22e37f66827ced3b902cf895e6a6bc1d095b5b26be26bd13c441fdf19/cryptography-46.0.5-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:890bcb4abd5a2d3f852196437129eb3667d62630333aacc13dfd470fad3aaa82", size = 4405497, upload-time = "2026-02-10T19:17:26.66Z" }, - { url = "https://files.pythonhosted.org/packages/1a/df/9d58bb32b1121a8a2f27383fabae4d63080c7ca60b9b5c88be742be04ee7/cryptography-46.0.5-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:80a8d7bfdf38f87ca30a5391c0c9ce4ed2926918e017c29ddf643d0ed2778ea1", size = 4667819, upload-time = "2026-02-10T19:17:28.569Z" }, - { url = "https://files.pythonhosted.org/packages/ea/ed/325d2a490c5e94038cdb0117da9397ece1f11201f425c4e9c57fe5b9f08b/cryptography-46.0.5-cp311-abi3-win32.whl", hash = "sha256:60ee7e19e95104d4c03871d7d7dfb3d22ef8a9b9c6778c94e1c8fcc8365afd48", size = 3028230, upload-time = "2026-02-10T19:17:30.518Z" }, - { url = "https://files.pythonhosted.org/packages/e9/5a/ac0f49e48063ab4255d9e3b79f5def51697fce1a95ea1370f03dc9db76f6/cryptography-46.0.5-cp311-abi3-win_amd64.whl", hash = "sha256:38946c54b16c885c72c4f59846be9743d699eee2b69b6988e0a00a01f46a61a4", size = 3480909, upload-time = "2026-02-10T19:17:32.083Z" }, - { url = "https://files.pythonhosted.org/packages/00/13/3d278bfa7a15a96b9dc22db5a12ad1e48a9eb3d40e1827ef66a5df75d0d0/cryptography-46.0.5-cp314-cp314t-macosx_10_9_universal2.whl", hash = "sha256:94a76daa32eb78d61339aff7952ea819b1734b46f73646a07decb40e5b3448e2", size = 7119287, upload-time = "2026-02-10T19:17:33.801Z" }, - { url = "https://files.pythonhosted.org/packages/67/c8/581a6702e14f0898a0848105cbefd20c058099e2c2d22ef4e476dfec75d7/cryptography-46.0.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5be7bf2fb40769e05739dd0046e7b26f9d4670badc7b032d6ce4db64dddc0678", size = 4265728, upload-time = "2026-02-10T19:17:35.569Z" }, - { url = "https://files.pythonhosted.org/packages/dd/4a/ba1a65ce8fc65435e5a849558379896c957870dd64fecea97b1ad5f46a37/cryptography-46.0.5-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fe346b143ff9685e40192a4960938545c699054ba11d4f9029f94751e3f71d87", size = 4408287, upload-time = "2026-02-10T19:17:36.938Z" }, - { url = "https://files.pythonhosted.org/packages/f8/67/8ffdbf7b65ed1ac224d1c2df3943553766914a8ca718747ee3871da6107e/cryptography-46.0.5-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:c69fd885df7d089548a42d5ec05be26050ebcd2283d89b3d30676eb32ff87dee", size = 4270291, upload-time = "2026-02-10T19:17:38.748Z" }, - { url = "https://files.pythonhosted.org/packages/f8/e5/f52377ee93bc2f2bba55a41a886fd208c15276ffbd2569f2ddc89d50e2c5/cryptography-46.0.5-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:8293f3dea7fc929ef7240796ba231413afa7b68ce38fd21da2995549f5961981", size = 4927539, upload-time = "2026-02-10T19:17:40.241Z" }, - { url = "https://files.pythonhosted.org/packages/3b/02/cfe39181b02419bbbbcf3abdd16c1c5c8541f03ca8bda240debc467d5a12/cryptography-46.0.5-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:1abfdb89b41c3be0365328a410baa9df3ff8a9110fb75e7b52e66803ddabc9a9", size = 4442199, upload-time = "2026-02-10T19:17:41.789Z" }, - { url = "https://files.pythonhosted.org/packages/c0/96/2fcaeb4873e536cf71421a388a6c11b5bc846e986b2b069c79363dc1648e/cryptography-46.0.5-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:d66e421495fdb797610a08f43b05269e0a5ea7f5e652a89bfd5a7d3c1dee3648", size = 3960131, upload-time = "2026-02-10T19:17:43.379Z" }, - { url = "https://files.pythonhosted.org/packages/d8/d2/b27631f401ddd644e94c5cf33c9a4069f72011821cf3dc7309546b0642a0/cryptography-46.0.5-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:4e817a8920bfbcff8940ecfd60f23d01836408242b30f1a708d93198393a80b4", size = 4270072, upload-time = "2026-02-10T19:17:45.481Z" }, - { url = "https://files.pythonhosted.org/packages/f4/a7/60d32b0370dae0b4ebe55ffa10e8599a2a59935b5ece1b9f06edb73abdeb/cryptography-46.0.5-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:68f68d13f2e1cb95163fa3b4db4bf9a159a418f5f6e7242564fc75fcae667fd0", size = 4892170, upload-time = "2026-02-10T19:17:46.997Z" }, - { url = "https://files.pythonhosted.org/packages/d2/b9/cf73ddf8ef1164330eb0b199a589103c363afa0cf794218c24d524a58eab/cryptography-46.0.5-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:a3d1fae9863299076f05cb8a778c467578262fae09f9dc0ee9b12eb4268ce663", size = 4441741, upload-time = "2026-02-10T19:17:48.661Z" }, - { url = "https://files.pythonhosted.org/packages/5f/eb/eee00b28c84c726fe8fa0158c65afe312d9c3b78d9d01daf700f1f6e37ff/cryptography-46.0.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c4143987a42a2397f2fc3b4d7e3a7d313fbe684f67ff443999e803dd75a76826", size = 4396728, upload-time = "2026-02-10T19:17:50.058Z" }, - { url = "https://files.pythonhosted.org/packages/65/f4/6bc1a9ed5aef7145045114b75b77c2a8261b4d38717bd8dea111a63c3442/cryptography-46.0.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:7d731d4b107030987fd61a7f8ab512b25b53cef8f233a97379ede116f30eb67d", size = 4652001, upload-time = "2026-02-10T19:17:51.54Z" }, - { url = "https://files.pythonhosted.org/packages/86/ef/5d00ef966ddd71ac2e6951d278884a84a40ffbd88948ef0e294b214ae9e4/cryptography-46.0.5-cp314-cp314t-win32.whl", hash = "sha256:c3bcce8521d785d510b2aad26ae2c966092b7daa8f45dd8f44734a104dc0bc1a", size = 3003637, upload-time = "2026-02-10T19:17:52.997Z" }, - { url = "https://files.pythonhosted.org/packages/b7/57/f3f4160123da6d098db78350fdfd9705057aad21de7388eacb2401dceab9/cryptography-46.0.5-cp314-cp314t-win_amd64.whl", hash = "sha256:4d8ae8659ab18c65ced284993c2265910f6c9e650189d4e3f68445ef82a810e4", size = 3469487, upload-time = "2026-02-10T19:17:54.549Z" }, - { url = "https://files.pythonhosted.org/packages/e2/fa/a66aa722105ad6a458bebd64086ca2b72cdd361fed31763d20390f6f1389/cryptography-46.0.5-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:4108d4c09fbbf2789d0c926eb4152ae1760d5a2d97612b92d508d96c861e4d31", size = 7170514, upload-time = "2026-02-10T19:17:56.267Z" }, - { url = "https://files.pythonhosted.org/packages/0f/04/c85bdeab78c8bc77b701bf0d9bdcf514c044e18a46dcff330df5448631b0/cryptography-46.0.5-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7d1f30a86d2757199cb2d56e48cce14deddf1f9c95f1ef1b64ee91ea43fe2e18", size = 4275349, upload-time = "2026-02-10T19:17:58.419Z" }, - { url = "https://files.pythonhosted.org/packages/5c/32/9b87132a2f91ee7f5223b091dc963055503e9b442c98fc0b8a5ca765fab0/cryptography-46.0.5-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:039917b0dc418bb9f6edce8a906572d69e74bd330b0b3fea4f79dab7f8ddd235", size = 4420667, upload-time = "2026-02-10T19:18:00.619Z" }, - { url = "https://files.pythonhosted.org/packages/a1/a6/a7cb7010bec4b7c5692ca6f024150371b295ee1c108bdc1c400e4c44562b/cryptography-46.0.5-cp38-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:ba2a27ff02f48193fc4daeadf8ad2590516fa3d0adeeb34336b96f7fa64c1e3a", size = 4276980, upload-time = "2026-02-10T19:18:02.379Z" }, - { url = "https://files.pythonhosted.org/packages/8e/7c/c4f45e0eeff9b91e3f12dbd0e165fcf2a38847288fcfd889deea99fb7b6d/cryptography-46.0.5-cp38-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:61aa400dce22cb001a98014f647dc21cda08f7915ceb95df0c9eaf84b4b6af76", size = 4939143, upload-time = "2026-02-10T19:18:03.964Z" }, - { url = "https://files.pythonhosted.org/packages/37/19/e1b8f964a834eddb44fa1b9a9976f4e414cbb7aa62809b6760c8803d22d1/cryptography-46.0.5-cp38-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:3ce58ba46e1bc2aac4f7d9290223cead56743fa6ab94a5d53292ffaac6a91614", size = 4453674, upload-time = "2026-02-10T19:18:05.588Z" }, - { url = "https://files.pythonhosted.org/packages/db/ed/db15d3956f65264ca204625597c410d420e26530c4e2943e05a0d2f24d51/cryptography-46.0.5-cp38-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:420d0e909050490d04359e7fdb5ed7e667ca5c3c402b809ae2563d7e66a92229", size = 3978801, upload-time = "2026-02-10T19:18:07.167Z" }, - { url = "https://files.pythonhosted.org/packages/41/e2/df40a31d82df0a70a0daf69791f91dbb70e47644c58581d654879b382d11/cryptography-46.0.5-cp38-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:582f5fcd2afa31622f317f80426a027f30dc792e9c80ffee87b993200ea115f1", size = 4276755, upload-time = "2026-02-10T19:18:09.813Z" }, - { url = "https://files.pythonhosted.org/packages/33/45/726809d1176959f4a896b86907b98ff4391a8aa29c0aaaf9450a8a10630e/cryptography-46.0.5-cp38-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:bfd56bb4b37ed4f330b82402f6f435845a5f5648edf1ad497da51a8452d5d62d", size = 4901539, upload-time = "2026-02-10T19:18:11.263Z" }, - { url = "https://files.pythonhosted.org/packages/99/0f/a3076874e9c88ecb2ecc31382f6e7c21b428ede6f55aafa1aa272613e3cd/cryptography-46.0.5-cp38-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:a3d507bb6a513ca96ba84443226af944b0f7f47dcc9a399d110cd6146481d24c", size = 4452794, upload-time = "2026-02-10T19:18:12.914Z" }, - { url = "https://files.pythonhosted.org/packages/02/ef/ffeb542d3683d24194a38f66ca17c0a4b8bf10631feef44a7ef64e631b1a/cryptography-46.0.5-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:9f16fbdf4da055efb21c22d81b89f155f02ba420558db21288b3d0035bafd5f4", size = 4404160, upload-time = "2026-02-10T19:18:14.375Z" }, - { url = "https://files.pythonhosted.org/packages/96/93/682d2b43c1d5f1406ed048f377c0fc9fc8f7b0447a478d5c65ab3d3a66eb/cryptography-46.0.5-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:ced80795227d70549a411a4ab66e8ce307899fad2220ce5ab2f296e687eacde9", size = 4667123, upload-time = "2026-02-10T19:18:15.886Z" }, - { url = "https://files.pythonhosted.org/packages/45/2d/9c5f2926cb5300a8eefc3f4f0b3f3df39db7f7ce40c8365444c49363cbda/cryptography-46.0.5-cp38-abi3-win32.whl", hash = "sha256:02f547fce831f5096c9a567fd41bc12ca8f11df260959ecc7c3202555cc47a72", size = 3010220, upload-time = "2026-02-10T19:18:17.361Z" }, - { url = "https://files.pythonhosted.org/packages/48/ef/0c2f4a8e31018a986949d34a01115dd057bf536905dca38897bacd21fac3/cryptography-46.0.5-cp38-abi3-win_amd64.whl", hash = "sha256:556e106ee01aa13484ce9b0239bca667be5004efb0aabbed28d353df86445595", size = 3467050, upload-time = "2026-02-10T19:18:18.899Z" }, - { url = "https://files.pythonhosted.org/packages/eb/dd/2d9fdb07cebdf3d51179730afb7d5e576153c6744c3ff8fded23030c204e/cryptography-46.0.5-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:3b4995dc971c9fb83c25aa44cf45f02ba86f71ee600d81091c2f0cbae116b06c", size = 3476964, upload-time = "2026-02-10T19:18:20.687Z" }, - { url = "https://files.pythonhosted.org/packages/e9/6f/6cc6cc9955caa6eaf83660b0da2b077c7fe8ff9950a3c5e45d605038d439/cryptography-46.0.5-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:bc84e875994c3b445871ea7181d424588171efec3e185dced958dad9e001950a", size = 4218321, upload-time = "2026-02-10T19:18:22.349Z" }, - { url = "https://files.pythonhosted.org/packages/3e/5d/c4da701939eeee699566a6c1367427ab91a8b7088cc2328c09dbee940415/cryptography-46.0.5-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:2ae6971afd6246710480e3f15824ed3029a60fc16991db250034efd0b9fb4356", size = 4381786, upload-time = "2026-02-10T19:18:24.529Z" }, - { url = "https://files.pythonhosted.org/packages/ac/97/a538654732974a94ff96c1db621fa464f455c02d4bb7d2652f4edc21d600/cryptography-46.0.5-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:d861ee9e76ace6cf36a6a89b959ec08e7bc2493ee39d07ffe5acb23ef46d27da", size = 4217990, upload-time = "2026-02-10T19:18:25.957Z" }, - { url = "https://files.pythonhosted.org/packages/ae/11/7e500d2dd3ba891197b9efd2da5454b74336d64a7cc419aa7327ab74e5f6/cryptography-46.0.5-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:2b7a67c9cd56372f3249b39699f2ad479f6991e62ea15800973b956f4b73e257", size = 4381252, upload-time = "2026-02-10T19:18:27.496Z" }, - { url = "https://files.pythonhosted.org/packages/bc/58/6b3d24e6b9bc474a2dcdee65dfd1f008867015408a271562e4b690561a4d/cryptography-46.0.5-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:8456928655f856c6e1533ff59d5be76578a7157224dbd9ce6872f25055ab9ab7", size = 3407605, upload-time = "2026-02-10T19:18:29.233Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/9f/33/c00162f49c0e2fe8064a62cb92b93e50c74a72bc370ab92f86112b33ff62/cryptography-46.0.3.tar.gz", hash = "sha256:a8b17438104fed022ce745b362294d9ce35b4c2e45c1d958ad4a4b019285f4a1", size = 749258, upload-time = "2025-10-15T23:18:31.74Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1d/42/9c391dd801d6cf0d561b5890549d4b27bafcc53b39c31a817e69d87c625b/cryptography-46.0.3-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:109d4ddfadf17e8e7779c39f9b18111a09efb969a301a31e987416a0191ed93a", size = 7225004, upload-time = "2025-10-15T23:16:52.239Z" }, + { url = "https://files.pythonhosted.org/packages/1c/67/38769ca6b65f07461eb200e85fc1639b438bdc667be02cf7f2cd6a64601c/cryptography-46.0.3-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:09859af8466b69bc3c27bdf4f5d84a665e0f7ab5088412e9e2ec49758eca5cbc", size = 4296667, upload-time = "2025-10-15T23:16:54.369Z" }, + { url = "https://files.pythonhosted.org/packages/5c/49/498c86566a1d80e978b42f0d702795f69887005548c041636df6ae1ca64c/cryptography-46.0.3-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:01ca9ff2885f3acc98c29f1860552e37f6d7c7d013d7334ff2a9de43a449315d", size = 4450807, upload-time = "2025-10-15T23:16:56.414Z" }, + { url = "https://files.pythonhosted.org/packages/4b/0a/863a3604112174c8624a2ac3c038662d9e59970c7f926acdcfaed8d61142/cryptography-46.0.3-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:6eae65d4c3d33da080cff9c4ab1f711b15c1d9760809dad6ea763f3812d254cb", size = 4299615, upload-time = "2025-10-15T23:16:58.442Z" }, + { url = "https://files.pythonhosted.org/packages/64/02/b73a533f6b64a69f3cd3872acb6ebc12aef924d8d103133bb3ea750dc703/cryptography-46.0.3-cp311-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e5bf0ed4490068a2e72ac03d786693adeb909981cc596425d09032d372bcc849", size = 4016800, upload-time = "2025-10-15T23:17:00.378Z" }, + { url = "https://files.pythonhosted.org/packages/25/d5/16e41afbfa450cde85a3b7ec599bebefaef16b5c6ba4ec49a3532336ed72/cryptography-46.0.3-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:5ecfccd2329e37e9b7112a888e76d9feca2347f12f37918facbb893d7bb88ee8", size = 4984707, upload-time = "2025-10-15T23:17:01.98Z" }, + { url = "https://files.pythonhosted.org/packages/c9/56/e7e69b427c3878352c2fb9b450bd0e19ed552753491d39d7d0a2f5226d41/cryptography-46.0.3-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a2c0cd47381a3229c403062f764160d57d4d175e022c1df84e168c6251a22eec", size = 4482541, upload-time = "2025-10-15T23:17:04.078Z" }, + { url = "https://files.pythonhosted.org/packages/78/f6/50736d40d97e8483172f1bb6e698895b92a223dba513b0ca6f06b2365339/cryptography-46.0.3-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:549e234ff32571b1f4076ac269fcce7a808d3bf98b76c8dd560e42dbc66d7d91", size = 4299464, upload-time = "2025-10-15T23:17:05.483Z" }, + { url = "https://files.pythonhosted.org/packages/00/de/d8e26b1a855f19d9994a19c702fa2e93b0456beccbcfe437eda00e0701f2/cryptography-46.0.3-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:c0a7bb1a68a5d3471880e264621346c48665b3bf1c3759d682fc0864c540bd9e", size = 4950838, upload-time = "2025-10-15T23:17:07.425Z" }, + { url = "https://files.pythonhosted.org/packages/8f/29/798fc4ec461a1c9e9f735f2fc58741b0daae30688f41b2497dcbc9ed1355/cryptography-46.0.3-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:10b01676fc208c3e6feeb25a8b83d81767e8059e1fe86e1dc62d10a3018fa926", size = 4481596, upload-time = "2025-10-15T23:17:09.343Z" }, + { url = "https://files.pythonhosted.org/packages/15/8d/03cd48b20a573adfff7652b76271078e3045b9f49387920e7f1f631d125e/cryptography-46.0.3-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:0abf1ffd6e57c67e92af68330d05760b7b7efb243aab8377e583284dbab72c71", size = 4426782, upload-time = "2025-10-15T23:17:11.22Z" }, + { url = "https://files.pythonhosted.org/packages/fa/b1/ebacbfe53317d55cf33165bda24c86523497a6881f339f9aae5c2e13e57b/cryptography-46.0.3-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:a04bee9ab6a4da801eb9b51f1b708a1b5b5c9eb48c03f74198464c66f0d344ac", size = 4698381, upload-time = "2025-10-15T23:17:12.829Z" }, + { url = "https://files.pythonhosted.org/packages/96/92/8a6a9525893325fc057a01f654d7efc2c64b9de90413adcf605a85744ff4/cryptography-46.0.3-cp311-abi3-win32.whl", hash = "sha256:f260d0d41e9b4da1ed1e0f1ce571f97fe370b152ab18778e9e8f67d6af432018", size = 3055988, upload-time = "2025-10-15T23:17:14.65Z" }, + { url = "https://files.pythonhosted.org/packages/7e/bf/80fbf45253ea585a1e492a6a17efcb93467701fa79e71550a430c5e60df0/cryptography-46.0.3-cp311-abi3-win_amd64.whl", hash = "sha256:a9a3008438615669153eb86b26b61e09993921ebdd75385ddd748702c5adfddb", size = 3514451, upload-time = "2025-10-15T23:17:16.142Z" }, + { url = "https://files.pythonhosted.org/packages/2e/af/9b302da4c87b0beb9db4e756386a7c6c5b8003cd0e742277888d352ae91d/cryptography-46.0.3-cp311-abi3-win_arm64.whl", hash = "sha256:5d7f93296ee28f68447397bf5198428c9aeeab45705a55d53a6343455dcb2c3c", size = 2928007, upload-time = "2025-10-15T23:17:18.04Z" }, + { url = "https://files.pythonhosted.org/packages/f5/e2/a510aa736755bffa9d2f75029c229111a1d02f8ecd5de03078f4c18d91a3/cryptography-46.0.3-cp314-cp314t-macosx_10_9_universal2.whl", hash = "sha256:00a5e7e87938e5ff9ff5447ab086a5706a957137e6e433841e9d24f38a065217", size = 7158012, upload-time = "2025-10-15T23:17:19.982Z" }, + { url = "https://files.pythonhosted.org/packages/73/dc/9aa866fbdbb95b02e7f9d086f1fccfeebf8953509b87e3f28fff927ff8a0/cryptography-46.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c8daeb2d2174beb4575b77482320303f3d39b8e81153da4f0fb08eb5fe86a6c5", size = 4288728, upload-time = "2025-10-15T23:17:21.527Z" }, + { url = "https://files.pythonhosted.org/packages/c5/fd/bc1daf8230eaa075184cbbf5f8cd00ba9db4fd32d63fb83da4671b72ed8a/cryptography-46.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:39b6755623145ad5eff1dab323f4eae2a32a77a7abef2c5089a04a3d04366715", size = 4435078, upload-time = "2025-10-15T23:17:23.042Z" }, + { url = "https://files.pythonhosted.org/packages/82/98/d3bd5407ce4c60017f8ff9e63ffee4200ab3e23fe05b765cab805a7db008/cryptography-46.0.3-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:db391fa7c66df6762ee3f00c95a89e6d428f4d60e7abc8328f4fe155b5ac6e54", size = 4293460, upload-time = "2025-10-15T23:17:24.885Z" }, + { url = "https://files.pythonhosted.org/packages/26/e9/e23e7900983c2b8af7a08098db406cf989d7f09caea7897e347598d4cd5b/cryptography-46.0.3-cp314-cp314t-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:78a97cf6a8839a48c49271cdcbd5cf37ca2c1d6b7fdd86cc864f302b5e9bf459", size = 3995237, upload-time = "2025-10-15T23:17:26.449Z" }, + { url = "https://files.pythonhosted.org/packages/91/15/af68c509d4a138cfe299d0d7ddb14afba15233223ebd933b4bbdbc7155d3/cryptography-46.0.3-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:dfb781ff7eaa91a6f7fd41776ec37c5853c795d3b358d4896fdbb5df168af422", size = 4967344, upload-time = "2025-10-15T23:17:28.06Z" }, + { url = "https://files.pythonhosted.org/packages/ca/e3/8643d077c53868b681af077edf6b3cb58288b5423610f21c62aadcbe99f4/cryptography-46.0.3-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:6f61efb26e76c45c4a227835ddeae96d83624fb0d29eb5df5b96e14ed1a0afb7", size = 4466564, upload-time = "2025-10-15T23:17:29.665Z" }, + { url = "https://files.pythonhosted.org/packages/0e/43/c1e8726fa59c236ff477ff2b5dc071e54b21e5a1e51aa2cee1676f1c986f/cryptography-46.0.3-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:23b1a8f26e43f47ceb6d6a43115f33a5a37d57df4ea0ca295b780ae8546e8044", size = 4292415, upload-time = "2025-10-15T23:17:31.686Z" }, + { url = "https://files.pythonhosted.org/packages/42/f9/2f8fefdb1aee8a8e3256a0568cffc4e6d517b256a2fe97a029b3f1b9fe7e/cryptography-46.0.3-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:b419ae593c86b87014b9be7396b385491ad7f320bde96826d0dd174459e54665", size = 4931457, upload-time = "2025-10-15T23:17:33.478Z" }, + { url = "https://files.pythonhosted.org/packages/79/30/9b54127a9a778ccd6d27c3da7563e9f2d341826075ceab89ae3b41bf5be2/cryptography-46.0.3-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:50fc3343ac490c6b08c0cf0d704e881d0d660be923fd3076db3e932007e726e3", size = 4466074, upload-time = "2025-10-15T23:17:35.158Z" }, + { url = "https://files.pythonhosted.org/packages/ac/68/b4f4a10928e26c941b1b6a179143af9f4d27d88fe84a6a3c53592d2e76bf/cryptography-46.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:22d7e97932f511d6b0b04f2bfd818d73dcd5928db509460aaf48384778eb6d20", size = 4420569, upload-time = "2025-10-15T23:17:37.188Z" }, + { url = "https://files.pythonhosted.org/packages/a3/49/3746dab4c0d1979888f125226357d3262a6dd40e114ac29e3d2abdf1ec55/cryptography-46.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:d55f3dffadd674514ad19451161118fd010988540cee43d8bc20675e775925de", size = 4681941, upload-time = "2025-10-15T23:17:39.236Z" }, + { url = "https://files.pythonhosted.org/packages/fd/30/27654c1dbaf7e4a3531fa1fc77986d04aefa4d6d78259a62c9dc13d7ad36/cryptography-46.0.3-cp314-cp314t-win32.whl", hash = "sha256:8a6e050cb6164d3f830453754094c086ff2d0b2f3a897a1d9820f6139a1f0914", size = 3022339, upload-time = "2025-10-15T23:17:40.888Z" }, + { url = "https://files.pythonhosted.org/packages/f6/30/640f34ccd4d2a1bc88367b54b926b781b5a018d65f404d409aba76a84b1c/cryptography-46.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:760f83faa07f8b64e9c33fc963d790a2edb24efb479e3520c14a45741cd9b2db", size = 3494315, upload-time = "2025-10-15T23:17:42.769Z" }, + { url = "https://files.pythonhosted.org/packages/ba/8b/88cc7e3bd0a8e7b861f26981f7b820e1f46aa9d26cc482d0feba0ecb4919/cryptography-46.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:516ea134e703e9fe26bcd1277a4b59ad30586ea90c365a87781d7887a646fe21", size = 2919331, upload-time = "2025-10-15T23:17:44.468Z" }, + { url = "https://files.pythonhosted.org/packages/fd/23/45fe7f376a7df8daf6da3556603b36f53475a99ce4faacb6ba2cf3d82021/cryptography-46.0.3-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:cb3d760a6117f621261d662bccc8ef5bc32ca673e037c83fbe565324f5c46936", size = 7218248, upload-time = "2025-10-15T23:17:46.294Z" }, + { url = "https://files.pythonhosted.org/packages/27/32/b68d27471372737054cbd34c84981f9edbc24fe67ca225d389799614e27f/cryptography-46.0.3-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:4b7387121ac7d15e550f5cb4a43aef2559ed759c35df7336c402bb8275ac9683", size = 4294089, upload-time = "2025-10-15T23:17:48.269Z" }, + { url = "https://files.pythonhosted.org/packages/26/42/fa8389d4478368743e24e61eea78846a0006caffaf72ea24a15159215a14/cryptography-46.0.3-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:15ab9b093e8f09daab0f2159bb7e47532596075139dd74365da52ecc9cb46c5d", size = 4440029, upload-time = "2025-10-15T23:17:49.837Z" }, + { url = "https://files.pythonhosted.org/packages/5f/eb/f483db0ec5ac040824f269e93dd2bd8a21ecd1027e77ad7bdf6914f2fd80/cryptography-46.0.3-cp38-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:46acf53b40ea38f9c6c229599a4a13f0d46a6c3fa9ef19fc1a124d62e338dfa0", size = 4297222, upload-time = "2025-10-15T23:17:51.357Z" }, + { url = "https://files.pythonhosted.org/packages/fd/cf/da9502c4e1912cb1da3807ea3618a6829bee8207456fbbeebc361ec38ba3/cryptography-46.0.3-cp38-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:10ca84c4668d066a9878890047f03546f3ae0a6b8b39b697457b7757aaf18dbc", size = 4012280, upload-time = "2025-10-15T23:17:52.964Z" }, + { url = "https://files.pythonhosted.org/packages/6b/8f/9adb86b93330e0df8b3dcf03eae67c33ba89958fc2e03862ef1ac2b42465/cryptography-46.0.3-cp38-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:36e627112085bb3b81b19fed209c05ce2a52ee8b15d161b7c643a7d5a88491f3", size = 4978958, upload-time = "2025-10-15T23:17:54.965Z" }, + { url = "https://files.pythonhosted.org/packages/d1/a0/5fa77988289c34bdb9f913f5606ecc9ada1adb5ae870bd0d1054a7021cc4/cryptography-46.0.3-cp38-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:1000713389b75c449a6e979ffc7dcc8ac90b437048766cef052d4d30b8220971", size = 4473714, upload-time = "2025-10-15T23:17:56.754Z" }, + { url = "https://files.pythonhosted.org/packages/14/e5/fc82d72a58d41c393697aa18c9abe5ae1214ff6f2a5c18ac470f92777895/cryptography-46.0.3-cp38-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:b02cf04496f6576afffef5ddd04a0cb7d49cf6be16a9059d793a30b035f6b6ac", size = 4296970, upload-time = "2025-10-15T23:17:58.588Z" }, + { url = "https://files.pythonhosted.org/packages/78/06/5663ed35438d0b09056973994f1aec467492b33bd31da36e468b01ec1097/cryptography-46.0.3-cp38-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:71e842ec9bc7abf543b47cf86b9a743baa95f4677d22baa4c7d5c69e49e9bc04", size = 4940236, upload-time = "2025-10-15T23:18:00.897Z" }, + { url = "https://files.pythonhosted.org/packages/fc/59/873633f3f2dcd8a053b8dd1d38f783043b5fce589c0f6988bf55ef57e43e/cryptography-46.0.3-cp38-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:402b58fc32614f00980b66d6e56a5b4118e6cb362ae8f3fda141ba4689bd4506", size = 4472642, upload-time = "2025-10-15T23:18:02.749Z" }, + { url = "https://files.pythonhosted.org/packages/3d/39/8e71f3930e40f6877737d6f69248cf74d4e34b886a3967d32f919cc50d3b/cryptography-46.0.3-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:ef639cb3372f69ec44915fafcd6698b6cc78fbe0c2ea41be867f6ed612811963", size = 4423126, upload-time = "2025-10-15T23:18:04.85Z" }, + { url = "https://files.pythonhosted.org/packages/cd/c7/f65027c2810e14c3e7268353b1681932b87e5a48e65505d8cc17c99e36ae/cryptography-46.0.3-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:3b51b8ca4f1c6453d8829e1eb7299499ca7f313900dd4d89a24b8b87c0a780d4", size = 4686573, upload-time = "2025-10-15T23:18:06.908Z" }, + { url = "https://files.pythonhosted.org/packages/0a/6e/1c8331ddf91ca4730ab3086a0f1be19c65510a33b5a441cb334e7a2d2560/cryptography-46.0.3-cp38-abi3-win32.whl", hash = "sha256:6276eb85ef938dc035d59b87c8a7dc559a232f954962520137529d77b18ff1df", size = 3036695, upload-time = "2025-10-15T23:18:08.672Z" }, + { url = "https://files.pythonhosted.org/packages/90/45/b0d691df20633eff80955a0fc7695ff9051ffce8b69741444bd9ed7bd0db/cryptography-46.0.3-cp38-abi3-win_amd64.whl", hash = "sha256:416260257577718c05135c55958b674000baef9a1c7d9e8f306ec60d71db850f", size = 3501720, upload-time = "2025-10-15T23:18:10.632Z" }, + { url = "https://files.pythonhosted.org/packages/e8/cb/2da4cc83f5edb9c3257d09e1e7ab7b23f049c7962cae8d842bbef0a9cec9/cryptography-46.0.3-cp38-abi3-win_arm64.whl", hash = "sha256:d89c3468de4cdc4f08a57e214384d0471911a3830fcdaf7a8cc587e42a866372", size = 2918740, upload-time = "2025-10-15T23:18:12.277Z" }, + { url = "https://files.pythonhosted.org/packages/d9/cd/1a8633802d766a0fa46f382a77e096d7e209e0817892929655fe0586ae32/cryptography-46.0.3-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:a23582810fedb8c0bc47524558fb6c56aac3fc252cb306072fd2815da2a47c32", size = 3689163, upload-time = "2025-10-15T23:18:13.821Z" }, + { url = "https://files.pythonhosted.org/packages/4c/59/6b26512964ace6480c3e54681a9859c974172fb141c38df11eadd8416947/cryptography-46.0.3-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:e7aec276d68421f9574040c26e2a7c3771060bc0cff408bae1dcb19d3ab1e63c", size = 3429474, upload-time = "2025-10-15T23:18:15.477Z" }, + { url = "https://files.pythonhosted.org/packages/06/8a/e60e46adab4362a682cf142c7dcb5bf79b782ab2199b0dcb81f55970807f/cryptography-46.0.3-pp311-pypy311_pp73-macosx_10_9_x86_64.whl", hash = "sha256:7ce938a99998ed3c8aa7e7272dca1a610401ede816d36d0693907d863b10d9ea", size = 3698132, upload-time = "2025-10-15T23:18:17.056Z" }, + { url = "https://files.pythonhosted.org/packages/da/38/f59940ec4ee91e93d3311f7532671a5cef5570eb04a144bf203b58552d11/cryptography-46.0.3-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:191bb60a7be5e6f54e30ba16fdfae78ad3a342a0599eb4193ba88e3f3d6e185b", size = 4243992, upload-time = "2025-10-15T23:18:18.695Z" }, + { url = "https://files.pythonhosted.org/packages/b0/0c/35b3d92ddebfdfda76bb485738306545817253d0a3ded0bfe80ef8e67aa5/cryptography-46.0.3-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:c70cc23f12726be8f8bc72e41d5065d77e4515efae3690326764ea1b07845cfb", size = 4409944, upload-time = "2025-10-15T23:18:20.597Z" }, + { url = "https://files.pythonhosted.org/packages/99/55/181022996c4063fc0e7666a47049a1ca705abb9c8a13830f074edb347495/cryptography-46.0.3-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:9394673a9f4de09e28b5356e7fff97d778f8abad85c9d5ac4a4b7e25a0de7717", size = 4242957, upload-time = "2025-10-15T23:18:22.18Z" }, + { url = "https://files.pythonhosted.org/packages/ba/af/72cd6ef29f9c5f731251acadaeb821559fe25f10852f44a63374c9ca08c1/cryptography-46.0.3-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:94cd0549accc38d1494e1f8de71eca837d0509d0d44bf11d158524b0e12cebf9", size = 4409447, upload-time = "2025-10-15T23:18:24.209Z" }, + { url = "https://files.pythonhosted.org/packages/0d/c3/e90f4a4feae6410f914f8ebac129b9ae7a8c92eb60a638012dde42030a9d/cryptography-46.0.3-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:6b5063083824e5509fdba180721d55909ffacccc8adbec85268b48439423d78c", size = 3438528, upload-time = "2025-10-15T23:18:26.227Z" }, ] [[package]] @@ -2718,7 +2723,7 @@ wheels = [ [[package]] name = "flask" -version = "3.1.3" +version = "3.1.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "blinker" }, @@ -2728,9 +2733,9 @@ dependencies = [ { name = "markupsafe" }, { name = "werkzeug" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/26/00/35d85dcce6c57fdc871f3867d465d780f302a175ea360f62533f12b27e2b/flask-3.1.3.tar.gz", hash = "sha256:0ef0e52b8a9cd932855379197dd8f94047b359ca0a78695144304cb45f87c9eb", size = 759004, upload-time = "2026-02-19T05:00:57.678Z" } +sdist = { url = "https://files.pythonhosted.org/packages/dc/6d/cfe3c0fcc5e477df242b98bfe186a4c34357b4847e87ecaef04507332dab/flask-3.1.2.tar.gz", hash = "sha256:bf656c15c80190ed628ad08cdfd3aaa35beb087855e2f494910aa3774cc4fd87", size = 720160, upload-time = "2025-08-19T21:03:21.205Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/7f/9c/34f6962f9b9e9c71f6e5ed806e0d0ff03c9d1b0b2340088a0cf4bce09b18/flask-3.1.3-py3-none-any.whl", hash = "sha256:f4bcbefc124291925f1a26446da31a5178f9483862233b23c0c96a20701f670c", size = 103424, upload-time = "2026-02-19T05:00:56.027Z" }, + { url = "https://files.pythonhosted.org/packages/ec/f9/7f9263c5695f4bd0023734af91bedb2ff8209e8de6ead162f35d8dc762fd/flask-3.1.2-py3-none-any.whl", hash = "sha256:ca1d8112ec8a6158cc29ea4858963350011b5c846a414cdb7a954aa9e967d03c", size = 103308, upload-time = "2025-08-19T21:03:19.499Z" }, ] [[package]] @@ -6002,6 +6007,7 @@ dependencies = [ { name = "mdanalysis", version = "2.9.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11' or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-uma') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-uma')" }, { name = "mdanalysis", version = "2.10.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11' or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-uma') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-uma')" }, { name = "mlipx" }, + { name = "molify" }, { name = "openpyxl" }, { name = "scikit-learn", version = "1.7.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11' or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-uma') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-uma')" }, { name = "scikit-learn", version = "1.8.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11' or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-uma') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-uma')" }, @@ -6084,6 +6090,7 @@ requires-dist = [ { name = "mdanalysis" }, { name = "mdanalysis", specifier = ">=2.9.0" }, { name = "mlipx", specifier = ">=0.1.5,<0.2" }, + { name = "molify", specifier = ">=0.2.2" }, { name = "openpyxl" }, { name = "orb-models", marker = "python_full_version < '3.13' and sys_platform != 'win32' and extra == 'orb'", specifier = "==0.5.5" }, { name = "pet-mad", marker = "sys_platform != 'win32' and extra == 'pet-mad'", specifier = "==1.4.4" }, @@ -6159,6 +6166,23 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/3c/f1/efea3da858043ed9c078f507ab744b6d00933c7bc8a75a24821937600178/mmtf_python-1.1.3-py2.py3-none-any.whl", hash = "sha256:502031c509a8a6d73e042781abbd88b84c1afffe65097eb0c1b70f329ffd1e6e", size = 25252, upload-time = "2022-07-06T03:06:23.344Z" }, ] +[[package]] +name = "molify" +version = "0.2.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "ase" }, + { name = "matplotlib" }, + { name = "networkx", version = "3.4.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11' or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-uma') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-uma')" }, + { name = "networkx", version = "3.6.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11' or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-grace' and extra == 'extra-6-ml-peg-uma') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-mattersim') or (extra == 'extra-6-ml-peg-mace' and extra == 'extra-6-ml-peg-uma')" }, + { name = "packmol" }, + { name = "rdkit" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f2/da/828cbda120f66cef3d6092b9e58ec518874b2521d735d3449c44a847a9ed/molify-0.2.2.tar.gz", hash = "sha256:f217360810f17027e44df0e8825f79516e2fdf6c101b989b096765458d930904", size = 1324469, upload-time = "2025-12-03T08:39:48.527Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0c/a4/d58df28f79e70d177cbd5d349ddf2c793b5a70c248423670740db74aaec6/molify-0.2.2-py3-none-any.whl", hash = "sha256:956034cd9f4f563dfb4aabb55aedd9ab86d0750f93c26856fdca83e0f2956c39", size = 30381, upload-time = "2025-12-03T08:39:47.053Z" }, +] + [[package]] name = "mongomock" version = "4.3.0" @@ -6684,7 +6708,7 @@ wheels = [ [[package]] name = "nbconvert" -version = "7.17.0" +version = "7.16.6" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "beautifulsoup4" }, @@ -6702,9 +6726,9 @@ dependencies = [ { name = "pygments" }, { name = "traitlets" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/38/47/81f886b699450d0569f7bc551df2b1673d18df7ff25cc0c21ca36ed8a5ff/nbconvert-7.17.0.tar.gz", hash = "sha256:1b2696f1b5be12309f6c7d707c24af604b87dfaf6d950794c7b07acab96dda78", size = 862855, upload-time = "2026-01-29T16:37:48.478Z" } +sdist = { url = "https://files.pythonhosted.org/packages/a3/59/f28e15fc47ffb73af68a8d9b47367a8630d76e97ae85ad18271b9db96fdf/nbconvert-7.16.6.tar.gz", hash = "sha256:576a7e37c6480da7b8465eefa66c17844243816ce1ccc372633c6b71c3c0f582", size = 857715, upload-time = "2025-01-28T09:29:14.724Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/0d/4b/8d5f796a792f8a25f6925a96032f098789f448571eb92011df1ae59e8ea8/nbconvert-7.17.0-py3-none-any.whl", hash = "sha256:4f99a63b337b9a23504347afdab24a11faa7d86b405e5c8f9881cd313336d518", size = 261510, upload-time = "2026-01-29T16:37:46.322Z" }, + { url = "https://files.pythonhosted.org/packages/cc/9a/cd673b2f773a12c992f41309ef81b99da1690426bd2f96957a7ade0d3ed7/nbconvert-7.16.6-py3-none-any.whl", hash = "sha256:1375a7b67e0c2883678c48e506dc320febb57685e5ee67faa51b18a90f3a712b", size = 258525, upload-time = "2025-01-28T09:29:12.551Z" }, ] [[package]] @@ -7598,6 +7622,68 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/b7/b9/c538f279a4e237a006a2c98387d081e9eb060d203d8ed34467cc0f0b9b53/packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529", size = 74366, upload-time = "2026-01-21T20:50:37.788Z" }, ] +[[package]] +name = "packmol" +version = "21.2.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f0/4d/90787910212a3256fa1afe40eb64fd649726c3b2c064bc64188efcb263a0/packmol-21.2.1.tar.gz", hash = "sha256:18b475b5c47d7c4e3e956f27188256595834b9d7e13bd251798f3a13a3779fcd", size = 897293, upload-time = "2026-01-27T11:39:39.059Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/26/ab/d012296bf82ff593f0b2dff4e7baba8f9eda99ce7be9d98bfb855847b71c/packmol-21.2.1-cp310-cp310-macosx_15_0_arm64.whl", hash = "sha256:7d386842f53b85612c29b17e09a8fa2096436bb1a853082428e260d3360e87dd", size = 992710, upload-time = "2026-01-27T11:38:12.789Z" }, + { url = "https://files.pythonhosted.org/packages/68/65/bb692568a7737b515c22bfc26579f0f5cd914e1fab7a25524dc219effcfe/packmol-21.2.1-cp310-cp310-macosx_15_0_x86_64.whl", hash = "sha256:3f404720ee0f921f9604a0203609245ed4c324e108109d4c48de79573b9ebafc", size = 1684047, upload-time = "2026-01-27T11:38:14.879Z" }, + { url = "https://files.pythonhosted.org/packages/ca/27/c7152e9dee7b273c741b99782ac86aa51e8c6ba1647ae78e647aee8c169c/packmol-21.2.1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2ffd24d1af6336599dec297126d15046a4d1b06c1ec0c29d898ad58fb0b27da0", size = 651836, upload-time = "2026-01-27T11:38:16.375Z" }, + { url = "https://files.pythonhosted.org/packages/3b/ef/8a877266fc0feaa613ea1da9adad71aa07ecffb195571a5f8d864c038a47/packmol-21.2.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7c52b4f4a05ab201d15be6c4516065e772ca50db9309756629833958ec691bd1", size = 1220660, upload-time = "2026-01-27T11:38:17.992Z" }, + { url = "https://files.pythonhosted.org/packages/2e/2e/b0036ba2425dc424e8f435ee88dd25a3e22139f9f2789e3f3ff9666e1918/packmol-21.2.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:6bfd8809b4095e1961244de3e9c0e6160cd755456c5fe00ba8598c64a1fd2c87", size = 802293, upload-time = "2026-01-27T11:38:19.776Z" }, + { url = "https://files.pythonhosted.org/packages/b5/22/79c6da164f6bfbcb9ee519b3d65da5ed41b585fe074d27c4f4b0042568d0/packmol-21.2.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:b693f34b1ea112dc3387b9ba0f3289e429592f10f66777223dbe0d4d51f1084e", size = 1627267, upload-time = "2026-01-27T11:38:21.217Z" }, + { url = "https://files.pythonhosted.org/packages/47/40/705cec825cec15c8b294db345bf591a6147168cdce8e769fbbd66f34c569/packmol-21.2.1-cp310-cp310-win32.whl", hash = "sha256:25455903676f83942ecb9e5b5b7733431106a1422bc55f47eb3f9b2c7dc736f5", size = 220077, upload-time = "2026-01-27T11:38:22.762Z" }, + { url = "https://files.pythonhosted.org/packages/d1/78/c0f85adaf11b41c59fd37a8718633932e260c8eecfc55c24e82b42917172/packmol-21.2.1-cp310-cp310-win_amd64.whl", hash = "sha256:70fe9e6729e55d1790ab44301b787b601067b55a1b454134bf67fb538646e887", size = 220083, upload-time = "2026-01-27T11:38:23.921Z" }, + { url = "https://files.pythonhosted.org/packages/25/7f/c1f6d0930dfe5332af1fab9d8738ee46903b051209b10723be4bf859d4b2/packmol-21.2.1-cp310-cp310-win_arm64.whl", hash = "sha256:c13dcb404f98ff543038d5b848cfcdbfddb24d56331240bd7f05a47f5baf047a", size = 211724, upload-time = "2026-01-27T11:38:25.583Z" }, + { url = "https://files.pythonhosted.org/packages/23/18/e008ea5ee4ea775adb08c04cc9013cb6b33e414fe3eadf511fad00f8b31e/packmol-21.2.1-cp311-cp311-macosx_15_0_arm64.whl", hash = "sha256:6bc2ec9872b204162c5bf6b7a3e066cdf056d45c43ece639a95054b5242f7a02", size = 992710, upload-time = "2026-01-27T11:38:26.981Z" }, + { url = "https://files.pythonhosted.org/packages/b7/1f/cac9ff28fbd091e6750b10a0373918f2f0687cd6e9484088828366c38e65/packmol-21.2.1-cp311-cp311-macosx_15_0_x86_64.whl", hash = "sha256:c75a36ea903f1b49cc43a21d2b9fb463111a0d39c030b4639c95cec77f4f77fd", size = 1684046, upload-time = "2026-01-27T11:38:28.49Z" }, + { url = "https://files.pythonhosted.org/packages/0a/da/75651a609d52d5302049feb779f5af214a8419ac6c5177e0704ec6b546c3/packmol-21.2.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2bb1269183ff8cbd5decc0836955f7bf60faf7fb89807d95df202d335daa3664", size = 651837, upload-time = "2026-01-27T11:38:29.884Z" }, + { url = "https://files.pythonhosted.org/packages/98/13/1e2fd060e4478cf37aee1c424eb344258b57ba0db1c6a52b4335e0f3d26d/packmol-21.2.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:59871bc5d245b495befc839b85ea36d0fcd7fc4fa65a65a3d4737af751be127b", size = 1220659, upload-time = "2026-01-27T11:38:31.847Z" }, + { url = "https://files.pythonhosted.org/packages/86/58/e62788f3b8e221007c44e908b6cd8d18379bb21cad3c87c70a63b2c2f059/packmol-21.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:a06acfa33df98425f5ab941cac3130558cd30de069b63816e60f65d1d725f4c4", size = 802294, upload-time = "2026-01-27T11:38:33.502Z" }, + { url = "https://files.pythonhosted.org/packages/a2/af/256fffdcddcfc4f06ef222c3d2a67d33670adbfc2fa72ef54c59a88a454b/packmol-21.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:81a17c7d15356240aec2db61057ac0998ec36137ca6cd2e551dc24f2dc0f0be7", size = 1627266, upload-time = "2026-01-27T11:38:35.206Z" }, + { url = "https://files.pythonhosted.org/packages/2e/26/7f0f54376d2b4746cbbaa27bebc5c82064be79d5ffc2d992ff735d6f6b67/packmol-21.2.1-cp311-cp311-win32.whl", hash = "sha256:7fac24e0bb3537d0d2d36efa16200051927794f5faa6171a839e0800680cd61d", size = 220079, upload-time = "2026-01-27T11:38:36.683Z" }, + { url = "https://files.pythonhosted.org/packages/e3/83/4e600ffe7f647ea9dbebf465ace4bbcd39e71f574e0eae84ace40452d64c/packmol-21.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:7021cf2f465208ca00bab4623abded3a2c80edec898eb7aae3b82b0fd12279b2", size = 220083, upload-time = "2026-01-27T11:38:37.974Z" }, + { url = "https://files.pythonhosted.org/packages/e8/4d/e0eee4dac3af4f9a295f40c1a2db4779e40f264aa4e6d2cc8f32fa3ca7c3/packmol-21.2.1-cp311-cp311-win_arm64.whl", hash = "sha256:96c688f6791c82a7b2f24f79e0bcf686ecd0da092480432589e310058f1ae23e", size = 211725, upload-time = "2026-01-27T11:38:39.229Z" }, + { url = "https://files.pythonhosted.org/packages/bd/68/41e4a6492b3ce8c1f7e784613fae7b71729854bc7cc7b099bc56db6de741/packmol-21.2.1-cp312-cp312-macosx_15_0_arm64.whl", hash = "sha256:5fcabfeea29799b840f44322aee61b7e0913d8d7a2829ace1eadb386c6160b87", size = 992709, upload-time = "2026-01-27T11:38:40.655Z" }, + { url = "https://files.pythonhosted.org/packages/2a/a6/50f886867f92207ac0d5facdb5d1aac93b02c867c3242b03ad7d815ccc4f/packmol-21.2.1-cp312-cp312-macosx_15_0_x86_64.whl", hash = "sha256:547f5842b4a6cff27262be0356c7251e49b050543160dffab288dc2412fa89c7", size = 1684046, upload-time = "2026-01-27T11:38:42.11Z" }, + { url = "https://files.pythonhosted.org/packages/24/fb/9b2c362f738f1cef8cd7a7aa56d842dff6025929e394243b2aec520e9439/packmol-21.2.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:410843ed102e17b07eeb046a1762f59d9fc0e6a654a1f35580595b13064fd03b", size = 651838, upload-time = "2026-01-27T11:38:43.839Z" }, + { url = "https://files.pythonhosted.org/packages/49/8f/b9659262ea29f02f1371bec0fa9a1ee357116da294ac870ce8075b0c1f85/packmol-21.2.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:331a9939bf235281a633ff164ea45fe9c3b3894e17b2c03cb99ecc0d31d074c6", size = 1220659, upload-time = "2026-01-27T11:38:45.476Z" }, + { url = "https://files.pythonhosted.org/packages/e7/dd/76610620c0576ac03a391c74e7ff72e1fd91fe31fd772fe9ef5b831ad8ee/packmol-21.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3f2b40cdbe2a274ed9a757518832c3950fedfdea6bfbb0ee5f4213f770643a8b", size = 802293, upload-time = "2026-01-27T11:38:47.231Z" }, + { url = "https://files.pythonhosted.org/packages/e3/ef/0b34a826c04707176a9740b58d91afb1001b68029460289244a4a4204177/packmol-21.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:afe596fa108a6e4e662f5f3aeddf4d933fdfefcdd7537b735697c5308aae6b55", size = 1627266, upload-time = "2026-01-27T11:38:48.942Z" }, + { url = "https://files.pythonhosted.org/packages/92/b0/d5e692bfb606df81f4a1c54c4c2ab9b6c885ea3ab4289d81bee12761b0f8/packmol-21.2.1-cp312-cp312-win32.whl", hash = "sha256:868cca526e1bde1ed1e63ecbbe95070e78df59b7bf37f3671bd228b1340e51d8", size = 220077, upload-time = "2026-01-27T11:38:50.416Z" }, + { url = "https://files.pythonhosted.org/packages/16/ea/305abe63770cc1be99f89740d0f142890d05e67c327d70e770856cf61d4f/packmol-21.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:c652a7f60abe62181e2a019c582f0a614f622b5aa78bab585ff1c6e1c6eacca0", size = 220084, upload-time = "2026-01-27T11:38:52.523Z" }, + { url = "https://files.pythonhosted.org/packages/7e/19/c7dab2f0597d428b91adeb7964e1d6e8a80af635ef321fe354ba9422205a/packmol-21.2.1-cp312-cp312-win_arm64.whl", hash = "sha256:cb5b3375b98dee1fcaab1c3f68ed38057bb7c378f0f0bf9b7f2a3e0ad8efb453", size = 211724, upload-time = "2026-01-27T11:38:54.085Z" }, + { url = "https://files.pythonhosted.org/packages/bb/df/b8698b9f863a81c99b008e6a7655b761a686656660e248f3bee8f0c47286/packmol-21.2.1-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:5b97dfa876b8f99fb5db1409edd041681b58855b960d46be021aa46c1b57ad03", size = 992709, upload-time = "2026-01-27T11:38:55.551Z" }, + { url = "https://files.pythonhosted.org/packages/14/24/cc93a59dfbb9a5a467f81c881d20492307de837ebb5c34a71dcd7d3efc4a/packmol-21.2.1-cp313-cp313-macosx_15_0_x86_64.whl", hash = "sha256:a97985a41961c8331283b0a4d24f1e2d3226c3f4dd958d153e6c6bb4ea141845", size = 1684047, upload-time = "2026-01-27T11:38:57.005Z" }, + { url = "https://files.pythonhosted.org/packages/a0/80/714c85cc2d875aa540ae650cd28626ec518532423820e97c74fc8ab28998/packmol-21.2.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:240141292077e0dc92f9e28d5146b699b71925d439bab389d64258733ec82454", size = 651839, upload-time = "2026-01-27T11:38:58.943Z" }, + { url = "https://files.pythonhosted.org/packages/5e/3c/74d96bacddae1c577d7c73ac804b7deb2402402c9c4289e2d64963b92057/packmol-21.2.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:10e824bffed82af1fcf93891db07f9893e6249ffb24b7b4ea622aa33d6a510d2", size = 1220659, upload-time = "2026-01-27T11:39:00.878Z" }, + { url = "https://files.pythonhosted.org/packages/de/d9/a2c97c3c1b1bb05b43b91aae52d3503053ceb66e9908ca1e972ab4a7cede/packmol-21.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:53611d0f2e217028eb096ea8f442a876d5f7998e09b5d2aa834845cddadde1fa", size = 802292, upload-time = "2026-01-27T11:39:02.282Z" }, + { url = "https://files.pythonhosted.org/packages/fe/1d/04339fb903e4283c8fbbd138f91d0a7161be0f7f7d3c7646b267d25f9a0c/packmol-21.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:70359da9834db60e2818369c9b003bdc7d33c10be2c35941788895a948658bfb", size = 1627265, upload-time = "2026-01-27T11:39:04.066Z" }, + { url = "https://files.pythonhosted.org/packages/f6/36/5dd5daa682f0842c976c53f256ad9b03e27e4d4e2d2112acb9ef25169ffe/packmol-21.2.1-cp313-cp313-win32.whl", hash = "sha256:90d327314fea4ba4f54c01a669243969b989c2cdc5707187cec3023fe54ef87f", size = 220078, upload-time = "2026-01-27T11:39:05.506Z" }, + { url = "https://files.pythonhosted.org/packages/33/8c/902115ba3939deff1c135bd36c17d76df7306d5efa7551c88af70861a017/packmol-21.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:7e21bbe82e1b871ed3cc963759597d6d7d15e2ba5bc4bc154cec4276d97fb7c5", size = 220085, upload-time = "2026-01-27T11:39:06.788Z" }, + { url = "https://files.pythonhosted.org/packages/ec/a1/ec83a25f102bedc85e0ce63f1a9bfdbf37358da72e7cebca4e29524f2e37/packmol-21.2.1-cp313-cp313-win_arm64.whl", hash = "sha256:78e51c0f82dfe5e9fdaea5bfd4064a5f8a97a7b92b6f0a1609d080f412f25f57", size = 211724, upload-time = "2026-01-27T11:39:08.052Z" }, + { url = "https://files.pythonhosted.org/packages/f8/eb/e1370e254fa44026131ac27d4d6aaae1d5be0ca19dc31f615b7b625dcdbb/packmol-21.2.1-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:7a8b0c743958ca52ae855b487cb872852b66a68d90ea4a69291ca1e4052dde0a", size = 992712, upload-time = "2026-01-27T11:39:09.586Z" }, + { url = "https://files.pythonhosted.org/packages/b9/74/eaba6430918fa5cb797fa6ca0343b1dfbcd088fdd28bcbe42666843ca29d/packmol-21.2.1-cp314-cp314-macosx_15_0_x86_64.whl", hash = "sha256:d854ffe5219fb8774f0cf8e38f824117455327d006d73942f2880909a25be1fd", size = 1684049, upload-time = "2026-01-27T11:39:11.501Z" }, + { url = "https://files.pythonhosted.org/packages/59/aa/81bdd62cfa2df58927a54f823eadecdb716d3a82371541f02b48fa1a7f57/packmol-21.2.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b71e983d350f1e1fc020320b698e11b49c560b8a56093794d66105e2876ae866", size = 651837, upload-time = "2026-01-27T11:39:12.856Z" }, + { url = "https://files.pythonhosted.org/packages/9d/3f/0b324513cdd58ccba7361845995e55609e4af70347feaf5a5fdbc2851373/packmol-21.2.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:546810c8b92c780ce6289dbd806e428ceb294d0c285c74a9a8f5c6548eae8bbc", size = 1220659, upload-time = "2026-01-27T11:39:14.549Z" }, + { url = "https://files.pythonhosted.org/packages/bd/02/80692823dcf45f3c841a7ebc9fda8ef56663484207b1085b94609dd98b0f/packmol-21.2.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:389f0adfe32931caa8778aeaf982417338d1fc5a6ebb7be44c07c5bd538daa99", size = 802295, upload-time = "2026-01-27T11:39:15.964Z" }, + { url = "https://files.pythonhosted.org/packages/01/f5/1cff8c1d5f272580972f72a23dbf423f267d9c96dd4b1dcaa4cf28181d0d/packmol-21.2.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:14e6c52ac3de1e18d45971a72186616036ee6e402b208241fec50ba2b30247dd", size = 1627268, upload-time = "2026-01-27T11:39:17.685Z" }, + { url = "https://files.pythonhosted.org/packages/45/c0/1db24250c63d5c3eaa2df1564516f1f6a5b6ef5424da6bf562dec2c59cba/packmol-21.2.1-cp314-cp314-win32.whl", hash = "sha256:385c8111ea681100c2c415e48565a418da7678b82b5cc46abc71bacce356e77a", size = 225931, upload-time = "2026-01-27T11:39:19.296Z" }, + { url = "https://files.pythonhosted.org/packages/09/01/d9d4f22d259e545feb53b02ff2d09a93fcb228bb07bbfae572696fb0a5ca/packmol-21.2.1-cp314-cp314-win_amd64.whl", hash = "sha256:ac1d678c6b269a2a6bf0d13a9498e02b1e409ac4dcf573b1778a8700b124c3fa", size = 225938, upload-time = "2026-01-27T11:39:20.839Z" }, + { url = "https://files.pythonhosted.org/packages/1d/44/f76857dc0047a286bc002304671a733c102c375ecfee5ac843312bd59a2c/packmol-21.2.1-cp314-cp314-win_arm64.whl", hash = "sha256:3442f34c39c2a6fb4800c659f321115ade86ccaaa3327b8b5003f1b59adbdd88", size = 216917, upload-time = "2026-01-27T11:39:22.104Z" }, + { url = "https://files.pythonhosted.org/packages/b5/97/c8fcfb538e117eca1276391aa64d5f4ab4645f2630f9b76c27ce1df3068c/packmol-21.2.1-cp314-cp314t-macosx_15_0_arm64.whl", hash = "sha256:57c131720109881f91f1b8321e7681e52e0ac14761f1608ceee2b816b8d8036e", size = 992710, upload-time = "2026-01-27T11:39:23.897Z" }, + { url = "https://files.pythonhosted.org/packages/4c/75/c8bd46d19604df06f3da0ee95d4068db797913db841de4c776ea4ec9d869/packmol-21.2.1-cp314-cp314t-macosx_15_0_x86_64.whl", hash = "sha256:4f3865d7f4c1904220ac4b47d890fa14df41a75aa9667a71759ea37af9905a68", size = 1684045, upload-time = "2026-01-27T11:39:26.324Z" }, + { url = "https://files.pythonhosted.org/packages/a1/7d/bd598d89f461a59ee63766309765fefe5b17d881b583e63be8730fe3c374/packmol-21.2.1-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2e58651146160616a2776970d678818dbf0ff6fb5f764b19419b59618013a0f6", size = 651841, upload-time = "2026-01-27T11:39:27.931Z" }, + { url = "https://files.pythonhosted.org/packages/9f/9b/e3ffb244e0ef6de1d3c9b786b3a4d0579ba881637c334e5c5870b40f0702/packmol-21.2.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c959b5a7e74c78d6d9bd18b2e004b5b5bf9d9dc4ee6f8d1008d675be01b9899a", size = 1220663, upload-time = "2026-01-27T11:39:29.299Z" }, + { url = "https://files.pythonhosted.org/packages/bd/7c/f212553419191b1a47e179c6e4ffb7567893d4da8b7f4b54bf4e6aa98206/packmol-21.2.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:551f76dd4954c5c14a22d36959b96ac0eb399c181b9dcebacfa2a8367b0972af", size = 802300, upload-time = "2026-01-27T11:39:31.187Z" }, + { url = "https://files.pythonhosted.org/packages/e1/13/ec7f01feaa20fe8ec46d52e8d793458407f0d18c7e83c34606223402b0a2/packmol-21.2.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:087c9c8e9e01d502f5f9394f471e04665126c777f6ee6b747265ac78deb412ce", size = 1627269, upload-time = "2026-01-27T11:39:32.709Z" }, + { url = "https://files.pythonhosted.org/packages/c8/78/c2ed2f73179627f06c3a77ee15e3465a1f9bfe7c50aa4b4881561a726b67/packmol-21.2.1-cp314-cp314t-win32.whl", hash = "sha256:fb7805e25ca4865144a7d277d9af7daeb8ac21de75090e845034e2c16c9b2973", size = 225935, upload-time = "2026-01-27T11:39:34.238Z" }, + { url = "https://files.pythonhosted.org/packages/a9/a1/27206ac0bd030a939752c75d167651458ecb3cdec22169cb1bd1deda222e/packmol-21.2.1-cp314-cp314t-win_amd64.whl", hash = "sha256:ab666d63ed14e659387c1de161923a77f09a372a15f5815b0eca7c4c26efae18", size = 225940, upload-time = "2026-01-27T11:39:35.474Z" }, + { url = "https://files.pythonhosted.org/packages/fa/5d/3134e1bcad1d98b485b56a93efdcedc2a2fa4adca6cf0f941352e2e1da25/packmol-21.2.1-cp314-cp314t-win_arm64.whl", hash = "sha256:9da3a6f40b60343302ca251f148532892532e00678221b2ac258356f59883db9", size = 216914, upload-time = "2026-01-27T11:39:36.921Z" }, +] + [[package]] name = "palettable" version = "3.3.3" @@ -7863,100 +7949,100 @@ wheels = [ [[package]] name = "pillow" -version = "12.1.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/1f/42/5c74462b4fd957fcd7b13b04fb3205ff8349236ea74c7c375766d6c82288/pillow-12.1.1.tar.gz", hash = "sha256:9ad8fa5937ab05218e2b6a4cff30295ad35afd2f83ac592e68c0d871bb0fdbc4", size = 46980264, upload-time = "2026-02-11T04:23:07.146Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/1d/30/5bd3d794762481f8c8ae9c80e7b76ecea73b916959eb587521358ef0b2f9/pillow-12.1.1-cp310-cp310-macosx_10_10_x86_64.whl", hash = "sha256:1f1625b72740fdda5d77b4def688eb8fd6490975d06b909fd19f13f391e077e0", size = 5304099, upload-time = "2026-02-11T04:20:06.13Z" }, - { url = "https://files.pythonhosted.org/packages/bd/c1/aab9e8f3eeb4490180e357955e15c2ef74b31f64790ff356c06fb6cf6d84/pillow-12.1.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:178aa072084bd88ec759052feca8e56cbb14a60b39322b99a049e58090479713", size = 4657880, upload-time = "2026-02-11T04:20:09.291Z" }, - { url = "https://files.pythonhosted.org/packages/f1/0a/9879e30d56815ad529d3985aeff5af4964202425c27261a6ada10f7cbf53/pillow-12.1.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b66e95d05ba806247aaa1561f080abc7975daf715c30780ff92a20e4ec546e1b", size = 6222587, upload-time = "2026-02-11T04:20:10.82Z" }, - { url = "https://files.pythonhosted.org/packages/5a/5f/a1b72ff7139e4f89014e8d451442c74a774d5c43cd938fb0a9f878576b37/pillow-12.1.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:89c7e895002bbe49cdc5426150377cbbc04767d7547ed145473f496dfa40408b", size = 8027678, upload-time = "2026-02-11T04:20:12.455Z" }, - { url = "https://files.pythonhosted.org/packages/e2/c2/c7cb187dac79a3d22c3ebeae727abee01e077c8c7d930791dc592f335153/pillow-12.1.1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3a5cbdcddad0af3da87cb16b60d23648bc3b51967eb07223e9fed77a82b457c4", size = 6335777, upload-time = "2026-02-11T04:20:14.441Z" }, - { url = "https://files.pythonhosted.org/packages/0c/7b/f9b09a7804ec7336effb96c26d37c29d27225783dc1501b7d62dcef6ae25/pillow-12.1.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9f51079765661884a486727f0729d29054242f74b46186026582b4e4769918e4", size = 7027140, upload-time = "2026-02-11T04:20:16.387Z" }, - { url = "https://files.pythonhosted.org/packages/98/b2/2fa3c391550bd421b10849d1a2144c44abcd966daadd2f7c12e19ea988c4/pillow-12.1.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:99c1506ea77c11531d75e3a412832a13a71c7ebc8192ab9e4b2e355555920e3e", size = 6449855, upload-time = "2026-02-11T04:20:18.554Z" }, - { url = "https://files.pythonhosted.org/packages/96/ff/9caf4b5b950c669263c39e96c78c0d74a342c71c4f43fd031bb5cb7ceac9/pillow-12.1.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:36341d06738a9f66c8287cf8b876d24b18db9bd8740fa0672c74e259ad408cff", size = 7151329, upload-time = "2026-02-11T04:20:20.646Z" }, - { url = "https://files.pythonhosted.org/packages/7b/f8/4b24841f582704da675ca535935bccb32b00a6da1226820845fac4a71136/pillow-12.1.1-cp310-cp310-win32.whl", hash = "sha256:6c52f062424c523d6c4db85518774cc3d50f5539dd6eed32b8f6229b26f24d40", size = 6325574, upload-time = "2026-02-11T04:20:22.43Z" }, - { url = "https://files.pythonhosted.org/packages/f8/f9/9f6b01c0881d7036063aa6612ef04c0e2cad96be21325a1e92d0203f8e91/pillow-12.1.1-cp310-cp310-win_amd64.whl", hash = "sha256:c6008de247150668a705a6338156efb92334113421ceecf7438a12c9a12dab23", size = 7032347, upload-time = "2026-02-11T04:20:23.932Z" }, - { url = "https://files.pythonhosted.org/packages/79/13/c7922edded3dcdaf10c59297540b72785620abc0538872c819915746757d/pillow-12.1.1-cp310-cp310-win_arm64.whl", hash = "sha256:1a9b0ee305220b392e1124a764ee4265bd063e54a751a6b62eff69992f457fa9", size = 2453457, upload-time = "2026-02-11T04:20:25.392Z" }, - { url = "https://files.pythonhosted.org/packages/2b/46/5da1ec4a5171ee7bf1a0efa064aba70ba3d6e0788ce3f5acd1375d23c8c0/pillow-12.1.1-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:e879bb6cd5c73848ef3b2b48b8af9ff08c5b71ecda8048b7dd22d8a33f60be32", size = 5304084, upload-time = "2026-02-11T04:20:27.501Z" }, - { url = "https://files.pythonhosted.org/packages/78/93/a29e9bc02d1cf557a834da780ceccd54e02421627200696fcf805ebdc3fb/pillow-12.1.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:365b10bb9417dd4498c0e3b128018c4a624dc11c7b97d8cc54effe3b096f4c38", size = 4657866, upload-time = "2026-02-11T04:20:29.827Z" }, - { url = "https://files.pythonhosted.org/packages/13/84/583a4558d492a179d31e4aae32eadce94b9acf49c0337c4ce0b70e0a01f2/pillow-12.1.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d4ce8e329c93845720cd2014659ca67eac35f6433fd3050393d85f3ecef0dad5", size = 6232148, upload-time = "2026-02-11T04:20:31.329Z" }, - { url = "https://files.pythonhosted.org/packages/d5/e2/53c43334bbbb2d3b938978532fbda8e62bb6e0b23a26ce8592f36bcc4987/pillow-12.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fc354a04072b765eccf2204f588a7a532c9511e8b9c7f900e1b64e3e33487090", size = 8038007, upload-time = "2026-02-11T04:20:34.225Z" }, - { url = "https://files.pythonhosted.org/packages/b8/a6/3d0e79c8a9d58150dd98e199d7c1c56861027f3829a3a60b3c2784190180/pillow-12.1.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7e7976bf1910a8116b523b9f9f58bf410f3e8aa330cd9a2bb2953f9266ab49af", size = 6345418, upload-time = "2026-02-11T04:20:35.858Z" }, - { url = "https://files.pythonhosted.org/packages/a2/c8/46dfeac5825e600579157eea177be43e2f7ff4a99da9d0d0a49533509ac5/pillow-12.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:597bd9c8419bc7c6af5604e55847789b69123bbe25d65cc6ad3012b4f3c98d8b", size = 7034590, upload-time = "2026-02-11T04:20:37.91Z" }, - { url = "https://files.pythonhosted.org/packages/af/bf/e6f65d3db8a8bbfeaf9e13cc0417813f6319863a73de934f14b2229ada18/pillow-12.1.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2c1fc0f2ca5f96a3c8407e41cca26a16e46b21060fe6d5b099d2cb01412222f5", size = 6458655, upload-time = "2026-02-11T04:20:39.496Z" }, - { url = "https://files.pythonhosted.org/packages/f9/c2/66091f3f34a25894ca129362e510b956ef26f8fb67a0e6417bc5744e56f1/pillow-12.1.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:578510d88c6229d735855e1f278aa305270438d36a05031dfaae5067cc8eb04d", size = 7159286, upload-time = "2026-02-11T04:20:41.139Z" }, - { url = "https://files.pythonhosted.org/packages/7b/5a/24bc8eb526a22f957d0cec6243146744966d40857e3d8deb68f7902ca6c1/pillow-12.1.1-cp311-cp311-win32.whl", hash = "sha256:7311c0a0dcadb89b36b7025dfd8326ecfa36964e29913074d47382706e516a7c", size = 6328663, upload-time = "2026-02-11T04:20:43.184Z" }, - { url = "https://files.pythonhosted.org/packages/31/03/bef822e4f2d8f9d7448c133d0a18185d3cce3e70472774fffefe8b0ed562/pillow-12.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:fbfa2a7c10cc2623f412753cddf391c7f971c52ca40a3f65dc5039b2939e8563", size = 7031448, upload-time = "2026-02-11T04:20:44.696Z" }, - { url = "https://files.pythonhosted.org/packages/49/70/f76296f53610bd17b2e7d31728b8b7825e3ac3b5b3688b51f52eab7c0818/pillow-12.1.1-cp311-cp311-win_arm64.whl", hash = "sha256:b81b5e3511211631b3f672a595e3221252c90af017e399056d0faabb9538aa80", size = 2453651, upload-time = "2026-02-11T04:20:46.243Z" }, - { url = "https://files.pythonhosted.org/packages/07/d3/8df65da0d4df36b094351dce696f2989bec731d4f10e743b1c5f4da4d3bf/pillow-12.1.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ab323b787d6e18b3d91a72fc99b1a2c28651e4358749842b8f8dfacd28ef2052", size = 5262803, upload-time = "2026-02-11T04:20:47.653Z" }, - { url = "https://files.pythonhosted.org/packages/d6/71/5026395b290ff404b836e636f51d7297e6c83beceaa87c592718747e670f/pillow-12.1.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:adebb5bee0f0af4909c30db0d890c773d1a92ffe83da908e2e9e720f8edf3984", size = 4657601, upload-time = "2026-02-11T04:20:49.328Z" }, - { url = "https://files.pythonhosted.org/packages/b1/2e/1001613d941c67442f745aff0f7cc66dd8df9a9c084eb497e6a543ee6f7e/pillow-12.1.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:bb66b7cc26f50977108790e2456b7921e773f23db5630261102233eb355a3b79", size = 6234995, upload-time = "2026-02-11T04:20:51.032Z" }, - { url = "https://files.pythonhosted.org/packages/07/26/246ab11455b2549b9233dbd44d358d033a2f780fa9007b61a913c5b2d24e/pillow-12.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:aee2810642b2898bb187ced9b349e95d2a7272930796e022efaf12e99dccd293", size = 8045012, upload-time = "2026-02-11T04:20:52.882Z" }, - { url = "https://files.pythonhosted.org/packages/b2/8b/07587069c27be7535ac1fe33874e32de118fbd34e2a73b7f83436a88368c/pillow-12.1.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a0b1cd6232e2b618adcc54d9882e4e662a089d5768cd188f7c245b4c8c44a397", size = 6349638, upload-time = "2026-02-11T04:20:54.444Z" }, - { url = "https://files.pythonhosted.org/packages/ff/79/6df7b2ee763d619cda2fb4fea498e5f79d984dae304d45a8999b80d6cf5c/pillow-12.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7aac39bcf8d4770d089588a2e1dd111cbaa42df5a94be3114222057d68336bd0", size = 7041540, upload-time = "2026-02-11T04:20:55.97Z" }, - { url = "https://files.pythonhosted.org/packages/2c/5e/2ba19e7e7236d7529f4d873bdaf317a318896bac289abebd4bb00ef247f0/pillow-12.1.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:ab174cd7d29a62dd139c44bf74b698039328f45cb03b4596c43473a46656b2f3", size = 6462613, upload-time = "2026-02-11T04:20:57.542Z" }, - { url = "https://files.pythonhosted.org/packages/03/03/31216ec124bb5c3dacd74ce8efff4cc7f52643653bad4825f8f08c697743/pillow-12.1.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:339ffdcb7cbeaa08221cd401d517d4b1fe7a9ed5d400e4a8039719238620ca35", size = 7166745, upload-time = "2026-02-11T04:20:59.196Z" }, - { url = "https://files.pythonhosted.org/packages/1f/e7/7c4552d80052337eb28653b617eafdef39adfb137c49dd7e831b8dc13bc5/pillow-12.1.1-cp312-cp312-win32.whl", hash = "sha256:5d1f9575a12bed9e9eedd9a4972834b08c97a352bd17955ccdebfeca5913fa0a", size = 6328823, upload-time = "2026-02-11T04:21:01.385Z" }, - { url = "https://files.pythonhosted.org/packages/3d/17/688626d192d7261bbbf98846fc98995726bddc2c945344b65bec3a29d731/pillow-12.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:21329ec8c96c6e979cd0dfd29406c40c1d52521a90544463057d2aaa937d66a6", size = 7033367, upload-time = "2026-02-11T04:21:03.536Z" }, - { url = "https://files.pythonhosted.org/packages/ed/fe/a0ef1f73f939b0eca03ee2c108d0043a87468664770612602c63266a43c4/pillow-12.1.1-cp312-cp312-win_arm64.whl", hash = "sha256:af9a332e572978f0218686636610555ae3defd1633597be015ed50289a03c523", size = 2453811, upload-time = "2026-02-11T04:21:05.116Z" }, - { url = "https://files.pythonhosted.org/packages/d5/11/6db24d4bd7685583caeae54b7009584e38da3c3d4488ed4cd25b439de486/pillow-12.1.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:d242e8ac078781f1de88bf823d70c1a9b3c7950a44cdf4b7c012e22ccbcd8e4e", size = 4062689, upload-time = "2026-02-11T04:21:06.804Z" }, - { url = "https://files.pythonhosted.org/packages/33/c0/ce6d3b1fe190f0021203e0d9b5b99e57843e345f15f9ef22fcd43842fd21/pillow-12.1.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:02f84dfad02693676692746df05b89cf25597560db2857363a208e393429f5e9", size = 4138535, upload-time = "2026-02-11T04:21:08.452Z" }, - { url = "https://files.pythonhosted.org/packages/a0/c6/d5eb6a4fb32a3f9c21a8c7613ec706534ea1cf9f4b3663e99f0d83f6fca8/pillow-12.1.1-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:e65498daf4b583091ccbb2556c7000abf0f3349fcd57ef7adc9a84a394ed29f6", size = 3601364, upload-time = "2026-02-11T04:21:10.194Z" }, - { url = "https://files.pythonhosted.org/packages/14/a1/16c4b823838ba4c9c52c0e6bbda903a3fe5a1bdbf1b8eb4fff7156f3e318/pillow-12.1.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:6c6db3b84c87d48d0088943bf33440e0c42370b99b1c2a7989216f7b42eede60", size = 5262561, upload-time = "2026-02-11T04:21:11.742Z" }, - { url = "https://files.pythonhosted.org/packages/bb/ad/ad9dc98ff24f485008aa5cdedaf1a219876f6f6c42a4626c08bc4e80b120/pillow-12.1.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:8b7e5304e34942bf62e15184219a7b5ad4ff7f3bb5cca4d984f37df1a0e1aee2", size = 4657460, upload-time = "2026-02-11T04:21:13.786Z" }, - { url = "https://files.pythonhosted.org/packages/9e/1b/f1a4ea9a895b5732152789326202a82464d5254759fbacae4deea3069334/pillow-12.1.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:18e5bddd742a44b7e6b1e773ab5db102bd7a94c32555ba656e76d319d19c3850", size = 6232698, upload-time = "2026-02-11T04:21:15.949Z" }, - { url = "https://files.pythonhosted.org/packages/95/f4/86f51b8745070daf21fd2e5b1fe0eb35d4db9ca26e6d58366562fb56a743/pillow-12.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fc44ef1f3de4f45b50ccf9136999d71abb99dca7706bc75d222ed350b9fd2289", size = 8041706, upload-time = "2026-02-11T04:21:17.723Z" }, - { url = "https://files.pythonhosted.org/packages/29/9b/d6ecd956bb1266dd1045e995cce9b8d77759e740953a1c9aad9502a0461e/pillow-12.1.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5a8eb7ed8d4198bccbd07058416eeec51686b498e784eda166395a23eb99138e", size = 6346621, upload-time = "2026-02-11T04:21:19.547Z" }, - { url = "https://files.pythonhosted.org/packages/71/24/538bff45bde96535d7d998c6fed1a751c75ac7c53c37c90dc2601b243893/pillow-12.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:47b94983da0c642de92ced1702c5b6c292a84bd3a8e1d1702ff923f183594717", size = 7038069, upload-time = "2026-02-11T04:21:21.378Z" }, - { url = "https://files.pythonhosted.org/packages/94/0e/58cb1a6bc48f746bc4cb3adb8cabff73e2742c92b3bf7a220b7cf69b9177/pillow-12.1.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:518a48c2aab7ce596d3bf79d0e275661b846e86e4d0e7dec34712c30fe07f02a", size = 6460040, upload-time = "2026-02-11T04:21:23.148Z" }, - { url = "https://files.pythonhosted.org/packages/6c/57/9045cb3ff11eeb6c1adce3b2d60d7d299d7b273a2e6c8381a524abfdc474/pillow-12.1.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a550ae29b95c6dc13cf69e2c9dc5747f814c54eeb2e32d683e5e93af56caa029", size = 7164523, upload-time = "2026-02-11T04:21:25.01Z" }, - { url = "https://files.pythonhosted.org/packages/73/f2/9be9cb99f2175f0d4dbadd6616ce1bf068ee54a28277ea1bf1fbf729c250/pillow-12.1.1-cp313-cp313-win32.whl", hash = "sha256:a003d7422449f6d1e3a34e3dd4110c22148336918ddbfc6a32581cd54b2e0b2b", size = 6332552, upload-time = "2026-02-11T04:21:27.238Z" }, - { url = "https://files.pythonhosted.org/packages/3f/eb/b0834ad8b583d7d9d42b80becff092082a1c3c156bb582590fcc973f1c7c/pillow-12.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:344cf1e3dab3be4b1fa08e449323d98a2a3f819ad20f4b22e77a0ede31f0faa1", size = 7040108, upload-time = "2026-02-11T04:21:29.462Z" }, - { url = "https://files.pythonhosted.org/packages/d5/7d/fc09634e2aabdd0feabaff4a32f4a7d97789223e7c2042fd805ea4b4d2c2/pillow-12.1.1-cp313-cp313-win_arm64.whl", hash = "sha256:5c0dd1636633e7e6a0afe7bf6a51a14992b7f8e60de5789018ebbdfae55b040a", size = 2453712, upload-time = "2026-02-11T04:21:31.072Z" }, - { url = "https://files.pythonhosted.org/packages/19/2a/b9d62794fc8a0dd14c1943df68347badbd5511103e0d04c035ffe5cf2255/pillow-12.1.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0330d233c1a0ead844fc097a7d16c0abff4c12e856c0b325f231820fee1f39da", size = 5264880, upload-time = "2026-02-11T04:21:32.865Z" }, - { url = "https://files.pythonhosted.org/packages/26/9d/e03d857d1347fa5ed9247e123fcd2a97b6220e15e9cb73ca0a8d91702c6e/pillow-12.1.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:5dae5f21afb91322f2ff791895ddd8889e5e947ff59f71b46041c8ce6db790bc", size = 4660616, upload-time = "2026-02-11T04:21:34.97Z" }, - { url = "https://files.pythonhosted.org/packages/f7/ec/8a6d22afd02570d30954e043f09c32772bfe143ba9285e2fdb11284952cd/pillow-12.1.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2e0c664be47252947d870ac0d327fea7e63985a08794758aa8af5b6cb6ec0c9c", size = 6269008, upload-time = "2026-02-11T04:21:36.623Z" }, - { url = "https://files.pythonhosted.org/packages/3d/1d/6d875422c9f28a4a361f495a5f68d9de4a66941dc2c619103ca335fa6446/pillow-12.1.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:691ab2ac363b8217f7d31b3497108fb1f50faab2f75dfb03284ec2f217e87bf8", size = 8073226, upload-time = "2026-02-11T04:21:38.585Z" }, - { url = "https://files.pythonhosted.org/packages/a1/cd/134b0b6ee5eda6dc09e25e24b40fdafe11a520bc725c1d0bbaa5e00bf95b/pillow-12.1.1-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e9e8064fb1cc019296958595f6db671fba95209e3ceb0c4734c9baf97de04b20", size = 6380136, upload-time = "2026-02-11T04:21:40.562Z" }, - { url = "https://files.pythonhosted.org/packages/7a/a9/7628f013f18f001c1b98d8fffe3452f306a70dc6aba7d931019e0492f45e/pillow-12.1.1-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:472a8d7ded663e6162dafdf20015c486a7009483ca671cece7a9279b512fcb13", size = 7067129, upload-time = "2026-02-11T04:21:42.521Z" }, - { url = "https://files.pythonhosted.org/packages/1e/f8/66ab30a2193b277785601e82ee2d49f68ea575d9637e5e234faaa98efa4c/pillow-12.1.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:89b54027a766529136a06cfebeecb3a04900397a3590fd252160b888479517bf", size = 6491807, upload-time = "2026-02-11T04:21:44.22Z" }, - { url = "https://files.pythonhosted.org/packages/da/0b/a877a6627dc8318fdb84e357c5e1a758c0941ab1ddffdafd231983788579/pillow-12.1.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:86172b0831b82ce4f7877f280055892b31179e1576aa00d0df3bb1bbf8c3e524", size = 7190954, upload-time = "2026-02-11T04:21:46.114Z" }, - { url = "https://files.pythonhosted.org/packages/83/43/6f732ff85743cf746b1361b91665d9f5155e1483817f693f8d57ea93147f/pillow-12.1.1-cp313-cp313t-win32.whl", hash = "sha256:44ce27545b6efcf0fdbdceb31c9a5bdea9333e664cda58a7e674bb74608b3986", size = 6336441, upload-time = "2026-02-11T04:21:48.22Z" }, - { url = "https://files.pythonhosted.org/packages/3b/44/e865ef3986611bb75bfabdf94a590016ea327833f434558801122979cd0e/pillow-12.1.1-cp313-cp313t-win_amd64.whl", hash = "sha256:a285e3eb7a5a45a2ff504e31f4a8d1b12ef62e84e5411c6804a42197c1cf586c", size = 7045383, upload-time = "2026-02-11T04:21:50.015Z" }, - { url = "https://files.pythonhosted.org/packages/a8/c6/f4fb24268d0c6908b9f04143697ea18b0379490cb74ba9e8d41b898bd005/pillow-12.1.1-cp313-cp313t-win_arm64.whl", hash = "sha256:cc7d296b5ea4d29e6570dabeaed58d31c3fea35a633a69679fb03d7664f43fb3", size = 2456104, upload-time = "2026-02-11T04:21:51.633Z" }, - { url = "https://files.pythonhosted.org/packages/03/d0/bebb3ffbf31c5a8e97241476c4cf8b9828954693ce6744b4a2326af3e16b/pillow-12.1.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:417423db963cb4be8bac3fc1204fe61610f6abeed1580a7a2cbb2fbda20f12af", size = 4062652, upload-time = "2026-02-11T04:21:53.19Z" }, - { url = "https://files.pythonhosted.org/packages/2d/c0/0e16fb0addda4851445c28f8350d8c512f09de27bbb0d6d0bbf8b6709605/pillow-12.1.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:b957b71c6b2387610f556a7eb0828afbe40b4a98036fc0d2acfa5a44a0c2036f", size = 4138823, upload-time = "2026-02-11T04:22:03.088Z" }, - { url = "https://files.pythonhosted.org/packages/6b/fb/6170ec655d6f6bb6630a013dd7cf7bc218423d7b5fa9071bf63dc32175ae/pillow-12.1.1-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:097690ba1f2efdeb165a20469d59d8bb03c55fb6621eb2041a060ae8ea3e9642", size = 3601143, upload-time = "2026-02-11T04:22:04.909Z" }, - { url = "https://files.pythonhosted.org/packages/59/04/dc5c3f297510ba9a6837cbb318b87dd2b8f73eb41a43cc63767f65cb599c/pillow-12.1.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:2815a87ab27848db0321fb78c7f0b2c8649dee134b7f2b80c6a45c6831d75ccd", size = 5266254, upload-time = "2026-02-11T04:22:07.656Z" }, - { url = "https://files.pythonhosted.org/packages/05/30/5db1236b0d6313f03ebf97f5e17cda9ca060f524b2fcc875149a8360b21c/pillow-12.1.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:f7ed2c6543bad5a7d5530eb9e78c53132f93dfa44a28492db88b41cdab885202", size = 4657499, upload-time = "2026-02-11T04:22:09.613Z" }, - { url = "https://files.pythonhosted.org/packages/6f/18/008d2ca0eb612e81968e8be0bbae5051efba24d52debf930126d7eaacbba/pillow-12.1.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:652a2c9ccfb556235b2b501a3a7cf3742148cd22e04b5625c5fe057ea3e3191f", size = 6232137, upload-time = "2026-02-11T04:22:11.434Z" }, - { url = "https://files.pythonhosted.org/packages/70/f1/f14d5b8eeb4b2cd62b9f9f847eb6605f103df89ef619ac68f92f748614ea/pillow-12.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:d6e4571eedf43af33d0fc233a382a76e849badbccdf1ac438841308652a08e1f", size = 8042721, upload-time = "2026-02-11T04:22:13.321Z" }, - { url = "https://files.pythonhosted.org/packages/5a/d6/17824509146e4babbdabf04d8171491fa9d776f7061ff6e727522df9bd03/pillow-12.1.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b574c51cf7d5d62e9be37ba446224b59a2da26dc4c1bb2ecbe936a4fb1a7cb7f", size = 6347798, upload-time = "2026-02-11T04:22:15.449Z" }, - { url = "https://files.pythonhosted.org/packages/d1/ee/c85a38a9ab92037a75615aba572c85ea51e605265036e00c5b67dfafbfe2/pillow-12.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a37691702ed687799de29a518d63d4682d9016932db66d4e90c345831b02fb4e", size = 7039315, upload-time = "2026-02-11T04:22:17.24Z" }, - { url = "https://files.pythonhosted.org/packages/ec/f3/bc8ccc6e08a148290d7523bde4d9a0d6c981db34631390dc6e6ec34cacf6/pillow-12.1.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:f95c00d5d6700b2b890479664a06e754974848afaae5e21beb4d83c106923fd0", size = 6462360, upload-time = "2026-02-11T04:22:19.111Z" }, - { url = "https://files.pythonhosted.org/packages/f6/ab/69a42656adb1d0665ab051eec58a41f169ad295cf81ad45406963105408f/pillow-12.1.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:559b38da23606e68681337ad74622c4dbba02254fc9cb4488a305dd5975c7eeb", size = 7165438, upload-time = "2026-02-11T04:22:21.041Z" }, - { url = "https://files.pythonhosted.org/packages/02/46/81f7aa8941873f0f01d4b55cc543b0a3d03ec2ee30d617a0448bf6bd6dec/pillow-12.1.1-cp314-cp314-win32.whl", hash = "sha256:03edcc34d688572014ff223c125a3f77fb08091e4607e7745002fc214070b35f", size = 6431503, upload-time = "2026-02-11T04:22:22.833Z" }, - { url = "https://files.pythonhosted.org/packages/40/72/4c245f7d1044b67affc7f134a09ea619d4895333d35322b775b928180044/pillow-12.1.1-cp314-cp314-win_amd64.whl", hash = "sha256:50480dcd74fa63b8e78235957d302d98d98d82ccbfac4c7e12108ba9ecbdba15", size = 7176748, upload-time = "2026-02-11T04:22:24.64Z" }, - { url = "https://files.pythonhosted.org/packages/e4/ad/8a87bdbe038c5c698736e3348af5c2194ffb872ea52f11894c95f9305435/pillow-12.1.1-cp314-cp314-win_arm64.whl", hash = "sha256:5cb1785d97b0c3d1d1a16bc1d710c4a0049daefc4935f3a8f31f827f4d3d2e7f", size = 2544314, upload-time = "2026-02-11T04:22:26.685Z" }, - { url = "https://files.pythonhosted.org/packages/6c/9d/efd18493f9de13b87ede7c47e69184b9e859e4427225ea962e32e56a49bc/pillow-12.1.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:1f90cff8aa76835cba5769f0b3121a22bd4eb9e6884cfe338216e557a9a548b8", size = 5268612, upload-time = "2026-02-11T04:22:29.884Z" }, - { url = "https://files.pythonhosted.org/packages/f8/f1/4f42eb2b388eb2ffc660dcb7f7b556c1015c53ebd5f7f754965ef997585b/pillow-12.1.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1f1be78ce9466a7ee64bfda57bdba0f7cc499d9794d518b854816c41bf0aa4e9", size = 4660567, upload-time = "2026-02-11T04:22:31.799Z" }, - { url = "https://files.pythonhosted.org/packages/01/54/df6ef130fa43e4b82e32624a7b821a2be1c5653a5fdad8469687a7db4e00/pillow-12.1.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:42fc1f4677106188ad9a55562bbade416f8b55456f522430fadab3cef7cd4e60", size = 6269951, upload-time = "2026-02-11T04:22:33.921Z" }, - { url = "https://files.pythonhosted.org/packages/a9/48/618752d06cc44bb4aae8ce0cd4e6426871929ed7b46215638088270d9b34/pillow-12.1.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:98edb152429ab62a1818039744d8fbb3ccab98a7c29fc3d5fcef158f3f1f68b7", size = 8074769, upload-time = "2026-02-11T04:22:35.877Z" }, - { url = "https://files.pythonhosted.org/packages/c3/bd/f1d71eb39a72fa088d938655afba3e00b38018d052752f435838961127d8/pillow-12.1.1-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d470ab1178551dd17fdba0fef463359c41aaa613cdcd7ff8373f54be629f9f8f", size = 6381358, upload-time = "2026-02-11T04:22:37.698Z" }, - { url = "https://files.pythonhosted.org/packages/64/ef/c784e20b96674ed36a5af839305f55616f8b4f8aa8eeccf8531a6e312243/pillow-12.1.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6408a7b064595afcab0a49393a413732a35788f2a5092fdc6266952ed67de586", size = 7068558, upload-time = "2026-02-11T04:22:39.597Z" }, - { url = "https://files.pythonhosted.org/packages/73/cb/8059688b74422ae61278202c4e1ad992e8a2e7375227be0a21c6b87ca8d5/pillow-12.1.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5d8c41325b382c07799a3682c1c258469ea2ff97103c53717b7893862d0c98ce", size = 6493028, upload-time = "2026-02-11T04:22:42.73Z" }, - { url = "https://files.pythonhosted.org/packages/c6/da/e3c008ed7d2dd1f905b15949325934510b9d1931e5df999bb15972756818/pillow-12.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:c7697918b5be27424e9ce568193efd13d925c4481dd364e43f5dff72d33e10f8", size = 7191940, upload-time = "2026-02-11T04:22:44.543Z" }, - { url = "https://files.pythonhosted.org/packages/01/4a/9202e8d11714c1fc5951f2e1ef362f2d7fbc595e1f6717971d5dd750e969/pillow-12.1.1-cp314-cp314t-win32.whl", hash = "sha256:d2912fd8114fc5545aa3a4b5576512f64c55a03f3ebcca4c10194d593d43ea36", size = 6438736, upload-time = "2026-02-11T04:22:46.347Z" }, - { url = "https://files.pythonhosted.org/packages/f3/ca/cbce2327eb9885476b3957b2e82eb12c866a8b16ad77392864ad601022ce/pillow-12.1.1-cp314-cp314t-win_amd64.whl", hash = "sha256:4ceb838d4bd9dab43e06c363cab2eebf63846d6a4aeaea283bbdfd8f1a8ed58b", size = 7182894, upload-time = "2026-02-11T04:22:48.114Z" }, - { url = "https://files.pythonhosted.org/packages/ec/d2/de599c95ba0a973b94410477f8bf0b6f0b5e67360eb89bcb1ad365258beb/pillow-12.1.1-cp314-cp314t-win_arm64.whl", hash = "sha256:7b03048319bfc6170e93bd60728a1af51d3dd7704935feb228c4d4faab35d334", size = 2546446, upload-time = "2026-02-11T04:22:50.342Z" }, - { url = "https://files.pythonhosted.org/packages/56/11/5d43209aa4cb58e0cc80127956ff1796a68b928e6324bbf06ef4db34367b/pillow-12.1.1-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:600fd103672b925fe62ed08e0d874ea34d692474df6f4bf7ebe148b30f89f39f", size = 5228606, upload-time = "2026-02-11T04:22:52.106Z" }, - { url = "https://files.pythonhosted.org/packages/5f/d5/3b005b4e4fda6698b371fa6c21b097d4707585d7db99e98d9b0b87ac612a/pillow-12.1.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:665e1b916b043cef294bc54d47bf02d87e13f769bc4bc5fa225a24b3a6c5aca9", size = 4622321, upload-time = "2026-02-11T04:22:53.827Z" }, - { url = "https://files.pythonhosted.org/packages/df/36/ed3ea2d594356fd8037e5a01f6156c74bc8d92dbb0fa60746cc96cabb6e8/pillow-12.1.1-pp311-pypy311_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:495c302af3aad1ca67420ddd5c7bd480c8867ad173528767d906428057a11f0e", size = 5247579, upload-time = "2026-02-11T04:22:56.094Z" }, - { url = "https://files.pythonhosted.org/packages/54/9a/9cc3e029683cf6d20ae5085da0dafc63148e3252c2f13328e553aaa13cfb/pillow-12.1.1-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:8fd420ef0c52c88b5a035a0886f367748c72147b2b8f384c9d12656678dfdfa9", size = 6989094, upload-time = "2026-02-11T04:22:58.288Z" }, - { url = "https://files.pythonhosted.org/packages/00/98/fc53ab36da80b88df0967896b6c4b4cd948a0dc5aa40a754266aa3ae48b3/pillow-12.1.1-pp311-pypy311_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f975aa7ef9684ce7e2c18a3aa8f8e2106ce1e46b94ab713d156b2898811651d3", size = 5313850, upload-time = "2026-02-11T04:23:00.554Z" }, - { url = "https://files.pythonhosted.org/packages/30/02/00fa585abfd9fe9d73e5f6e554dc36cc2b842898cbfc46d70353dae227f8/pillow-12.1.1-pp311-pypy311_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8089c852a56c2966cf18835db62d9b34fef7ba74c726ad943928d494fa7f4735", size = 5963343, upload-time = "2026-02-11T04:23:02.934Z" }, - { url = "https://files.pythonhosted.org/packages/f2/26/c56ce33ca856e358d27fda9676c055395abddb82c35ac0f593877ed4562e/pillow-12.1.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:cb9bb857b2d057c6dfc72ac5f3b44836924ba15721882ef103cecb40d002d80e", size = 7029880, upload-time = "2026-02-11T04:23:04.783Z" }, +version = "12.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d0/02/d52c733a2452ef1ffcc123b68e6606d07276b0e358db70eabad7e40042b7/pillow-12.1.0.tar.gz", hash = "sha256:5c5ae0a06e9ea030ab786b0251b32c7e4ce10e58d983c0d5c56029455180b5b9", size = 46977283, upload-time = "2026-01-02T09:13:29.892Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fe/41/f73d92b6b883a579e79600d391f2e21cb0df767b2714ecbd2952315dfeef/pillow-12.1.0-cp310-cp310-macosx_10_10_x86_64.whl", hash = "sha256:fb125d860738a09d363a88daa0f59c4533529a90e564785e20fe875b200b6dbd", size = 5304089, upload-time = "2026-01-02T09:10:24.953Z" }, + { url = "https://files.pythonhosted.org/packages/94/55/7aca2891560188656e4a91ed9adba305e914a4496800da6b5c0a15f09edf/pillow-12.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:cad302dc10fac357d3467a74a9561c90609768a6f73a1923b0fd851b6486f8b0", size = 4657815, upload-time = "2026-01-02T09:10:27.063Z" }, + { url = "https://files.pythonhosted.org/packages/e9/d2/b28221abaa7b4c40b7dba948f0f6a708bd7342c4d47ce342f0ea39643974/pillow-12.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:a40905599d8079e09f25027423aed94f2823adaf2868940de991e53a449e14a8", size = 6222593, upload-time = "2026-01-02T09:10:29.115Z" }, + { url = "https://files.pythonhosted.org/packages/71/b8/7a61fb234df6a9b0b479f69e66901209d89ff72a435b49933f9122f94cac/pillow-12.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:92a7fe4225365c5e3a8e598982269c6d6698d3e783b3b1ae979e7819f9cd55c1", size = 8027579, upload-time = "2026-01-02T09:10:31.182Z" }, + { url = "https://files.pythonhosted.org/packages/ea/51/55c751a57cc524a15a0e3db20e5cde517582359508d62305a627e77fd295/pillow-12.1.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f10c98f49227ed8383d28174ee95155a675c4ed7f85e2e573b04414f7e371bda", size = 6335760, upload-time = "2026-01-02T09:10:33.02Z" }, + { url = "https://files.pythonhosted.org/packages/dc/7c/60e3e6f5e5891a1a06b4c910f742ac862377a6fe842f7184df4a274ce7bf/pillow-12.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8637e29d13f478bc4f153d8daa9ffb16455f0a6cb287da1b432fdad2bfbd66c7", size = 7027127, upload-time = "2026-01-02T09:10:35.009Z" }, + { url = "https://files.pythonhosted.org/packages/06/37/49d47266ba50b00c27ba63a7c898f1bb41a29627ced8c09e25f19ebec0ff/pillow-12.1.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:21e686a21078b0f9cb8c8a961d99e6a4ddb88e0fc5ea6e130172ddddc2e5221a", size = 6449896, upload-time = "2026-01-02T09:10:36.793Z" }, + { url = "https://files.pythonhosted.org/packages/f9/e5/67fd87d2913902462cd9b79c6211c25bfe95fcf5783d06e1367d6d9a741f/pillow-12.1.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:2415373395a831f53933c23ce051021e79c8cd7979822d8cc478547a3f4da8ef", size = 7151345, upload-time = "2026-01-02T09:10:39.064Z" }, + { url = "https://files.pythonhosted.org/packages/bd/15/f8c7abf82af68b29f50d77c227e7a1f87ce02fdc66ded9bf603bc3b41180/pillow-12.1.0-cp310-cp310-win32.whl", hash = "sha256:e75d3dba8fc1ddfec0cd752108f93b83b4f8d6ab40e524a95d35f016b9683b09", size = 6325568, upload-time = "2026-01-02T09:10:41.035Z" }, + { url = "https://files.pythonhosted.org/packages/d4/24/7d1c0e160b6b5ac2605ef7d8be537e28753c0db5363d035948073f5513d7/pillow-12.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:64efdf00c09e31efd754448a383ea241f55a994fd079866b92d2bbff598aad91", size = 7032367, upload-time = "2026-01-02T09:10:43.09Z" }, + { url = "https://files.pythonhosted.org/packages/f4/03/41c038f0d7a06099254c60f618d0ec7be11e79620fc23b8e85e5b31d9a44/pillow-12.1.0-cp310-cp310-win_arm64.whl", hash = "sha256:f188028b5af6b8fb2e9a76ac0f841a575bd1bd396e46ef0840d9b88a48fdbcea", size = 2452345, upload-time = "2026-01-02T09:10:44.795Z" }, + { url = "https://files.pythonhosted.org/packages/43/c4/bf8328039de6cc22182c3ef007a2abfbbdab153661c0a9aa78af8d706391/pillow-12.1.0-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:a83e0850cb8f5ac975291ebfc4170ba481f41a28065277f7f735c202cd8e0af3", size = 5304057, upload-time = "2026-01-02T09:10:46.627Z" }, + { url = "https://files.pythonhosted.org/packages/43/06/7264c0597e676104cc22ca73ee48f752767cd4b1fe084662620b17e10120/pillow-12.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:b6e53e82ec2db0717eabb276aa56cf4e500c9a7cec2c2e189b55c24f65a3e8c0", size = 4657811, upload-time = "2026-01-02T09:10:49.548Z" }, + { url = "https://files.pythonhosted.org/packages/72/64/f9189e44474610daf83da31145fa56710b627b5c4c0b9c235e34058f6b31/pillow-12.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:40a8e3b9e8773876d6e30daed22f016509e3987bab61b3b7fe309d7019a87451", size = 6232243, upload-time = "2026-01-02T09:10:51.62Z" }, + { url = "https://files.pythonhosted.org/packages/ef/30/0df458009be6a4caca4ca2c52975e6275c387d4e5c95544e34138b41dc86/pillow-12.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:800429ac32c9b72909c671aaf17ecd13110f823ddb7db4dfef412a5587c2c24e", size = 8037872, upload-time = "2026-01-02T09:10:53.446Z" }, + { url = "https://files.pythonhosted.org/packages/e4/86/95845d4eda4f4f9557e25381d70876aa213560243ac1a6d619c46caaedd9/pillow-12.1.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0b022eaaf709541b391ee069f0022ee5b36c709df71986e3f7be312e46f42c84", size = 6345398, upload-time = "2026-01-02T09:10:55.426Z" }, + { url = "https://files.pythonhosted.org/packages/5c/1f/8e66ab9be3aaf1435bc03edd1ebdf58ffcd17f7349c1d970cafe87af27d9/pillow-12.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1f345e7bc9d7f368887c712aa5054558bad44d2a301ddf9248599f4161abc7c0", size = 7034667, upload-time = "2026-01-02T09:10:57.11Z" }, + { url = "https://files.pythonhosted.org/packages/f9/f6/683b83cb9b1db1fb52b87951b1c0b99bdcfceaa75febf11406c19f82cb5e/pillow-12.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d70347c8a5b7ccd803ec0c85c8709f036e6348f1e6a5bf048ecd9c64d3550b8b", size = 6458743, upload-time = "2026-01-02T09:10:59.331Z" }, + { url = "https://files.pythonhosted.org/packages/9a/7d/de833d63622538c1d58ce5395e7c6cb7e7dce80decdd8bde4a484e095d9f/pillow-12.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1fcc52d86ce7a34fd17cb04e87cfdb164648a3662a6f20565910a99653d66c18", size = 7159342, upload-time = "2026-01-02T09:11:01.82Z" }, + { url = "https://files.pythonhosted.org/packages/8c/40/50d86571c9e5868c42b81fe7da0c76ca26373f3b95a8dd675425f4a92ec1/pillow-12.1.0-cp311-cp311-win32.whl", hash = "sha256:3ffaa2f0659e2f740473bcf03c702c39a8d4b2b7ffc629052028764324842c64", size = 6328655, upload-time = "2026-01-02T09:11:04.556Z" }, + { url = "https://files.pythonhosted.org/packages/6c/af/b1d7e301c4cd26cd45d4af884d9ee9b6fab893b0ad2450d4746d74a6968c/pillow-12.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:806f3987ffe10e867bab0ddad45df1148a2b98221798457fa097ad85d6e8bc75", size = 7031469, upload-time = "2026-01-02T09:11:06.538Z" }, + { url = "https://files.pythonhosted.org/packages/48/36/d5716586d887fb2a810a4a61518a327a1e21c8b7134c89283af272efe84b/pillow-12.1.0-cp311-cp311-win_arm64.whl", hash = "sha256:9f5fefaca968e700ad1a4a9de98bf0869a94e397fe3524c4c9450c1445252304", size = 2452515, upload-time = "2026-01-02T09:11:08.226Z" }, + { url = "https://files.pythonhosted.org/packages/20/31/dc53fe21a2f2996e1b7d92bf671cdb157079385183ef7c1ae08b485db510/pillow-12.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:a332ac4ccb84b6dde65dbace8431f3af08874bf9770719d32a635c4ef411b18b", size = 5262642, upload-time = "2026-01-02T09:11:10.138Z" }, + { url = "https://files.pythonhosted.org/packages/ab/c1/10e45ac9cc79419cedf5121b42dcca5a50ad2b601fa080f58c22fb27626e/pillow-12.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:907bfa8a9cb790748a9aa4513e37c88c59660da3bcfffbd24a7d9e6abf224551", size = 4657464, upload-time = "2026-01-02T09:11:12.319Z" }, + { url = "https://files.pythonhosted.org/packages/ad/26/7b82c0ab7ef40ebede7a97c72d473bda5950f609f8e0c77b04af574a0ddb/pillow-12.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:efdc140e7b63b8f739d09a99033aa430accce485ff78e6d311973a67b6bf3208", size = 6234878, upload-time = "2026-01-02T09:11:14.096Z" }, + { url = "https://files.pythonhosted.org/packages/76/25/27abc9792615b5e886ca9411ba6637b675f1b77af3104710ac7353fe5605/pillow-12.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:bef9768cab184e7ae6e559c032e95ba8d07b3023c289f79a2bd36e8bf85605a5", size = 8044868, upload-time = "2026-01-02T09:11:15.903Z" }, + { url = "https://files.pythonhosted.org/packages/0a/ea/f200a4c36d836100e7bc738fc48cd963d3ba6372ebc8298a889e0cfc3359/pillow-12.1.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:742aea052cf5ab5034a53c3846165bc3ce88d7c38e954120db0ab867ca242661", size = 6349468, upload-time = "2026-01-02T09:11:17.631Z" }, + { url = "https://files.pythonhosted.org/packages/11/8f/48d0b77ab2200374c66d344459b8958c86693be99526450e7aee714e03e4/pillow-12.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a6dfc2af5b082b635af6e08e0d1f9f1c4e04d17d4e2ca0ef96131e85eda6eb17", size = 7041518, upload-time = "2026-01-02T09:11:19.389Z" }, + { url = "https://files.pythonhosted.org/packages/1d/23/c281182eb986b5d31f0a76d2a2c8cd41722d6fb8ed07521e802f9bba52de/pillow-12.1.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:609e89d9f90b581c8d16358c9087df76024cf058fa693dd3e1e1620823f39670", size = 6462829, upload-time = "2026-01-02T09:11:21.28Z" }, + { url = "https://files.pythonhosted.org/packages/25/ef/7018273e0faac099d7b00982abdcc39142ae6f3bd9ceb06de09779c4a9d6/pillow-12.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:43b4899cfd091a9693a1278c4982f3e50f7fb7cff5153b05174b4afc9593b616", size = 7166756, upload-time = "2026-01-02T09:11:23.559Z" }, + { url = "https://files.pythonhosted.org/packages/8f/c8/993d4b7ab2e341fe02ceef9576afcf5830cdec640be2ac5bee1820d693d4/pillow-12.1.0-cp312-cp312-win32.whl", hash = "sha256:aa0c9cc0b82b14766a99fbe6084409972266e82f459821cd26997a488a7261a7", size = 6328770, upload-time = "2026-01-02T09:11:25.661Z" }, + { url = "https://files.pythonhosted.org/packages/a7/87/90b358775a3f02765d87655237229ba64a997b87efa8ccaca7dd3e36e7a7/pillow-12.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:d70534cea9e7966169ad29a903b99fc507e932069a881d0965a1a84bb57f6c6d", size = 7033406, upload-time = "2026-01-02T09:11:27.474Z" }, + { url = "https://files.pythonhosted.org/packages/5d/cf/881b457eccacac9e5b2ddd97d5071fb6d668307c57cbf4e3b5278e06e536/pillow-12.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:65b80c1ee7e14a87d6a068dd3b0aea268ffcabfe0498d38661b00c5b4b22e74c", size = 2452612, upload-time = "2026-01-02T09:11:29.309Z" }, + { url = "https://files.pythonhosted.org/packages/dd/c7/2530a4aa28248623e9d7f27316b42e27c32ec410f695929696f2e0e4a778/pillow-12.1.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7b5dd7cbae20285cdb597b10eb5a2c13aa9de6cde9bb64a3c1317427b1db1ae1", size = 4062543, upload-time = "2026-01-02T09:11:31.566Z" }, + { url = "https://files.pythonhosted.org/packages/8f/1f/40b8eae823dc1519b87d53c30ed9ef085506b05281d313031755c1705f73/pillow-12.1.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:29a4cef9cb672363926f0470afc516dbf7305a14d8c54f7abbb5c199cd8f8179", size = 4138373, upload-time = "2026-01-02T09:11:33.367Z" }, + { url = "https://files.pythonhosted.org/packages/d4/77/6fa60634cf06e52139fd0e89e5bbf055e8166c691c42fb162818b7fda31d/pillow-12.1.0-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:681088909d7e8fa9e31b9799aaa59ba5234c58e5e4f1951b4c4d1082a2e980e0", size = 3601241, upload-time = "2026-01-02T09:11:35.011Z" }, + { url = "https://files.pythonhosted.org/packages/4f/bf/28ab865de622e14b747f0cd7877510848252d950e43002e224fb1c9ababf/pillow-12.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:983976c2ab753166dc66d36af6e8ec15bb511e4a25856e2227e5f7e00a160587", size = 5262410, upload-time = "2026-01-02T09:11:36.682Z" }, + { url = "https://files.pythonhosted.org/packages/1c/34/583420a1b55e715937a85bd48c5c0991598247a1fd2eb5423188e765ea02/pillow-12.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:db44d5c160a90df2d24a24760bbd37607d53da0b34fb546c4c232af7192298ac", size = 4657312, upload-time = "2026-01-02T09:11:38.535Z" }, + { url = "https://files.pythonhosted.org/packages/1d/fd/f5a0896839762885b3376ff04878f86ab2b097c2f9a9cdccf4eda8ba8dc0/pillow-12.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6b7a9d1db5dad90e2991645874f708e87d9a3c370c243c2d7684d28f7e133e6b", size = 6232605, upload-time = "2026-01-02T09:11:40.602Z" }, + { url = "https://files.pythonhosted.org/packages/98/aa/938a09d127ac1e70e6ed467bd03834350b33ef646b31edb7452d5de43792/pillow-12.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:6258f3260986990ba2fa8a874f8b6e808cf5abb51a94015ca3dc3c68aa4f30ea", size = 8041617, upload-time = "2026-01-02T09:11:42.721Z" }, + { url = "https://files.pythonhosted.org/packages/17/e8/538b24cb426ac0186e03f80f78bc8dc7246c667f58b540bdd57c71c9f79d/pillow-12.1.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e115c15e3bc727b1ca3e641a909f77f8ca72a64fff150f666fcc85e57701c26c", size = 6346509, upload-time = "2026-01-02T09:11:44.955Z" }, + { url = "https://files.pythonhosted.org/packages/01/9a/632e58ec89a32738cabfd9ec418f0e9898a2b4719afc581f07c04a05e3c9/pillow-12.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6741e6f3074a35e47c77b23a4e4f2d90db3ed905cb1c5e6e0d49bff2045632bc", size = 7038117, upload-time = "2026-01-02T09:11:46.736Z" }, + { url = "https://files.pythonhosted.org/packages/c7/a2/d40308cf86eada842ca1f3ffa45d0ca0df7e4ab33c83f81e73f5eaed136d/pillow-12.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:935b9d1aed48fcfb3f838caac506f38e29621b44ccc4f8a64d575cb1b2a88644", size = 6460151, upload-time = "2026-01-02T09:11:48.625Z" }, + { url = "https://files.pythonhosted.org/packages/f1/88/f5b058ad6453a085c5266660a1417bdad590199da1b32fb4efcff9d33b05/pillow-12.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:5fee4c04aad8932da9f8f710af2c1a15a83582cfb884152a9caa79d4efcdbf9c", size = 7164534, upload-time = "2026-01-02T09:11:50.445Z" }, + { url = "https://files.pythonhosted.org/packages/19/ce/c17334caea1db789163b5d855a5735e47995b0b5dc8745e9a3605d5f24c0/pillow-12.1.0-cp313-cp313-win32.whl", hash = "sha256:a786bf667724d84aa29b5db1c61b7bfdde380202aaca12c3461afd6b71743171", size = 6332551, upload-time = "2026-01-02T09:11:52.234Z" }, + { url = "https://files.pythonhosted.org/packages/e5/07/74a9d941fa45c90a0d9465098fe1ec85de3e2afbdc15cc4766622d516056/pillow-12.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:461f9dfdafa394c59cd6d818bdfdbab4028b83b02caadaff0ffd433faf4c9a7a", size = 7040087, upload-time = "2026-01-02T09:11:54.822Z" }, + { url = "https://files.pythonhosted.org/packages/88/09/c99950c075a0e9053d8e880595926302575bc742b1b47fe1bbcc8d388d50/pillow-12.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:9212d6b86917a2300669511ed094a9406888362e085f2431a7da985a6b124f45", size = 2452470, upload-time = "2026-01-02T09:11:56.522Z" }, + { url = "https://files.pythonhosted.org/packages/b5/ba/970b7d85ba01f348dee4d65412476321d40ee04dcb51cd3735b9dc94eb58/pillow-12.1.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:00162e9ca6d22b7c3ee8e61faa3c3253cd19b6a37f126cad04f2f88b306f557d", size = 5264816, upload-time = "2026-01-02T09:11:58.227Z" }, + { url = "https://files.pythonhosted.org/packages/10/60/650f2fb55fdba7a510d836202aa52f0baac633e50ab1cf18415d332188fb/pillow-12.1.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:7d6daa89a00b58c37cb1747ec9fb7ac3bc5ffd5949f5888657dfddde6d1312e0", size = 4660472, upload-time = "2026-01-02T09:12:00.798Z" }, + { url = "https://files.pythonhosted.org/packages/2b/c0/5273a99478956a099d533c4f46cbaa19fd69d606624f4334b85e50987a08/pillow-12.1.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:e2479c7f02f9d505682dc47df8c0ea1fc5e264c4d1629a5d63fe3e2334b89554", size = 6268974, upload-time = "2026-01-02T09:12:02.572Z" }, + { url = "https://files.pythonhosted.org/packages/b4/26/0bf714bc2e73d5267887d47931d53c4ceeceea6978148ed2ab2a4e6463c4/pillow-12.1.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f188d580bd870cda1e15183790d1cc2fa78f666e76077d103edf048eed9c356e", size = 8073070, upload-time = "2026-01-02T09:12:04.75Z" }, + { url = "https://files.pythonhosted.org/packages/43/cf/1ea826200de111a9d65724c54f927f3111dc5ae297f294b370a670c17786/pillow-12.1.0-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0fde7ec5538ab5095cc02df38ee99b0443ff0e1c847a045554cf5f9af1f4aa82", size = 6380176, upload-time = "2026-01-02T09:12:06.626Z" }, + { url = "https://files.pythonhosted.org/packages/03/e0/7938dd2b2013373fd85d96e0f38d62b7a5a262af21ac274250c7ca7847c9/pillow-12.1.0-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0ed07dca4a8464bada6139ab38f5382f83e5f111698caf3191cb8dbf27d908b4", size = 7067061, upload-time = "2026-01-02T09:12:08.624Z" }, + { url = "https://files.pythonhosted.org/packages/86/ad/a2aa97d37272a929a98437a8c0ac37b3cf012f4f8721e1bd5154699b2518/pillow-12.1.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:f45bd71d1fa5e5749587613037b172e0b3b23159d1c00ef2fc920da6f470e6f0", size = 6491824, upload-time = "2026-01-02T09:12:10.488Z" }, + { url = "https://files.pythonhosted.org/packages/a4/44/80e46611b288d51b115826f136fb3465653c28f491068a72d3da49b54cd4/pillow-12.1.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:277518bf4fe74aa91489e1b20577473b19ee70fb97c374aa50830b279f25841b", size = 7190911, upload-time = "2026-01-02T09:12:12.772Z" }, + { url = "https://files.pythonhosted.org/packages/86/77/eacc62356b4cf81abe99ff9dbc7402750044aed02cfd6a503f7c6fc11f3e/pillow-12.1.0-cp313-cp313t-win32.whl", hash = "sha256:7315f9137087c4e0ee73a761b163fc9aa3b19f5f606a7fc08d83fd3e4379af65", size = 6336445, upload-time = "2026-01-02T09:12:14.775Z" }, + { url = "https://files.pythonhosted.org/packages/e7/3c/57d81d0b74d218706dafccb87a87ea44262c43eef98eb3b164fd000e0491/pillow-12.1.0-cp313-cp313t-win_amd64.whl", hash = "sha256:0ddedfaa8b5f0b4ffbc2fa87b556dc59f6bb4ecb14a53b33f9189713ae8053c0", size = 7045354, upload-time = "2026-01-02T09:12:16.599Z" }, + { url = "https://files.pythonhosted.org/packages/ac/82/8b9b97bba2e3576a340f93b044a3a3a09841170ab4c1eb0d5c93469fd32f/pillow-12.1.0-cp313-cp313t-win_arm64.whl", hash = "sha256:80941e6d573197a0c28f394753de529bb436b1ca990ed6e765cf42426abc39f8", size = 2454547, upload-time = "2026-01-02T09:12:18.704Z" }, + { url = "https://files.pythonhosted.org/packages/8c/87/bdf971d8bbcf80a348cc3bacfcb239f5882100fe80534b0ce67a784181d8/pillow-12.1.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:5cb7bc1966d031aec37ddb9dcf15c2da5b2e9f7cc3ca7c54473a20a927e1eb91", size = 4062533, upload-time = "2026-01-02T09:12:20.791Z" }, + { url = "https://files.pythonhosted.org/packages/ff/4f/5eb37a681c68d605eb7034c004875c81f86ec9ef51f5be4a63eadd58859a/pillow-12.1.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:97e9993d5ed946aba26baf9c1e8cf18adbab584b99f452ee72f7ee8acb882796", size = 4138546, upload-time = "2026-01-02T09:12:23.664Z" }, + { url = "https://files.pythonhosted.org/packages/11/6d/19a95acb2edbace40dcd582d077b991646b7083c41b98da4ed7555b59733/pillow-12.1.0-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:414b9a78e14ffeb98128863314e62c3f24b8a86081066625700b7985b3f529bd", size = 3601163, upload-time = "2026-01-02T09:12:26.338Z" }, + { url = "https://files.pythonhosted.org/packages/fc/36/2b8138e51cb42e4cc39c3297713455548be855a50558c3ac2beebdc251dd/pillow-12.1.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:e6bdb408f7c9dd2a5ff2b14a3b0bb6d4deb29fb9961e6eb3ae2031ae9a5cec13", size = 5266086, upload-time = "2026-01-02T09:12:28.782Z" }, + { url = "https://files.pythonhosted.org/packages/53/4b/649056e4d22e1caa90816bf99cef0884aed607ed38075bd75f091a607a38/pillow-12.1.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3413c2ae377550f5487991d444428f1a8ae92784aac79caa8b1e3b89b175f77e", size = 4657344, upload-time = "2026-01-02T09:12:31.117Z" }, + { url = "https://files.pythonhosted.org/packages/6c/6b/c5742cea0f1ade0cd61485dc3d81f05261fc2276f537fbdc00802de56779/pillow-12.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:e5dcbe95016e88437ecf33544ba5db21ef1b8dd6e1b434a2cb2a3d605299e643", size = 6232114, upload-time = "2026-01-02T09:12:32.936Z" }, + { url = "https://files.pythonhosted.org/packages/bf/8f/9f521268ce22d63991601aafd3d48d5ff7280a246a1ef62d626d67b44064/pillow-12.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:d0a7735df32ccbcc98b98a1ac785cc4b19b580be1bdf0aeb5c03223220ea09d5", size = 8042708, upload-time = "2026-01-02T09:12:34.78Z" }, + { url = "https://files.pythonhosted.org/packages/1a/eb/257f38542893f021502a1bbe0c2e883c90b5cff26cc33b1584a841a06d30/pillow-12.1.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0c27407a2d1b96774cbc4a7594129cc027339fd800cd081e44497722ea1179de", size = 6347762, upload-time = "2026-01-02T09:12:36.748Z" }, + { url = "https://files.pythonhosted.org/packages/c4/5a/8ba375025701c09b309e8d5163c5a4ce0102fa86bbf8800eb0d7ac87bc51/pillow-12.1.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:15c794d74303828eaa957ff8070846d0efe8c630901a1c753fdc63850e19ecd9", size = 7039265, upload-time = "2026-01-02T09:12:39.082Z" }, + { url = "https://files.pythonhosted.org/packages/cf/dc/cf5e4cdb3db533f539e88a7bbf9f190c64ab8a08a9bc7a4ccf55067872e4/pillow-12.1.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c990547452ee2800d8506c4150280757f88532f3de2a58e3022e9b179107862a", size = 6462341, upload-time = "2026-01-02T09:12:40.946Z" }, + { url = "https://files.pythonhosted.org/packages/d0/47/0291a25ac9550677e22eda48510cfc4fa4b2ef0396448b7fbdc0a6946309/pillow-12.1.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:b63e13dd27da389ed9475b3d28510f0f954bca0041e8e551b2a4eb1eab56a39a", size = 7165395, upload-time = "2026-01-02T09:12:42.706Z" }, + { url = "https://files.pythonhosted.org/packages/4f/4c/e005a59393ec4d9416be06e6b45820403bb946a778e39ecec62f5b2b991e/pillow-12.1.0-cp314-cp314-win32.whl", hash = "sha256:1a949604f73eb07a8adab38c4fe50791f9919344398bdc8ac6b307f755fc7030", size = 6431413, upload-time = "2026-01-02T09:12:44.944Z" }, + { url = "https://files.pythonhosted.org/packages/1c/af/f23697f587ac5f9095d67e31b81c95c0249cd461a9798a061ed6709b09b5/pillow-12.1.0-cp314-cp314-win_amd64.whl", hash = "sha256:4f9f6a650743f0ddee5593ac9e954ba1bdbc5e150bc066586d4f26127853ab94", size = 7176779, upload-time = "2026-01-02T09:12:46.727Z" }, + { url = "https://files.pythonhosted.org/packages/b3/36/6a51abf8599232f3e9afbd16d52829376a68909fe14efe29084445db4b73/pillow-12.1.0-cp314-cp314-win_arm64.whl", hash = "sha256:808b99604f7873c800c4840f55ff389936ef1948e4e87645eaf3fccbc8477ac4", size = 2543105, upload-time = "2026-01-02T09:12:49.243Z" }, + { url = "https://files.pythonhosted.org/packages/82/54/2e1dd20c8749ff225080d6ba465a0cab4387f5db0d1c5fb1439e2d99923f/pillow-12.1.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:bc11908616c8a283cf7d664f77411a5ed2a02009b0097ff8abbba5e79128ccf2", size = 5268571, upload-time = "2026-01-02T09:12:51.11Z" }, + { url = "https://files.pythonhosted.org/packages/57/61/571163a5ef86ec0cf30d265ac2a70ae6fc9e28413d1dc94fa37fae6bda89/pillow-12.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:896866d2d436563fa2a43a9d72f417874f16b5545955c54a64941e87c1376c61", size = 4660426, upload-time = "2026-01-02T09:12:52.865Z" }, + { url = "https://files.pythonhosted.org/packages/5e/e1/53ee5163f794aef1bf84243f755ee6897a92c708505350dd1923f4afec48/pillow-12.1.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8e178e3e99d3c0ea8fc64b88447f7cac8ccf058af422a6cedc690d0eadd98c51", size = 6269908, upload-time = "2026-01-02T09:12:54.884Z" }, + { url = "https://files.pythonhosted.org/packages/bc/0b/b4b4106ff0ee1afa1dc599fde6ab230417f800279745124f6c50bcffed8e/pillow-12.1.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:079af2fb0c599c2ec144ba2c02766d1b55498e373b3ac64687e43849fbbef5bc", size = 8074733, upload-time = "2026-01-02T09:12:56.802Z" }, + { url = "https://files.pythonhosted.org/packages/19/9f/80b411cbac4a732439e629a26ad3ef11907a8c7fc5377b7602f04f6fe4e7/pillow-12.1.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bdec5e43377761c5dbca620efb69a77f6855c5a379e32ac5b158f54c84212b14", size = 6381431, upload-time = "2026-01-02T09:12:58.823Z" }, + { url = "https://files.pythonhosted.org/packages/8f/b7/d65c45db463b66ecb6abc17c6ba6917a911202a07662247e1355ce1789e7/pillow-12.1.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:565c986f4b45c020f5421a4cea13ef294dde9509a8577f29b2fc5edc7587fff8", size = 7068529, upload-time = "2026-01-02T09:13:00.885Z" }, + { url = "https://files.pythonhosted.org/packages/50/96/dfd4cd726b4a45ae6e3c669fc9e49deb2241312605d33aba50499e9d9bd1/pillow-12.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:43aca0a55ce1eefc0aefa6253661cb54571857b1a7b2964bd8a1e3ef4b729924", size = 6492981, upload-time = "2026-01-02T09:13:03.314Z" }, + { url = "https://files.pythonhosted.org/packages/4d/1c/b5dc52cf713ae46033359c5ca920444f18a6359ce1020dd3e9c553ea5bc6/pillow-12.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:0deedf2ea233722476b3a81e8cdfbad786f7adbed5d848469fa59fe52396e4ef", size = 7191878, upload-time = "2026-01-02T09:13:05.276Z" }, + { url = "https://files.pythonhosted.org/packages/53/26/c4188248bd5edaf543864fe4834aebe9c9cb4968b6f573ce014cc42d0720/pillow-12.1.0-cp314-cp314t-win32.whl", hash = "sha256:b17fbdbe01c196e7e159aacb889e091f28e61020a8abeac07b68079b6e626988", size = 6438703, upload-time = "2026-01-02T09:13:07.491Z" }, + { url = "https://files.pythonhosted.org/packages/b8/0e/69ed296de8ea05cb03ee139cee600f424ca166e632567b2d66727f08c7ed/pillow-12.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:27b9baecb428899db6c0de572d6d305cfaf38ca1596b5c0542a5182e3e74e8c6", size = 7182927, upload-time = "2026-01-02T09:13:09.841Z" }, + { url = "https://files.pythonhosted.org/packages/fc/f5/68334c015eed9b5cff77814258717dec591ded209ab5b6fb70e2ae873d1d/pillow-12.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:f61333d817698bdcdd0f9d7793e365ac3d2a21c1f1eb02b32ad6aefb8d8ea831", size = 2545104, upload-time = "2026-01-02T09:13:12.068Z" }, + { url = "https://files.pythonhosted.org/packages/8b/bc/224b1d98cffd7164b14707c91aac83c07b047fbd8f58eba4066a3e53746a/pillow-12.1.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:ca94b6aac0d7af2a10ba08c0f888b3d5114439b6b3ef39968378723622fed377", size = 5228605, upload-time = "2026-01-02T09:13:14.084Z" }, + { url = "https://files.pythonhosted.org/packages/0c/ca/49ca7769c4550107de049ed85208240ba0f330b3f2e316f24534795702ce/pillow-12.1.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:351889afef0f485b84078ea40fe33727a0492b9af3904661b0abbafee0355b72", size = 4622245, upload-time = "2026-01-02T09:13:15.964Z" }, + { url = "https://files.pythonhosted.org/packages/73/48/fac807ce82e5955bcc2718642b94b1bd22a82a6d452aea31cbb678cddf12/pillow-12.1.0-pp311-pypy311_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:bb0984b30e973f7e2884362b7d23d0a348c7143ee559f38ef3eaab640144204c", size = 5247593, upload-time = "2026-01-02T09:13:17.913Z" }, + { url = "https://files.pythonhosted.org/packages/d2/95/3e0742fe358c4664aed4fd05d5f5373dcdad0b27af52aa0972568541e3f4/pillow-12.1.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:84cabc7095dd535ca934d57e9ce2a72ffd216e435a84acb06b2277b1de2689bd", size = 6989008, upload-time = "2026-01-02T09:13:20.083Z" }, + { url = "https://files.pythonhosted.org/packages/5a/74/fe2ac378e4e202e56d50540d92e1ef4ff34ed687f3c60f6a121bcf99437e/pillow-12.1.0-pp311-pypy311_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:53d8b764726d3af1a138dd353116f774e3862ec7e3794e0c8781e30db0f35dfc", size = 5313824, upload-time = "2026-01-02T09:13:22.405Z" }, + { url = "https://files.pythonhosted.org/packages/f3/77/2a60dee1adee4e2655ac328dd05c02a955c1cd683b9f1b82ec3feb44727c/pillow-12.1.0-pp311-pypy311_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5da841d81b1a05ef940a8567da92decaa15bc4d7dedb540a8c219ad83d91808a", size = 5963278, upload-time = "2026-01-02T09:13:24.706Z" }, + { url = "https://files.pythonhosted.org/packages/2d/71/64e9b1c7f04ae0027f788a248e6297d7fcc29571371fe7d45495a78172c0/pillow-12.1.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:75af0b4c229ac519b155028fa1be632d812a519abba9b46b20e50c6caa184f19", size = 7029809, upload-time = "2026-01-02T09:13:26.541Z" }, ] [[package]] @@ -12134,14 +12220,14 @@ wheels = [ [[package]] name = "werkzeug" -version = "3.1.6" +version = "3.1.5" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "markupsafe" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/61/f1/ee81806690a87dab5f5653c1f146c92bc066d7f4cebc603ef88eb9e13957/werkzeug-3.1.6.tar.gz", hash = "sha256:210c6bede5a420a913956b4791a7f4d6843a43b6fcee4dfa08a65e93007d0d25", size = 864736, upload-time = "2026-02-19T15:17:18.884Z" } +sdist = { url = "https://files.pythonhosted.org/packages/5a/70/1469ef1d3542ae7c2c7b72bd5e3a4e6ee69d7978fa8a3af05a38eca5becf/werkzeug-3.1.5.tar.gz", hash = "sha256:6a548b0e88955dd07ccb25539d7d0cc97417ee9e179677d22c7041c8f078ce67", size = 864754, upload-time = "2026-01-08T17:49:23.247Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/4d/ec/d58832f89ede95652fd01f4f24236af7d32b70cab2196dfcc2d2fd13c5c2/werkzeug-3.1.6-py3-none-any.whl", hash = "sha256:7ddf3357bb9564e407607f988f683d72038551200c704012bb9a4c523d42f131", size = 225166, upload-time = "2026-02-19T15:17:17.475Z" }, + { url = "https://files.pythonhosted.org/packages/ad/e4/8d97cca767bcc1be76d16fb76951608305561c6e056811587f36cb1316a8/werkzeug-3.1.5-py3-none-any.whl", hash = "sha256:5111e36e91086ece91f93268bb39b4a35c1e6f1feac762c9c822ded0a4e322dc", size = 225025, upload-time = "2026-01-08T17:49:21.859Z" }, ] [[package]] From e366e1ad6526d3437c0bc4d400d7a9b9ed1dafb3 Mon Sep 17 00:00:00 2001 From: Domantas Kuryla <116088428+kuryla@users.noreply.github.com> Date: Wed, 4 Mar 2026 17:21:36 +0000 Subject: [PATCH 12/27] Add QUID benchmark (#402) Co-authored-by: ElliottKasoar <45317199+ElliottKasoar@users.noreply.github.com> --- .../QUID/analyse_QUID.py | 241 ++++++++++++++++++ .../QUID/metrics.yml | 22 ++ .../QUID/app_QUID.py | 92 +++++++ .../QUID/calc_QUID.py | 175 +++++++++++++ 4 files changed, 530 insertions(+) create mode 100644 ml_peg/analysis/non_covalent_interactions/QUID/analyse_QUID.py create mode 100644 ml_peg/analysis/non_covalent_interactions/QUID/metrics.yml create mode 100644 ml_peg/app/non_covalent_interactions/QUID/app_QUID.py create mode 100644 ml_peg/calcs/non_covalent_interactions/QUID/calc_QUID.py diff --git a/ml_peg/analysis/non_covalent_interactions/QUID/analyse_QUID.py b/ml_peg/analysis/non_covalent_interactions/QUID/analyse_QUID.py new file mode 100644 index 000000000..4c3b7c460 --- /dev/null +++ b/ml_peg/analysis/non_covalent_interactions/QUID/analyse_QUID.py @@ -0,0 +1,241 @@ +""" +Analyse the QUID benchmark for ligand-pocket interactions. + +Puleva, M., Medrano Sandonas, L., Lőrincz, B.D. et al, +Extending quantum-mechanical benchmark accuracy to biological ligand-pocket +interactions, +Nat Commun 16, 8583 (2025). https://doi.org/10.1038/s41467-025-63587-9 +""" + +from __future__ import annotations + +from pathlib import Path + +from ase import units +from ase.io import read, write +import pytest + +from ml_peg.analysis.utils.decorators import build_table, plot_parity +from ml_peg.analysis.utils.utils import build_d3_name_map, load_metrics_config, mae +from ml_peg.app import APP_ROOT +from ml_peg.calcs import CALCS_ROOT +from ml_peg.models.get_models import load_models +from ml_peg.models.models import current_models + +MODELS = load_models(current_models) +D3_MODEL_NAMES = build_d3_name_map(MODELS) + +CALC_PATH = CALCS_ROOT / "non_covalent_interactions" / "QUID" / "outputs" +OUT_PATH = APP_ROOT / "data" / "non_covalent_interactions" / "QUID" + +METRICS_CONFIG_PATH = Path(__file__).with_name("metrics.yml") +DEFAULT_THRESHOLDS, DEFAULT_TOOLTIPS, DEFAULT_WEIGHTS = load_metrics_config( + METRICS_CONFIG_PATH +) + +EV_TO_KCAL = units.mol / units.kcal + + +def labels() -> dict[str, list[int]]: + """ + Get dictionary of info for QUID structures. + + Returns + ------- + dict[str, list[int]] + Dictionary of system indices, complex atom counts, and complex charges. + """ + info = {"all": [], "equilibrium": [], "dissociation": []} + + for model_name in MODELS: + model_dir = CALC_PATH / model_name + if model_dir.exists(): + xyz_files = sorted(model_dir.glob("*.xyz")) + + info["all"] = [path.stem for path in xyz_files] + info["equilibrium"] = [label for label in info["all"] if "_" not in label] + info["dissociation"] = [label for label in info["all"] if "_" in label] + + return info + + +LABELS = labels() + + +@pytest.fixture +@plot_parity( + filename=OUT_PATH / "figure_quid.json", + title="Interaction energies", + x_label="Predicted energy / kcal/mol", + y_label="Reference energy / kcal/mol", + hoverdata={"Labels": LABELS["all"]}, +) +def interaction_energies() -> dict[str, list]: + """ + Get interaction energies for all systems. + + Returns + ------- + dict[str, list] + Dictionary of all reference and predicted interaction energies. + """ + results = {"ref": []} | {mlip: [] for mlip in MODELS} + + ref_stored = False + + for model_name in MODELS: + for label in LABELS["all"]: + atoms = read(CALC_PATH / model_name / f"{label}.xyz", index=0) + + if not ref_stored: + results["ref"].append(atoms.info["ref_int_energy"][()] * EV_TO_KCAL) + + results[model_name].append(atoms.info["model_int_energy"][()] * EV_TO_KCAL) + + # Write structures for app + structs_dir = OUT_PATH / model_name + structs_dir.mkdir(parents=True, exist_ok=True) + write(structs_dir / f"{label}.xyz", atoms) + + ref_stored = True + return results + + +@pytest.fixture +def total_mae(interaction_energies) -> dict[str, float]: + """ + Get mean absolute error for energies for all systems. + + Parameters + ---------- + interaction_energies + Dictionary of reference and predicted energies. + + Returns + ------- + dict[str, float] + Dictionary of predicted energy errors for all models. + """ + results = {} + for model_name in MODELS: + results[model_name] = mae( + interaction_energies["ref"], interaction_energies[model_name] + ) + return results + + +@pytest.fixture +def equilibrium_mae(interaction_energies) -> dict[str, float]: + """ + Get mean absolute error for charged systems only. + + Parameters + ---------- + interaction_energies + Dictionary of reference and predicted interaction energies. + + Returns + ------- + dict[str, float] + Dictionary of predicted interaction energy errors for charged systems. + """ + equilibrium_indices = [ + i for i, label in enumerate(LABELS["all"]) if label in LABELS["equilibrium"] + ] + + results = {} + for model_name in MODELS: + if interaction_energies[model_name]: + ref_equilibrium = [ + interaction_energies["ref"][i] for i in equilibrium_indices + ] + pred_equilibrium = [ + interaction_energies[model_name][i] for i in equilibrium_indices + ] + results[model_name] = mae(ref_equilibrium, pred_equilibrium) + else: + results[model_name] = None + return results + + +@pytest.fixture +def dissociation_mae(interaction_energies) -> dict[str, float]: + """ + Get mean absolute error for dissociation systems only. + + Parameters + ---------- + interaction_energies + Dictionary of reference and predicted interaction energies. + + Returns + ------- + dict[str, float] + Dictionary of predicted interaction energy errors for dissociation systems. + """ + dissociation_indices = [ + i for i, label in enumerate(LABELS["all"]) if label in LABELS["dissociation"] + ] + + results = {} + for model_name in MODELS: + if interaction_energies[model_name]: + ref_dissociation = [ + interaction_energies["ref"][i] for i in dissociation_indices + ] + pred_dissociation = [ + interaction_energies[model_name][i] for i in dissociation_indices + ] + results[model_name] = mae(ref_dissociation, pred_dissociation) + else: + results[model_name] = None + return results + + +@pytest.fixture +@build_table( + filename=OUT_PATH / "quid_metrics_table.json", + metric_tooltips=DEFAULT_TOOLTIPS, + thresholds=DEFAULT_THRESHOLDS, + weights=DEFAULT_WEIGHTS, + mlip_name_map=D3_MODEL_NAMES, +) +def metrics( + total_mae: dict[str, float], + equilibrium_mae: dict[str, float], + dissociation_mae: dict[str, float], +) -> dict[str, dict]: + """ + Get all metrics. + + Parameters + ---------- + total_mae + Mean absolute errors for all models. + equilibrium_mae + Mean absolute errors for all models for equilibrium systems. + dissociation_mae + Mean absolute errors for all models for dissociation systems. + + Returns + ------- + dict[str, dict] + Metric names and values for all models. + """ + return { + "Equilibrium MAE": equilibrium_mae, + "Dissociation MAE": dissociation_mae, + "Overall MAE": total_mae, + } + + +def test_quid(metrics: dict[str, dict]) -> None: + """ + Run QUID test. + + Parameters + ---------- + metrics + All new benchmark metric names and dictionary of values for each model. + """ + return diff --git a/ml_peg/analysis/non_covalent_interactions/QUID/metrics.yml b/ml_peg/analysis/non_covalent_interactions/QUID/metrics.yml new file mode 100644 index 000000000..f1aed47a1 --- /dev/null +++ b/ml_peg/analysis/non_covalent_interactions/QUID/metrics.yml @@ -0,0 +1,22 @@ +metrics: + Overall MAE: + good: 0.3 + bad: 2.0 + unit: kcal/mol + tooltip: Mean Absolute Error for all systems + level_of_theory: CCSD(T) + weight: 1 + Equilibrium MAE: + good: 0.3 + bad: 2.0 + unit: kcal/mol + tooltip: Mean Absolute Error for neutral systems + level_of_theory: CCSD(T) + weight: 0 + Dissociation MAE: + good: 0.3 + bad: 2.0 + unit: kcal/mol + tooltip: Mean Absolute Error for charged systems + level_of_theory: CCSD(T) + weight: 0 diff --git a/ml_peg/app/non_covalent_interactions/QUID/app_QUID.py b/ml_peg/app/non_covalent_interactions/QUID/app_QUID.py new file mode 100644 index 000000000..c8947295d --- /dev/null +++ b/ml_peg/app/non_covalent_interactions/QUID/app_QUID.py @@ -0,0 +1,92 @@ +"""Run QUID app.""" + +from __future__ import annotations + +from dash import Dash +from dash.html import Div + +from ml_peg.app import APP_ROOT +from ml_peg.app.base_app import BaseApp +from ml_peg.app.utils.build_callbacks import ( + plot_from_table_column, + struct_from_scatter, +) +from ml_peg.app.utils.load import read_plot +from ml_peg.models.get_models import get_model_names +from ml_peg.models.models import current_models + +MODELS = get_model_names(current_models) +BENCHMARK_NAME = "QUID" +DOCS_URL = "https://ddmms.github.io/ml-peg/user_guide/benchmarks/non_covalent_interactions.html#quid" +DATA_PATH = APP_ROOT / "data" / "non_covalent_interactions" / "QUID" + + +class QUIDApp(BaseApp): + """QUID benchmark app layout and callbacks.""" + + def register_callbacks(self) -> None: + """Register callbacks to app.""" + scatter = read_plot( + DATA_PATH / "figure_quid.json", + id=f"{BENCHMARK_NAME}-figure", + ) + + model_dir = DATA_PATH / MODELS[0] + if model_dir.exists(): + # Note: sorting different to rxn_count order in calc + ts_files = sorted(model_dir.glob("*.xyz")) + structs = [ + f"assets/non_covalent_interactions/QUID/{MODELS[0]}/{ts_file.name}" + for ts_file in ts_files + ] + else: + structs = [] + + plot_from_table_column( + table_id=self.table_id, + plot_id=f"{BENCHMARK_NAME}-figure-placeholder", + column_to_plot={ + "Overall MAE": scatter, + "Equilibrium MAE": scatter, + "Dissociation MAE": scatter, + }, + ) + + struct_from_scatter( + scatter_id=f"{BENCHMARK_NAME}-figure", + struct_id=f"{BENCHMARK_NAME}-struct-placeholder", + structs=structs, + mode="struct", + ) + + +def get_app() -> QUIDApp: + """ + Get QUID benchmark app layout and callback registration. + + Returns + ------- + QUIDApp + Benchmark layout and callback registration. + """ + return QUIDApp( + name=BENCHMARK_NAME, + description=( + "Performance in predicting ligand-pocket interaction energies " + "for the QUID dataset." + ), + docs_url=DOCS_URL, + table_path=DATA_PATH / "quid_metrics_table.json", + extra_components=[ + Div(id=f"{BENCHMARK_NAME}-figure-placeholder"), + Div(id=f"{BENCHMARK_NAME}-struct-placeholder"), + ], + ) + + +if __name__ == "__main__": + full_app = Dash(__name__, assets_folder=DATA_PATH.parent.parent) + benchmark_app = get_app() + full_app.layout = benchmark_app.layout + benchmark_app.register_callbacks() + full_app.run(port=8071, debug=True) diff --git a/ml_peg/calcs/non_covalent_interactions/QUID/calc_QUID.py b/ml_peg/calcs/non_covalent_interactions/QUID/calc_QUID.py new file mode 100644 index 000000000..785cfa11f --- /dev/null +++ b/ml_peg/calcs/non_covalent_interactions/QUID/calc_QUID.py @@ -0,0 +1,175 @@ +""" +Compute the QUID benchmark for ligand-pocket interactions. + +Puleva, M., Medrano Sandonas, L., Lőrincz, B.D. et al, +Extending quantum-mechanical benchmark accuracy to biological ligand-pocket +interactions, +Nat Commun 16, 8583 (2025). https://doi.org/10.1038/s41467-025-63587-9 +""" + +from __future__ import annotations + +from pathlib import Path +from typing import Any + +from ase import Atoms +from ase.io import write +import h5py +import numpy as np +import pytest +from tqdm import tqdm + +from ml_peg.calcs.utils.utils import download_s3_data +from ml_peg.models.get_models import load_models +from ml_peg.models.models import current_models + +MODELS = load_models(current_models) + +OUT_PATH = Path(__file__).parent / "outputs" + +REF_PRIORITY = [ + "CCSDT", + "LNO-CCSD(T)", + "CCSD(T)", +] + + +def choose_best_reference( + eint: dict[str, float] | None, force_key: str | None = None +) -> tuple[str, float] | None: + """ + Choose the best reference method and energy, given a dataset energies. + + Parameters + ---------- + eint + Dictionary of reference methods and interaction energies. + force_key + Whether to force one particular reference method key. + + Returns + ------- + Tuple[str, float] + Tuple containing the best method key and the interaction energy. + """ + if not eint: + return None + # Force a specific reference key if provided + if force_key is not None: + # accept case-insensitive match and substring + fk = None + for k in eint.keys(): + if force_key.lower() in k.lower(): + fk = k + break + if fk is None: + return None + return fk, float(eint[fk][()]) + # case-insensitive scoring + best_key = None + for pref in REF_PRIORITY: + for k in eint.keys(): + if pref.lower() in k.lower(): + # Prefer the first appearance following priority list + best_key = k + break + if best_key is not None: + break + if best_key is None: + return "", np.nan + return best_key, float(eint[best_key][()]) + + +def compute_interaction_energy(dataset, label, calc): + """ + Compute and return the energy of the complex with given label and calc. + + Parameters + ---------- + dataset + HDF5 dataset containing the systems. + label + Label of the system within the dataset. + calc + Calculator to use. + + Returns + ------- + list + List containing the dimer and monomer ASE Atoms objects. + """ + best_reference, ref_int_energy = choose_best_reference(dataset[label]["Eint"]) + if np.isnan(ref_int_energy): + return [] + # List to store dimer and monomers. + atoms_list = [] + model_int_energy = 0 + for atoms_name, stoich in zip( + ["dimer", "small_monomer", "big_monomer"], [1, -1, -1], strict=False + ): + atomic_numbers = dataset[label]["atoms"][atoms_name][:] + positions = dataset[label]["positions"][atoms_name][:] + atoms = Atoms(numbers=atomic_numbers, positions=positions) + atoms.info.update({"charge": 0, "spin": 1}) + atoms.calc = calc + model_int_energy += atoms.get_potential_energy() * stoich + atoms.calc = None + atoms_list.append(atoms) + atoms_list[0].info.update( + { + "ref_int_energy": ref_int_energy, + "model_int_energy": model_int_energy, + "reference_used": best_reference, + } + ) + return atoms_list + + +@pytest.mark.parametrize("mlip", MODELS.items()) +def test_quid(mlip: tuple[str, Any]) -> None: + """ + Run QUID protein ligand-pocket test. + + Parameters + ---------- + mlip + Name of model use and model to get calculator. + """ + model_name, model = mlip + calc = model.get_calculator() + + data_path = ( + download_s3_data( + filename="QUID.zip", + key="inputs/non_covalent_interactions/QUID/QUID.zip", + ) + / "QUID" + ) + + # Use double precision + model.default_dtype = "float64" + calc = model.get_calculator() + # Add D3 calculator for this test. + calc = model.add_d3_calculator(calc) + + dataset = h5py.File(data_path / "QUID.h5") + for eq_label in tqdm(dataset.keys(), "Equilibrium"): + # Get equilibrium config. + atoms_list = compute_interaction_energy(dataset, eq_label, calc) + if len(atoms_list) == 0: + raise ValueError("No structures found") + write_dir = OUT_PATH / model_name + write_dir.mkdir(parents=True, exist_ok=True) + write(write_dir / f"{eq_label}.xyz", atoms_list) + + if "dissociation" not in dataset[eq_label]: + continue + dissoc_dataset = dataset[eq_label]["dissociation"] + for dissoc_label in tqdm(dissoc_dataset.keys(), "Dissociation"): + # Get dissociation config. + atoms_list = compute_interaction_energy(dissoc_dataset, dissoc_label, calc) + if len(atoms_list) == 0: + continue + write_dir = OUT_PATH / model_name + write_dir.mkdir(parents=True, exist_ok=True) + write(write_dir / f"{dissoc_label}.xyz", atoms_list) From 4766cf605128230d8cad4da8ce0d7a4e2bcd006f Mon Sep 17 00:00:00 2001 From: zwei-beiner <86890234+zwei-beiner@users.noreply.github.com> Date: Wed, 4 Mar 2026 17:22:40 +0000 Subject: [PATCH 13/27] Add silicon interstitial NEBs benchmark (#326) Co-authored-by: Elliott Kasoar <45317199+ElliottKasoar@users.noreply.github.com> --- docs/source/user_guide/benchmarks/nebs.rst | 57 ++++ .../nebs/si_defects/analyse_si_defects.py | 294 ++++++++++++++++++ ml_peg/analysis/nebs/si_defects/metrics.yml | 37 +++ ml_peg/app/nebs/si_defects/app_si_defects.py | 123 ++++++++ .../calcs/nebs/si_defects/calc_si_defects.py | 160 ++++++++++ 5 files changed, 671 insertions(+) create mode 100644 ml_peg/analysis/nebs/si_defects/analyse_si_defects.py create mode 100644 ml_peg/analysis/nebs/si_defects/metrics.yml create mode 100644 ml_peg/app/nebs/si_defects/app_si_defects.py create mode 100644 ml_peg/calcs/nebs/si_defects/calc_si_defects.py diff --git a/docs/source/user_guide/benchmarks/nebs.rst b/docs/source/user_guide/benchmarks/nebs.rst index e081babf1..9a741711e 100644 --- a/docs/source/user_guide/benchmarks/nebs.rst +++ b/docs/source/user_guide/benchmarks/nebs.rst @@ -46,3 +46,60 @@ Reference data: * Manually taken from https://doi.org/10.1149/1.1633511. * Meta-GGA (Perdew-Wang) exchange correlation functional + + +Si defects +========== + +Summary +------- + +Performance in predicting DFT singlepoint energies and forces along fixed nudged-elastic-band +(NEB) images for a silicon interstitial migration pathway. + +Metrics +------- + +For each of the three NEB datasets (64 atoms, 216 atoms, and 216 atoms di-to-single), MLIPs are +evaluated on the same ordered NEB images as the reference. + +1. Energy MAE + +Mean absolute error (MAE) of *relative* energies along the NEB, shifting image 0 to 0 eV +for both the DFT reference and the MLIP predictions. + +2. Force MAE + +Mean absolute error (MAE) of forces across all atoms and images along the NEB. + +Computational cost +------------------ + +Medium: tests are likely to take several minutes to run on CPU. + +Data availability +----------------- + +Input/reference data: + +* Reference extxyz trajectories (including per-image DFT energies and forces) are distributed as a + separate zip archive and downloaded on-demand from the ML-PEG data store. + The calculation script uses the public ML-PEG S3 bucket to retrieve these inputs. +* The reference DFT energies/forces come from Quantum ESPRESSO (PWscf) single-point calculations + with: + + - Code/version: Quantum ESPRESSO PWSCF v.7.0 + - XC functional: ``input_dft='PBE'`` + - Cutoffs: ``ecutwfc=30.0`` Ry, ``ecutrho=240.0`` Ry + - Smearing: ``occupations='smearing'``, ``smearing='mv'``, ``degauss=0.01`` Ry + - SCF convergence/mixing: ``conv_thr=1.0d-6``, ``electron_maxstep=250``, ``mixing_beta=0.2``, + ``mixing_mode='local-TF'`` + - Diagonalization: ``diagonalization='david'`` + - Symmetry: ``nosym=.false.``, ``noinv=.false.`` (symmetry enabled) + - Pseudopotential: ``Si.pbe-n-kjpaw_psl.1.0.0.UPF`` (PSLibrary) + + K-points by case: + + - 64 atoms: Γ-only (``K_POINTS automatic 1 1 1 0 0 0``) + - 216 atoms: Γ-only (``K_POINTS gamma``) + - 216 atoms di-to-single: Γ-only (``K_POINTS gamma``) diff --git a/ml_peg/analysis/nebs/si_defects/analyse_si_defects.py b/ml_peg/analysis/nebs/si_defects/analyse_si_defects.py new file mode 100644 index 000000000..43ea77029 --- /dev/null +++ b/ml_peg/analysis/nebs/si_defects/analyse_si_defects.py @@ -0,0 +1,294 @@ +"""Analyse Si defects DFT singlepoints (energies + forces).""" + +from __future__ import annotations + +from dataclasses import dataclass +from pathlib import Path + +from ase.atoms import Atoms +from ase.io import read, write +import numpy as np +import pandas as pd +import pytest + +from ml_peg.analysis.utils.decorators import build_table, plot_scatter +from ml_peg.analysis.utils.utils import load_metrics_config, mae +from ml_peg.app import APP_ROOT +from ml_peg.calcs import CALCS_ROOT +from ml_peg.models.get_models import get_model_names +from ml_peg.models.models import current_models + +MODELS = get_model_names(current_models) + +BENCHMARK_DIR = "si_defects" +CALC_PATH = CALCS_ROOT / "nebs" / BENCHMARK_DIR / "outputs" +OUT_PATH = APP_ROOT / "data" / "nebs" / BENCHMARK_DIR + +METRICS_CONFIG_PATH = Path(__file__).with_name("metrics.yml") +DEFAULT_THRESHOLDS, DEFAULT_TOOLTIPS, DEFAULT_WEIGHTS = load_metrics_config( + METRICS_CONFIG_PATH +) + + +@dataclass(frozen=True) +class _Case: + """Definition of a single Si defects NEB dataset.""" + + key: str + label: str + + +CASES: tuple[_Case, ...] = ( + _Case(key="64_atoms", label="64"), + _Case(key="216_atoms", label="216"), + _Case(key="216_atoms_di_to_single", label="216 di-to-single"), +) + + +@dataclass(frozen=True) +class _Results: + """Computed errors and assets for one (case, model) pair.""" + + energy_mae: float + force_mae: float + x: list[float] + energy_error: list[float] + force_rms: list[float] + structs: list[Atoms] + + +def _load_structs(case_key: str, model: str) -> list[Atoms] | None: + """ + Load MLIP-evaluated NEB frames (with DFT reference stored). + + Parameters + ---------- + case_key + Case key. + model + Model name. + + Returns + ------- + list[ase.atoms.Atoms] | None + Frames if the calculation output exists, otherwise ``None``. + """ + path = CALC_PATH / case_key / model / f"{BENCHMARK_DIR}.extxyz" + if not path.exists(): + return None + structs = read(path, index=":") + if not isinstance(structs, list) or not structs: + raise ValueError(f"Unexpected output content: {path}") + return structs + + +def _compute(structs: list[Atoms]) -> _Results: + """ + Compute per-image errors and global MAEs. + + Parameters + ---------- + structs + Ordered NEB frames with ``ref_energy_ev``, ``ref_forces``, ``pred_energy_ev``, + and ``pred_forces``. + + Returns + ------- + _Results + Computed errors and frames for downstream plotting/app. + """ + ref_e = np.asarray([float(s.info["ref_energy_ev"]) for s in structs]) + pred_e = np.asarray([float(s.info["pred_energy_ev"]) for s in structs]) + # Compare *relative* energies along the NEB (shift image 0 to 0 eV for both + # reference and predictions). This removes any constant energy offset. + ref_e_rel = ref_e - ref_e[0] + pred_e_rel = pred_e - pred_e[0] + energy_error = pred_e_rel - ref_e_rel + + ref_f = np.asarray([s.arrays["ref_forces"] for s in structs], dtype=float) + pred_f = np.asarray([s.arrays["pred_forces"] for s in structs], dtype=float) + force_error = pred_f - ref_f + + x = [float(s.info.get("image_index", idx)) for idx, s in enumerate(structs)] + return _Results( + energy_mae=mae(ref_e_rel, pred_e_rel), + force_mae=mae(ref_f.reshape(-1), pred_f.reshape(-1)), + x=x, + energy_error=[float(v) for v in energy_error], + force_rms=[float(v) for v in np.sqrt(np.mean(force_error**2, axis=(1, 2)))], + structs=structs, + ) + + +def _write_assets(case_key: str, model: str, results: _Results) -> None: + """ + Write structure trajectory and per-image CSV for the app. + + Parameters + ---------- + case_key + Case key. + model + Model name. + results + Computed errors and frames. + """ + out_dir = OUT_PATH / case_key / model + out_dir.mkdir(parents=True, exist_ok=True) + write(out_dir / f"{model}-neb-band.extxyz", results.structs) + pd.DataFrame( + { + "image": results.x, + "energy_error_ev": results.energy_error, + "force_rms_ev_per_ang": results.force_rms, + } + ).to_csv(out_dir / f"{model}-per_image_errors.csv", index=False) + + +def _write_plots(case_key: str, case_label: str, model: str, results: _Results) -> None: + """ + Write Dash/Plotly JSON plots for one (case, model) pair. + + Parameters + ---------- + case_key + Case key. + case_label + Human-friendly case label. + model + Model name. + results + Computed errors and frames. + """ + OUT_PATH.mkdir(parents=True, exist_ok=True) + + @plot_scatter( + filename=OUT_PATH / f"figure_{model}_{case_key}_energy_error.json", + title=f"Energy error along NEB ({case_label})", + x_label="Image", + y_label="Energy error / eV", + show_line=True, + ) + def plot_energy() -> dict[str, tuple[list[float], list[float]]]: + """ + Plot per-image energy errors for a single model and case. + + Returns + ------- + dict[str, tuple[list[float], list[float]]] + Mapping of model name to x/y arrays. + """ + return {model: [results.x, results.energy_error]} + + @plot_scatter( + filename=OUT_PATH / f"figure_{model}_{case_key}_force_rms.json", + title=f"Force RMS error along NEB ({case_label})", + x_label="Image", + y_label="Force RMS error / (eV/Å)", + show_line=True, + ) + def plot_forces() -> dict[str, tuple[list[float], list[float]]]: + """ + Plot per-image force RMS errors for a single model and case. + + Returns + ------- + dict[str, tuple[list[float], list[float]]] + Mapping of model name to x/y arrays. + """ + return {model: [results.x, results.force_rms]} + + plot_energy() + plot_forces() + + +@pytest.fixture +def case_results() -> dict[tuple[str, str], _Results]: + """ + Compute results for all available (case, model) combinations. + + Returns + ------- + dict[tuple[str, str], _Results] + Results indexed by ``(case_key, model_name)``. + """ + OUT_PATH.mkdir(parents=True, exist_ok=True) + results: dict[tuple[str, str], _Results] = {} + for case in CASES: + for model in MODELS: + structs = _load_structs(case.key, model) + if structs is None: + continue + computed = _compute(structs) + _write_assets(case.key, model, computed) + _write_plots(case.key, case.label, model, computed) + results[(case.key, model)] = computed + return results + + +@pytest.fixture +def metrics_dict( + case_results: dict[tuple[str, str], _Results], +) -> dict[str, dict[str, float]]: + """ + Build raw metric dict for the benchmark table. + + Parameters + ---------- + case_results + Results indexed by ``(case_key, model_name)``. + + Returns + ------- + dict[str, dict[str, float]] + Metric values for all models. + """ + metrics: dict[str, dict[str, float]] = {} + for case in CASES: + energy_key = f"Energy MAE ({case.label})" + force_key = f"Force MAE ({case.label})" + metrics[energy_key] = {} + metrics[force_key] = {} + for model in MODELS: + result = case_results.get((case.key, model)) + if result is None: + continue + metrics[energy_key][model] = result.energy_mae + metrics[force_key][model] = result.force_mae + return metrics + + +@pytest.fixture +@build_table( + filename=OUT_PATH / f"{BENCHMARK_DIR}_metrics_table.json", + metric_tooltips=DEFAULT_TOOLTIPS, + thresholds=DEFAULT_THRESHOLDS, + weights=DEFAULT_WEIGHTS, +) +def metrics(metrics_dict: dict[str, dict[str, float]]) -> dict[str, dict]: + """ + Build the benchmark table JSON. + + Parameters + ---------- + metrics_dict + Metric values for all models. + + Returns + ------- + dict[str, dict] + Metric names and values for all models. + """ + return metrics_dict + + +def test_si_defects(metrics: dict[str, dict]) -> None: + """ + Run analysis for Si defects DFT singlepoints. + + Parameters + ---------- + metrics + Benchmark metrics table. + """ + return diff --git a/ml_peg/analysis/nebs/si_defects/metrics.yml b/ml_peg/analysis/nebs/si_defects/metrics.yml new file mode 100644 index 000000000..fdd5cb755 --- /dev/null +++ b/ml_peg/analysis/nebs/si_defects/metrics.yml @@ -0,0 +1,37 @@ +metrics: + Energy MAE (64): + good: 0.02 + bad: 0.2 + unit: eV + tooltip: "MAE between MLIP and DFT (PBE) relative single-point energies along the NEB (image 0 shifted to 0 eV)." + level_of_theory: PBE + Force MAE (64): + good: 0.05 + bad: 0.5 + unit: eV/Å + tooltip: "MAE between MLIP and DFT (PBE) single-point forces across all atoms and images along the NEB." + level_of_theory: PBE + Energy MAE (216): + good: 0.02 + bad: 0.2 + unit: eV + tooltip: "MAE between MLIP and DFT (PBE) relative single-point energies along the NEB (image 0 shifted to 0 eV)." + level_of_theory: PBE + Force MAE (216): + good: 0.05 + bad: 0.5 + unit: eV/Å + tooltip: "MAE between MLIP and DFT (PBE) single-point forces across all atoms and images along the NEB." + level_of_theory: PBE + Energy MAE (216 di-to-single): + good: 0.02 + bad: 0.2 + unit: eV + tooltip: "MAE between MLIP and DFT (PBE) relative single-point energies along the NEB (image 0 shifted to 0 eV)." + level_of_theory: PBE + Force MAE (216 di-to-single): + good: 0.05 + bad: 0.5 + unit: eV/Å + tooltip: "MAE between MLIP and DFT (PBE) single-point forces across all atoms and images along the NEB." + level_of_theory: PBE diff --git a/ml_peg/app/nebs/si_defects/app_si_defects.py b/ml_peg/app/nebs/si_defects/app_si_defects.py new file mode 100644 index 000000000..a15a6936c --- /dev/null +++ b/ml_peg/app/nebs/si_defects/app_si_defects.py @@ -0,0 +1,123 @@ +"""Run app for Si defects benchmark.""" + +from __future__ import annotations + +from dataclasses import dataclass + +from dash import Dash +from dash.html import Div + +from ml_peg.app import APP_ROOT +from ml_peg.app.base_app import BaseApp +from ml_peg.app.utils.build_callbacks import plot_from_table_cell, struct_from_scatter +from ml_peg.app.utils.load import read_plot +from ml_peg.models.get_models import get_model_names +from ml_peg.models.models import current_models + +MODELS = get_model_names(current_models) + +BENCHMARK_NAME = "Si defects" +DOCS_URL = "https://ddmms.github.io/ml-peg/user_guide/benchmarks/nebs.html#si-defects" +DATA_PATH = APP_ROOT / "data" / "nebs" / "si_defects" + + +@dataclass(frozen=True) +class _Case: + """Definition of a single Si defects NEB dataset.""" + + key: str + label: str + + +CASES: tuple[_Case, ...] = ( + _Case(key="64_atoms", label="64"), + _Case(key="216_atoms", label="216"), + _Case(key="216_atoms_di_to_single", label="216 di-to-single"), +) + + +class SiDefectNebSinglepointsApp(BaseApp): + """Si defects benchmark app layout and callbacks.""" + + def register_callbacks(self) -> None: + """Register interactive callbacks for plot and structure viewing.""" + scatter_plots: dict[str, dict] = {} + + for model in MODELS: + model_plots: dict[str, object] = {} + for case in CASES: + energy_plot_path = ( + DATA_PATH / f"figure_{model}_{case.key}_energy_error.json" + ) + force_plot_path = ( + DATA_PATH / f"figure_{model}_{case.key}_force_rms.json" + ) + if energy_plot_path.exists(): + model_plots[f"Energy MAE ({case.label})"] = read_plot( + energy_plot_path, + id=f"{BENCHMARK_NAME}-{model}-{case.key}-energy-figure", + ) + if force_plot_path.exists(): + model_plots[f"Force MAE ({case.label})"] = read_plot( + force_plot_path, + id=f"{BENCHMARK_NAME}-{model}-{case.key}-force-figure", + ) + if model_plots: + scatter_plots[model] = model_plots + + plot_from_table_cell( + table_id=self.table_id, + plot_id=f"{BENCHMARK_NAME}-figure-placeholder", + cell_to_plot=scatter_plots, + ) + + for model in scatter_plots: + for case in CASES: + structs = ( + f"assets/nebs/si_defects/{case.key}/{model}/{model}-neb-band.extxyz" + ) + struct_from_scatter( + scatter_id=f"{BENCHMARK_NAME}-{model}-{case.key}-energy-figure", + struct_id=f"{BENCHMARK_NAME}-struct-placeholder", + structs=structs, + mode="traj", + ) + struct_from_scatter( + scatter_id=f"{BENCHMARK_NAME}-{model}-{case.key}-force-figure", + struct_id=f"{BENCHMARK_NAME}-struct-placeholder", + structs=structs, + mode="traj", + ) + + +def get_app() -> SiDefectNebSinglepointsApp: + """ + Get Si defects app. + + Returns + ------- + SiDefectNebSinglepointsApp + App instance. + """ + return SiDefectNebSinglepointsApp( + name=BENCHMARK_NAME, + description=( + "Energy/force MAE of MLIPs on fixed Si interstitial migration NEB images, " + "referenced to DFT singlepoints." + ), + docs_url=DOCS_URL, + table_path=DATA_PATH / "si_defects_metrics_table.json", + extra_components=[ + Div(id=f"{BENCHMARK_NAME}-figure-placeholder"), + Div(id=f"{BENCHMARK_NAME}-struct-placeholder"), + ], + ) + + +if __name__ == "__main__": + # Use APP_ROOT/data as assets root so `assets/nebs/...` resolves correctly. + full_app = Dash(__name__, assets_folder=DATA_PATH.parent.parent) + benchmark_app = get_app() + full_app.layout = benchmark_app.layout + benchmark_app.register_callbacks() + full_app.run(port=8060, debug=True) diff --git a/ml_peg/calcs/nebs/si_defects/calc_si_defects.py b/ml_peg/calcs/nebs/si_defects/calc_si_defects.py new file mode 100644 index 000000000..7180b6187 --- /dev/null +++ b/ml_peg/calcs/nebs/si_defects/calc_si_defects.py @@ -0,0 +1,160 @@ +"""Evaluate MLIPs on Si defects DFT singlepoints (energies + forces).""" + +from __future__ import annotations + +from dataclasses import dataclass +from pathlib import Path +import sys +from typing import Any + +from ase.atoms import Atoms +from ase.io import read, write +import numpy as np +import pytest +from tqdm.auto import tqdm + +from ml_peg.calcs.utils.utils import download_s3_data +from ml_peg.models.get_models import load_models +from ml_peg.models.models import current_models + +MODELS = load_models(current_models) + +DATA_PATH = Path(__file__).parent / "data" +OUT_PATH = Path(__file__).parent / "outputs" +S3_KEY = "inputs/nebs/si_defects/si_defects.zip" +S3_FILENAME = "si_defects.zip" + + +@dataclass(frozen=True) +class _Case: + """Definition of a single Si defects NEB dataset.""" + + key: str + ref_file: str + + +CASES: tuple[_Case, ...] = ( + _Case(key="64_atoms", ref_file="64_atoms.extxyz"), + _Case(key="216_atoms", ref_file="216_atoms.extxyz"), + _Case(key="216_atoms_di_to_single", ref_file="216_atoms_di_to_single.extxyz"), +) + + +def _read_frames(path: Path) -> list[Atoms]: + """ + Read all frames from an extxyz trajectory. + + Parameters + ---------- + path + Path to extxyz trajectory. + + Returns + ------- + list[ase.atoms.Atoms] + Frames as ASE atoms objects. + """ + frames = read(path, index=":") + if not isinstance(frames, list) or not frames: + raise ValueError(f"No frames found in {path}") + return frames + + +def _ref_energy_ev(atoms: Atoms) -> float: + """ + Extract reference (DFT) energy in eV from a frame. + + Parameters + ---------- + atoms + Frame with ``ref_energy_ev`` in ``atoms.info``. + + Returns + ------- + float + Reference energy in eV. + """ + if "ref_energy_ev" not in atoms.info: + raise KeyError("Missing ref_energy_ev in reference trajectory.") + return float(atoms.info["ref_energy_ev"]) + + +def _ref_forces(atoms: Atoms) -> np.ndarray: + """ + Extract reference (DFT) forces in eV/Å from a frame. + + Parameters + ---------- + atoms + Frame with ``ref_forces`` in ``atoms.arrays``. + + Returns + ------- + numpy.ndarray + Reference forces array with shape ``(n_atoms, 3)``. + """ + if "ref_forces" not in atoms.arrays: + raise KeyError("Missing ref_forces in reference trajectory.") + return np.asarray(atoms.arrays["ref_forces"], dtype=float) + + +@pytest.mark.slow +@pytest.mark.parametrize("mlip", MODELS.items()) +def test_si_defects(mlip: tuple[str, Any]) -> None: + """ + Compare MLIP energies/forces to DFT along fixed NEB images. + + Outputs per-case trajectories containing: + - ref_energy_ev, ref_forces + - pred_energy_ev, pred_forces + + Parameters + ---------- + mlip + Tuple of ``(model_name, model)`` as provided by ``MODELS.items()``. + """ + model_name, model = mlip + calc = model.get_calculator() + + local_files_present = all((DATA_PATH / case.ref_file).exists() for case in CASES) + if local_files_present: + data_dir = DATA_PATH + else: + data_dir = download_s3_data(key=S3_KEY, filename=S3_FILENAME) / "si_defects" + + for case in CASES: + frames = _read_frames(data_dir / case.ref_file) + out_dir = OUT_PATH / case.key / model_name + out_dir.mkdir(parents=True, exist_ok=True) + + results: list[Atoms] = [] + it = frames + # Only show tqdm progress bars in an interactive terminal; otherwise the + # carriage-return updates tend to spam CI/log outputs. + if sys.stderr.isatty(): + it = tqdm( + frames, + desc=f"{model_name} {case.key}", + unit="img", + leave=False, + ) + for atoms in it: + ref_energy_ev = _ref_energy_ev(atoms) + ref_forces = _ref_forces(atoms) + + atoms_pred = atoms.copy() + atoms_pred.calc = calc + # Set default charge and spin + atoms_pred.info.setdefault("charge", 0) + atoms_pred.info.setdefault("spin", 1) + + out_atoms = atoms.copy() + out_atoms.info["ref_energy_ev"] = ref_energy_ev + out_atoms.arrays["ref_forces"] = ref_forces + out_atoms.info["pred_energy_ev"] = float(atoms_pred.get_potential_energy()) + out_atoms.arrays["pred_forces"] = np.asarray( + atoms_pred.get_forces(), dtype=float + ) + results.append(out_atoms) + + write(out_dir / "si_defects.extxyz", results) From f7b2bf2df1bbfc3d743e1a6cd584080c58cc6e0e Mon Sep 17 00:00:00 2001 From: Domantas Kuryla <116088428+kuryla@users.noreply.github.com> Date: Thu, 5 Mar 2026 16:49:50 +0000 Subject: [PATCH 14/27] Float64 precision for static tests (#408) Co-authored-by: Domantas Kuryla Co-authored-by: ElliottKasoar <45317199+ElliottKasoar@users.noreply.github.com> Co-authored-by: Joseph Hart <92541539+joehart2001@users.noreply.github.com> --- .../lattice_constants/calc_lattice_constants.py | 2 ++ ml_peg/calcs/conformers/37Conf8/calc_37Conf8.py | 7 ++++--- ml_peg/calcs/conformers/DipCONFS/calc_DipCONFS.py | 11 +++++------ ml_peg/calcs/conformers/Glucose205/calc_Glucose205.py | 9 ++++----- ml_peg/calcs/conformers/MPCONF196/calc_MPCONF196.py | 8 ++++---- ml_peg/calcs/conformers/Maltose222/calc_Maltose222.py | 9 ++++----- .../calcs/conformers/OpenFF_Tors/calc_OpenFF_Tors.py | 9 +++++---- ml_peg/calcs/conformers/UpU46/calc_UpU46.py | 8 ++++---- .../conformers/solvMPCONF196/calc_solvMPCONF196.py | 9 ++++----- .../isomer_complexes/calc_isomer_complexes.py | 2 ++ ml_peg/calcs/molecular/GMTKN55/calc_GMTKN55.py | 2 ++ ml_peg/calcs/molecular/Wiggle150/calc_Wiggle150.py | 2 ++ .../calcs/molecular_crystal/CPOSS209/calc_CPOSS209.py | 2 ++ .../molecular_crystal/DMC_ICE13/calc_DMC_ICE13.py | 2 ++ ml_peg/calcs/molecular_crystal/X23/calc_X23.py | 2 ++ .../calcs/molecular_reactions/BH2O_36/calc_BH2O_36.py | 10 +++++----- ml_peg/calcs/molecular_reactions/BH9/calc_BH9.py | 9 +++++---- .../calcs/molecular_reactions/CYCLO70/calc_CYCLO70.py | 10 +++++----- .../molecular_reactions/Criegee22/calc_Criegee22.py | 10 +++++----- ml_peg/calcs/molecular_reactions/RDB7/calc_RDB7.py | 9 ++++----- .../non_covalent_interactions/IONPI19/calc_IONPI19.py | 9 ++++----- .../NCIA_D1200/calc_NCIA_D1200.py | 10 +++++----- .../NCIA_D442x10/calc_NCIA_D442x10.py | 8 ++++---- .../NCIA_HB300SPXx10/calc_NCIA_HB300SPXx10.py | 10 +++++----- .../NCIA_HB375x10/calc_NCIA_HB375x10.py | 10 +++++----- .../NCIA_IHB100x10/calc_NCIA_IHB100x10.py | 9 ++++----- .../NCIA_R739x5/calc_NCIA_R739x5.py | 8 ++++---- .../NCIA_SH250x10/calc_NCIA_SH250x10.py | 8 ++++---- .../calcs/non_covalent_interactions/QUID/calc_QUID.py | 10 ++++------ ml_peg/calcs/supramolecular/LNCI16/calc_LNCI16.py | 2 ++ ml_peg/calcs/supramolecular/S30L/calc_S30L.py | 2 ++ ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py | 2 ++ ml_peg/calcs/utils/gscdb138.py | 7 ++++--- 33 files changed, 121 insertions(+), 106 deletions(-) diff --git a/ml_peg/calcs/bulk_crystal/lattice_constants/calc_lattice_constants.py b/ml_peg/calcs/bulk_crystal/lattice_constants/calc_lattice_constants.py index bb753693e..aa5433f0e 100644 --- a/ml_peg/calcs/bulk_crystal/lattice_constants/calc_lattice_constants.py +++ b/ml_peg/calcs/bulk_crystal/lattice_constants/calc_lattice_constants.py @@ -84,6 +84,8 @@ def test_lattice_consts(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() data_dir = ( diff --git a/ml_peg/calcs/conformers/37Conf8/calc_37Conf8.py b/ml_peg/calcs/conformers/37Conf8/calc_37Conf8.py index c02aaa9bc..c000fdc92 100644 --- a/ml_peg/calcs/conformers/37Conf8/calc_37Conf8.py +++ b/ml_peg/calcs/conformers/37Conf8/calc_37Conf8.py @@ -37,7 +37,11 @@ def test_37conf8_conformer_energies(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -50,9 +54,6 @@ def test_37conf8_conformer_energies(mlip: tuple[str, Any]) -> None: df = pd.read_excel( data_path / "37Conf8_data.xlsx", sheet_name="Rel_Energy_SP", header=2 ) - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) write_dir = OUT_PATH / model_name write_dir.mkdir(parents=True, exist_ok=True) diff --git a/ml_peg/calcs/conformers/DipCONFS/calc_DipCONFS.py b/ml_peg/calcs/conformers/DipCONFS/calc_DipCONFS.py index ba3aaff79..fc5997afe 100644 --- a/ml_peg/calcs/conformers/DipCONFS/calc_DipCONFS.py +++ b/ml_peg/calcs/conformers/DipCONFS/calc_DipCONFS.py @@ -62,9 +62,13 @@ def test_dipconfs(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) - # Read in data and attach calculator + # Download data data_path = ( download_s3_data( filename="DipCONFS.zip", @@ -73,11 +77,6 @@ def test_dipconfs(mlip: tuple[str, Any]) -> None: / "DipCONFS" ) - # Read in data and attach calculator - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - df = pd.read_excel( data_path / "ct4c00801_si_004.xlsx", sheet_name="Conformational Energies in kcal", diff --git a/ml_peg/calcs/conformers/Glucose205/calc_Glucose205.py b/ml_peg/calcs/conformers/Glucose205/calc_Glucose205.py index da2cf5ef9..e87a69723 100644 --- a/ml_peg/calcs/conformers/Glucose205/calc_Glucose205.py +++ b/ml_peg/calcs/conformers/Glucose205/calc_Glucose205.py @@ -103,7 +103,11 @@ def test_glucose205(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -114,11 +118,6 @@ def test_glucose205(mlip: tuple[str, Any]) -> None: ) ref_energies = get_ref_energies(data_path) - # Read in data and attach calculator - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - lowest_conf_label = "alpha_002" conf_lowest = get_atoms( diff --git a/ml_peg/calcs/conformers/MPCONF196/calc_MPCONF196.py b/ml_peg/calcs/conformers/MPCONF196/calc_MPCONF196.py index 6bdb054c8..eb42f80bb 100644 --- a/ml_peg/calcs/conformers/MPCONF196/calc_MPCONF196.py +++ b/ml_peg/calcs/conformers/MPCONF196/calc_MPCONF196.py @@ -103,7 +103,11 @@ def test_mpconf196(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -114,10 +118,6 @@ def test_mpconf196(mlip: tuple[str, Any]) -> None: ) ref_energies = get_ref_energies(data_path) - # Read in data and attach calculator - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) for molecule in tqdm(MOLECULES): model_abs_energies = [] diff --git a/ml_peg/calcs/conformers/Maltose222/calc_Maltose222.py b/ml_peg/calcs/conformers/Maltose222/calc_Maltose222.py index 45395b4a6..cbe868304 100644 --- a/ml_peg/calcs/conformers/Maltose222/calc_Maltose222.py +++ b/ml_peg/calcs/conformers/Maltose222/calc_Maltose222.py @@ -103,7 +103,11 @@ def test_maltose222(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -114,11 +118,6 @@ def test_maltose222(mlip: tuple[str, Any]) -> None: ) ref_energies = get_ref_energies(data_path) - # Read in data and attach calculator - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - lowest_conf_label = "maltose_001" conf_lowest = get_atoms( diff --git a/ml_peg/calcs/conformers/OpenFF_Tors/calc_OpenFF_Tors.py b/ml_peg/calcs/conformers/OpenFF_Tors/calc_OpenFF_Tors.py index a403fb7f6..511fad2db 100644 --- a/ml_peg/calcs/conformers/OpenFF_Tors/calc_OpenFF_Tors.py +++ b/ml_peg/calcs/conformers/OpenFF_Tors/calc_OpenFF_Tors.py @@ -38,7 +38,11 @@ def test_openff_tors(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -47,10 +51,7 @@ def test_openff_tors(mlip: tuple[str, Any]) -> None: ) / "OpenFF-Tors" ) - # Read in data and attach calculator - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) + with open(data_path / "MP2_heavy-aug-cc-pVTZ_torsiondrive_data.json") as file: data = json.load(file) diff --git a/ml_peg/calcs/conformers/UpU46/calc_UpU46.py b/ml_peg/calcs/conformers/UpU46/calc_UpU46.py index ba7b7b3b4..01e7130df 100644 --- a/ml_peg/calcs/conformers/UpU46/calc_UpU46.py +++ b/ml_peg/calcs/conformers/UpU46/calc_UpU46.py @@ -88,7 +88,11 @@ def test_upu46(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -99,10 +103,6 @@ def test_upu46(mlip: tuple[str, Any]) -> None: ) zero_conf_label = "2p" ref_energies = get_ref_energies(data_path) - # Read in data and attach calculator - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) conf_lowest = get_atoms(data_path / f"{zero_conf_label}.xyz") conf_lowest.calc = calc diff --git a/ml_peg/calcs/conformers/solvMPCONF196/calc_solvMPCONF196.py b/ml_peg/calcs/conformers/solvMPCONF196/calc_solvMPCONF196.py index fbea775bb..65ff7bf73 100644 --- a/ml_peg/calcs/conformers/solvMPCONF196/calc_solvMPCONF196.py +++ b/ml_peg/calcs/conformers/solvMPCONF196/calc_solvMPCONF196.py @@ -102,7 +102,11 @@ def test_solvmpconf196(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -114,11 +118,6 @@ def test_solvmpconf196(mlip: tuple[str, Any]) -> None: ref_energies = get_ref_energies(data_path) - # Read in data and attach calculator - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - for molecule in tqdm(MOLECULES): model_abs_energies = [] ref_abs_energies = [] diff --git a/ml_peg/calcs/lanthanides/isomer_complexes/calc_isomer_complexes.py b/ml_peg/calcs/lanthanides/isomer_complexes/calc_isomer_complexes.py index f3eb70fc2..82083cb41 100644 --- a/ml_peg/calcs/lanthanides/isomer_complexes/calc_isomer_complexes.py +++ b/ml_peg/calcs/lanthanides/isomer_complexes/calc_isomer_complexes.py @@ -111,6 +111,8 @@ def test_isomer_complexes(mlip: tuple[str, Any]) -> None: pytest.skip(f"No isomer structures found under {isomer_complexes_dir}.") model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() for entry in tqdm(entries, desc=f"Calculating energies for {model_name}"): diff --git a/ml_peg/calcs/molecular/GMTKN55/calc_GMTKN55.py b/ml_peg/calcs/molecular/GMTKN55/calc_GMTKN55.py index 085d3fcc6..070cd7471 100644 --- a/ml_peg/calcs/molecular/GMTKN55/calc_GMTKN55.py +++ b/ml_peg/calcs/molecular/GMTKN55/calc_GMTKN55.py @@ -41,6 +41,8 @@ def test_gmtkn55(mlip: tuple[str, Any]) -> None: """ model_name, model = mlip print(f"\nEvaluating with model: {model_name}") + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() # Add D3 calculator for this test diff --git a/ml_peg/calcs/molecular/Wiggle150/calc_Wiggle150.py b/ml_peg/calcs/molecular/Wiggle150/calc_Wiggle150.py index 7117e1fff..66c03d2c1 100644 --- a/ml_peg/calcs/molecular/Wiggle150/calc_Wiggle150.py +++ b/ml_peg/calcs/molecular/Wiggle150/calc_Wiggle150.py @@ -185,6 +185,8 @@ def test_wiggle150(mlip: tuple[str, Any]) -> None: """ model_name, model = mlip print(f"\nEvaluating with model: {model_name}") + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() # Add D3 calculator for this test diff --git a/ml_peg/calcs/molecular_crystal/CPOSS209/calc_CPOSS209.py b/ml_peg/calcs/molecular_crystal/CPOSS209/calc_CPOSS209.py index ef08e406a..b95547a75 100644 --- a/ml_peg/calcs/molecular_crystal/CPOSS209/calc_CPOSS209.py +++ b/ml_peg/calcs/molecular_crystal/CPOSS209/calc_CPOSS209.py @@ -31,6 +31,8 @@ def test_lattice_energy(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() # Add D3 calculator for this test diff --git a/ml_peg/calcs/molecular_crystal/DMC_ICE13/calc_DMC_ICE13.py b/ml_peg/calcs/molecular_crystal/DMC_ICE13/calc_DMC_ICE13.py index 3b5da9481..c5bf920c1 100644 --- a/ml_peg/calcs/molecular_crystal/DMC_ICE13/calc_DMC_ICE13.py +++ b/ml_peg/calcs/molecular_crystal/DMC_ICE13/calc_DMC_ICE13.py @@ -31,6 +31,8 @@ def test_lattice_energy(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() # Add D3 calculator for this test diff --git a/ml_peg/calcs/molecular_crystal/X23/calc_X23.py b/ml_peg/calcs/molecular_crystal/X23/calc_X23.py index 5b665de6d..511dce56a 100644 --- a/ml_peg/calcs/molecular_crystal/X23/calc_X23.py +++ b/ml_peg/calcs/molecular_crystal/X23/calc_X23.py @@ -35,6 +35,8 @@ def test_lattice_energy(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() # Add D3 calculator for this test diff --git a/ml_peg/calcs/molecular_reactions/BH2O_36/calc_BH2O_36.py b/ml_peg/calcs/molecular_reactions/BH2O_36/calc_BH2O_36.py index d1dc8e738..20cf55927 100644 --- a/ml_peg/calcs/molecular_reactions/BH2O_36/calc_BH2O_36.py +++ b/ml_peg/calcs/molecular_reactions/BH2O_36/calc_BH2O_36.py @@ -86,7 +86,11 @@ def test_bh2o_36(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -95,13 +99,9 @@ def test_bh2o_36(mlip: tuple[str, Any]) -> None: ) / "BH2O-36" ) - # Read in data and attach calculator + # Read in data systems = get_systems(data_path / "mp2_super.json", data_path / "molecules/for_sp") - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - for identifier, system in tqdm(systems.items()): atoms_rct = read(system["rct"]["xyz_path"]) atoms_rct.info["charge"] = int(system["rct"]["charge"]) diff --git a/ml_peg/calcs/molecular_reactions/BH9/calc_BH9.py b/ml_peg/calcs/molecular_reactions/BH9/calc_BH9.py index b51aad89c..dd78d8d10 100644 --- a/ml_peg/calcs/molecular_reactions/BH9/calc_BH9.py +++ b/ml_peg/calcs/molecular_reactions/BH9/calc_BH9.py @@ -144,7 +144,11 @@ def test_bh9(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -153,11 +157,8 @@ def test_bh9(mlip: tuple[str, Any]) -> None: ) / "BH9" ) - # Read in data and attach calculator + # Read in data ref_energies = get_ref_energies(data_path) - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) xyz_path = data_path / "BH9_SI" / "XYZ_files" for label in tqdm(ref_energies): diff --git a/ml_peg/calcs/molecular_reactions/CYCLO70/calc_CYCLO70.py b/ml_peg/calcs/molecular_reactions/CYCLO70/calc_CYCLO70.py index 730fdb238..b1329f940 100644 --- a/ml_peg/calcs/molecular_reactions/CYCLO70/calc_CYCLO70.py +++ b/ml_peg/calcs/molecular_reactions/CYCLO70/calc_CYCLO70.py @@ -40,9 +40,13 @@ def test_cyclo70(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) - # Read in data and attach calculator + # Download data data_path = ( download_s3_data( filename="CYCLO70.zip", @@ -51,10 +55,6 @@ def test_cyclo70(mlip: tuple[str, Any]) -> None: / "CYCLO70" ) - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - with open(data_path / "dlpno-ccsdt-34.dat") as lines: # Skip header next(lines) diff --git a/ml_peg/calcs/molecular_reactions/Criegee22/calc_Criegee22.py b/ml_peg/calcs/molecular_reactions/Criegee22/calc_Criegee22.py index f82cf5a27..2c69a8541 100644 --- a/ml_peg/calcs/molecular_reactions/Criegee22/calc_Criegee22.py +++ b/ml_peg/calcs/molecular_reactions/Criegee22/calc_Criegee22.py @@ -37,7 +37,11 @@ def test_criegee22(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -47,11 +51,7 @@ def test_criegee22(mlip: tuple[str, Any]) -> None: / "Criegee22" ) - # Read in data and attach calculator - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - + # Read in data with open(data_path / "reference.txt") as lines: # Skip header next(lines) diff --git a/ml_peg/calcs/molecular_reactions/RDB7/calc_RDB7.py b/ml_peg/calcs/molecular_reactions/RDB7/calc_RDB7.py index 5495dce16..13f95e732 100644 --- a/ml_peg/calcs/molecular_reactions/RDB7/calc_RDB7.py +++ b/ml_peg/calcs/molecular_reactions/RDB7/calc_RDB7.py @@ -98,7 +98,11 @@ def test_rdb87(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -108,11 +112,6 @@ def test_rdb87(mlip: tuple[str, Any]) -> None: / "RDB7" ) - # Read in data and attach calculator - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - for i in tqdm(range(0, 11961)): bh_forward_ref = 0 bh_forward_model = 0 diff --git a/ml_peg/calcs/non_covalent_interactions/IONPI19/calc_IONPI19.py b/ml_peg/calcs/non_covalent_interactions/IONPI19/calc_IONPI19.py index cb946ef86..0f495aff2 100644 --- a/ml_peg/calcs/non_covalent_interactions/IONPI19/calc_IONPI19.py +++ b/ml_peg/calcs/non_covalent_interactions/IONPI19/calc_IONPI19.py @@ -116,7 +116,11 @@ def test_ionpi19(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -126,11 +130,6 @@ def test_ionpi19(mlip: tuple[str, Any]) -> None: / "ionpi19" ) ref_energies = get_ref_energies(data_path) - # Read in data and attach calculator - calc = model.get_calculator() - - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) for system_id in tqdm(range(1, 20)): for config in SPECIES[system_id]: diff --git a/ml_peg/calcs/non_covalent_interactions/NCIA_D1200/calc_NCIA_D1200.py b/ml_peg/calcs/non_covalent_interactions/NCIA_D1200/calc_NCIA_D1200.py index 5ff722708..03551e489 100644 --- a/ml_peg/calcs/non_covalent_interactions/NCIA_D1200/calc_NCIA_D1200.py +++ b/ml_peg/calcs/non_covalent_interactions/NCIA_D1200/calc_NCIA_D1200.py @@ -105,9 +105,13 @@ def test_ncia_d1200(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) - # Read in data and attach calculator + # Download data data_path = ( download_s3_data( filename="NCIA_D1200.zip", @@ -117,10 +121,6 @@ def test_ncia_d1200(mlip: tuple[str, Any]) -> None: ) ref_energies = get_ref_energies(data_path) - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - for label, ref_energy in tqdm(ref_energies.items()): xyz_fname = f"{label}_100.xyz" atoms = read(data_path / "geometries" / xyz_fname) diff --git a/ml_peg/calcs/non_covalent_interactions/NCIA_D442x10/calc_NCIA_D442x10.py b/ml_peg/calcs/non_covalent_interactions/NCIA_D442x10/calc_NCIA_D442x10.py index 4ef6054b9..7ab29c2b8 100644 --- a/ml_peg/calcs/non_covalent_interactions/NCIA_D442x10/calc_NCIA_D442x10.py +++ b/ml_peg/calcs/non_covalent_interactions/NCIA_D442x10/calc_NCIA_D442x10.py @@ -104,7 +104,11 @@ def test_ncia_d442x10(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -115,10 +119,6 @@ def test_ncia_d442x10(mlip: tuple[str, Any]) -> None: ) ref_energies = get_ref_energies(data_path) - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - for label, ref_energy in tqdm(ref_energies.items()): xyz_fname = f"{label[:-3] + label[-2:]}.xyz" atoms = read(data_path / "geometries" / xyz_fname) diff --git a/ml_peg/calcs/non_covalent_interactions/NCIA_HB300SPXx10/calc_NCIA_HB300SPXx10.py b/ml_peg/calcs/non_covalent_interactions/NCIA_HB300SPXx10/calc_NCIA_HB300SPXx10.py index 13ae44b02..f51a9b63a 100644 --- a/ml_peg/calcs/non_covalent_interactions/NCIA_HB300SPXx10/calc_NCIA_HB300SPXx10.py +++ b/ml_peg/calcs/non_covalent_interactions/NCIA_HB300SPXx10/calc_NCIA_HB300SPXx10.py @@ -102,9 +102,13 @@ def test_ncia_hb300spxx10(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) - # Read in data and attach calculator + # Download data data_path = ( download_s3_data( filename="NCIA_HB300SPXx10.zip", @@ -114,10 +118,6 @@ def test_ncia_hb300spxx10(mlip: tuple[str, Any]) -> None: ) ref_energies = get_ref_energies(data_path) - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - for label, ref_energy in tqdm(ref_energies.items()): xyz_fname = f"{label}.xyz" atoms = read(data_path / "geometries" / xyz_fname) diff --git a/ml_peg/calcs/non_covalent_interactions/NCIA_HB375x10/calc_NCIA_HB375x10.py b/ml_peg/calcs/non_covalent_interactions/NCIA_HB375x10/calc_NCIA_HB375x10.py index 21e355e57..52fec1f9f 100644 --- a/ml_peg/calcs/non_covalent_interactions/NCIA_HB375x10/calc_NCIA_HB375x10.py +++ b/ml_peg/calcs/non_covalent_interactions/NCIA_HB375x10/calc_NCIA_HB375x10.py @@ -108,9 +108,13 @@ def test_ncia_hb375x10(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) - # Read in data and attach calculator + # Download data data_path = ( download_s3_data( filename="NCIA_HB375x10.zip", @@ -120,10 +124,6 @@ def test_ncia_hb375x10(mlip: tuple[str, Any]) -> None: ) ref_energies = get_ref_energies(data_path) - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - for label, ref_energy in tqdm(ref_energies.items()): xyz_fname = f"{label}.xyz" atoms = read(data_path / "geometries" / xyz_fname) diff --git a/ml_peg/calcs/non_covalent_interactions/NCIA_IHB100x10/calc_NCIA_IHB100x10.py b/ml_peg/calcs/non_covalent_interactions/NCIA_IHB100x10/calc_NCIA_IHB100x10.py index 1cdd7d41b..9b1907f07 100644 --- a/ml_peg/calcs/non_covalent_interactions/NCIA_IHB100x10/calc_NCIA_IHB100x10.py +++ b/ml_peg/calcs/non_covalent_interactions/NCIA_IHB100x10/calc_NCIA_IHB100x10.py @@ -106,9 +106,12 @@ def test_ncia_ihb100x10(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) - # Read in data and attach calculator data_path = ( download_s3_data( filename="NCIA_IHB100x10.zip", @@ -118,10 +121,6 @@ def test_ncia_ihb100x10(mlip: tuple[str, Any]) -> None: ) ref_energies = get_ref_energies(data_path) - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - for label, ref_energy in tqdm(ref_energies.items()): xyz_fname = f"{label}.xyz" atoms = read(data_path / "geometries" / xyz_fname) diff --git a/ml_peg/calcs/non_covalent_interactions/NCIA_R739x5/calc_NCIA_R739x5.py b/ml_peg/calcs/non_covalent_interactions/NCIA_R739x5/calc_NCIA_R739x5.py index 98aa7c363..c8acdac6f 100644 --- a/ml_peg/calcs/non_covalent_interactions/NCIA_R739x5/calc_NCIA_R739x5.py +++ b/ml_peg/calcs/non_covalent_interactions/NCIA_R739x5/calc_NCIA_R739x5.py @@ -104,7 +104,11 @@ def test_ncia_r739x5(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -115,10 +119,6 @@ def test_ncia_r739x5(mlip: tuple[str, Any]) -> None: ) ref_energies = get_ref_energies(data_path) - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - for label, ref_energy in tqdm(ref_energies.items()): xyz_fname = f"{label}.xyz" atoms = read(data_path / "geometries" / xyz_fname) diff --git a/ml_peg/calcs/non_covalent_interactions/NCIA_SH250x10/calc_NCIA_SH250x10.py b/ml_peg/calcs/non_covalent_interactions/NCIA_SH250x10/calc_NCIA_SH250x10.py index 5419c5a52..bce89e24c 100644 --- a/ml_peg/calcs/non_covalent_interactions/NCIA_SH250x10/calc_NCIA_SH250x10.py +++ b/ml_peg/calcs/non_covalent_interactions/NCIA_SH250x10/calc_NCIA_SH250x10.py @@ -103,7 +103,11 @@ def test_lattice_energy(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -114,10 +118,6 @@ def test_lattice_energy(mlip: tuple[str, Any]) -> None: ) ref_energies = get_ref_energies(data_path) - calc = model.get_calculator() - # Add D3 calculator for this test - calc = model.add_d3_calculator(calc) - for label, ref_energy in tqdm(ref_energies.items()): xyz_fname = f"{label}.xyz" atoms = read(data_path / "geometries" / xyz_fname) diff --git a/ml_peg/calcs/non_covalent_interactions/QUID/calc_QUID.py b/ml_peg/calcs/non_covalent_interactions/QUID/calc_QUID.py index 785cfa11f..09f80618f 100644 --- a/ml_peg/calcs/non_covalent_interactions/QUID/calc_QUID.py +++ b/ml_peg/calcs/non_covalent_interactions/QUID/calc_QUID.py @@ -136,7 +136,11 @@ def test_quid(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -146,12 +150,6 @@ def test_quid(mlip: tuple[str, Any]) -> None: / "QUID" ) - # Use double precision - model.default_dtype = "float64" - calc = model.get_calculator() - # Add D3 calculator for this test. - calc = model.add_d3_calculator(calc) - dataset = h5py.File(data_path / "QUID.h5") for eq_label in tqdm(dataset.keys(), "Equilibrium"): # Get equilibrium config. diff --git a/ml_peg/calcs/supramolecular/LNCI16/calc_LNCI16.py b/ml_peg/calcs/supramolecular/LNCI16/calc_LNCI16.py index 95b3569a5..98c1e0253 100644 --- a/ml_peg/calcs/supramolecular/LNCI16/calc_LNCI16.py +++ b/ml_peg/calcs/supramolecular/LNCI16/calc_LNCI16.py @@ -260,6 +260,8 @@ def benchmark_lnci16( def run(self): """Run LNCI16 benchmark calculations.""" + # Use double precision + self.model.default_dtype = "float64" calc = self.model.get_calculator() # Get benchmark data diff --git a/ml_peg/calcs/supramolecular/S30L/calc_S30L.py b/ml_peg/calcs/supramolecular/S30L/calc_S30L.py index 76c7a503f..062254d52 100644 --- a/ml_peg/calcs/supramolecular/S30L/calc_S30L.py +++ b/ml_peg/calcs/supramolecular/S30L/calc_S30L.py @@ -226,6 +226,8 @@ def benchmark_s30l( def run(self): """Run S30L benchmark calculations.""" + # Use double precision + self.model.default_dtype = "float64" calc = self.model.get_calculator() # Add D3 calculator for this test diff --git a/ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py b/ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py index 88c8d34a7..c439f5c68 100644 --- a/ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py +++ b/ml_peg/calcs/tm_complexes/3dTMV/calc_3dTMV.py @@ -123,6 +123,8 @@ def test_3dtmv(mlip: tuple[str, Any]) -> None: Name of model use and model to get calculator. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() # Add D3 calculator for this test calc = model.add_d3_calculator(calc) diff --git a/ml_peg/calcs/utils/gscdb138.py b/ml_peg/calcs/utils/gscdb138.py index 44722c018..6881c8267 100644 --- a/ml_peg/calcs/utils/gscdb138.py +++ b/ml_peg/calcs/utils/gscdb138.py @@ -80,7 +80,11 @@ def run_gscdb138( Elements to exclude from calculations. Default is all elements. """ model_name, model = mlip + # Use double precision + model.default_dtype = "float64" calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) data_path = ( download_s3_data( @@ -93,9 +97,6 @@ def run_gscdb138( xyz_dir = data_path / "xyz_files" write_dir = out_path / model_name write_dir.mkdir(exist_ok=True, parents=True) - calc = model.get_calculator() - # Add D3 calculator for this test. - calc = model.add_d3_calculator(calc) for dataset in datasets: # Load dataset information. From 7df6ce6459f5cc63c12be5d725d36c7d682ff9bf Mon Sep 17 00:00:00 2001 From: Domantas Kuryla <116088428+kuryla@users.noreply.github.com> Date: Thu, 5 Mar 2026 17:37:00 +0000 Subject: [PATCH 15/27] ACONFL (#389) Co-authored-by: ElliottKasoar <45317199+ElliottKasoar@users.noreply.github.com> --- .../user_guide/benchmarks/conformers.rst | 42 +++++ docs/source/user_guide/benchmarks/index.rst | 1 + .../conformers/ACONFL/analyse_ACONFL.py | 149 ++++++++++++++++++ ml_peg/analysis/conformers/ACONFL/metrics.yml | 7 + ml_peg/app/conformers/ACONFL/app_ACONFL.py | 87 ++++++++++ ml_peg/calcs/conformers/ACONFL/calc_ACONFL.py | 79 ++++++++++ 6 files changed, 365 insertions(+) create mode 100644 docs/source/user_guide/benchmarks/conformers.rst create mode 100644 ml_peg/analysis/conformers/ACONFL/analyse_ACONFL.py create mode 100644 ml_peg/analysis/conformers/ACONFL/metrics.yml create mode 100644 ml_peg/app/conformers/ACONFL/app_ACONFL.py create mode 100644 ml_peg/calcs/conformers/ACONFL/calc_ACONFL.py diff --git a/docs/source/user_guide/benchmarks/conformers.rst b/docs/source/user_guide/benchmarks/conformers.rst new file mode 100644 index 000000000..5e9ed6d30 --- /dev/null +++ b/docs/source/user_guide/benchmarks/conformers.rst @@ -0,0 +1,42 @@ +========== +Conformers +========== + +ACONFL +====== + +Summary +------- + +Performance in predicting relative conformer energies of 12 C12H26, +16 C16H34 and 20 C20H42 conformers. Reference data from PNO-LCCSD(T)-F12/ AVQZ calculations. + +Metrics +------- + +1. Conformer energy error + +For each complex, the the relative energy is calculated by taking the difference in energy +between the given conformer and the reference (zero-energy) conformer. This is +compared to the reference conformer energy, calculated in the same way. + +Computational cost +------------------ + +Low: tests are likely to take minutes to run on CPU. + +Data availability +----------------- + +Input structures: + +* Conformational Energy Benchmark for Longer n-Alkane Chains + Sebastian Ehlert, Stefan Grimme, and Andreas Hansen + The Journal of Physical Chemistry A 2022 126 (22), 3521-3535 + DOI: 10.1021/acs.jpca.2c02439 + +Reference data: + +* Same as input data +* :math:`PNO-LCCSD(T)-F12/ AVQZ` level of theory: a local, explicitly + correlated coupled cluster method. diff --git a/docs/source/user_guide/benchmarks/index.rst b/docs/source/user_guide/benchmarks/index.rst index 63333e784..ad3c82f96 100644 --- a/docs/source/user_guide/benchmarks/index.rst +++ b/docs/source/user_guide/benchmarks/index.rst @@ -15,3 +15,4 @@ Benchmarks lanthanides non_covalent_interactions tm_complexes + conformers diff --git a/ml_peg/analysis/conformers/ACONFL/analyse_ACONFL.py b/ml_peg/analysis/conformers/ACONFL/analyse_ACONFL.py new file mode 100644 index 000000000..c3d450c40 --- /dev/null +++ b/ml_peg/analysis/conformers/ACONFL/analyse_ACONFL.py @@ -0,0 +1,149 @@ +""" +Analyse the ACONFL dataset for molecular conformer relative energies. + +Conformational Energy Benchmark for Longer n-Alkane Chains +Sebastian Ehlert, Stefan Grimme, and Andreas Hansen +The Journal of Physical Chemistry A 2022 126 (22), 3521-3535 +DOI: 10.1021/acs.jpca.2c02439 +""" + +from __future__ import annotations + +from pathlib import Path + +from ase import units +from ase.io import read, write +import pytest + +from ml_peg.analysis.utils.decorators import build_table, plot_parity +from ml_peg.analysis.utils.utils import build_d3_name_map, load_metrics_config, mae +from ml_peg.app import APP_ROOT +from ml_peg.calcs import CALCS_ROOT +from ml_peg.models.get_models import load_models +from ml_peg.models.models import current_models + +MODELS = load_models(current_models) +D3_MODEL_NAMES = build_d3_name_map(MODELS) + +EV_TO_KCAL = units.mol / units.kcal +CALC_PATH = CALCS_ROOT / "conformers" / "ACONFL" / "outputs" +OUT_PATH = APP_ROOT / "data" / "conformers" / "ACONFL" + +METRICS_CONFIG_PATH = Path(__file__).with_name("metrics.yml") +DEFAULT_THRESHOLDS, DEFAULT_TOOLTIPS, DEFAULT_WEIGHTS = load_metrics_config( + METRICS_CONFIG_PATH +) + + +def labels() -> list: + """ + Get list of system names. + + Returns + ------- + list + List of all system names. + """ + for model_name in MODELS: + labels_list = [path.stem for path in sorted((CALC_PATH / model_name).glob("*"))] + break + return labels_list + + +@pytest.fixture +@plot_parity( + filename=OUT_PATH / "figure_aconfl.json", + title="Energies", + x_label="Predicted energy / kcal/mol", + y_label="Reference energy / kcal/mol", + hoverdata={ + "Labels": labels(), + }, +) +def conformer_energies() -> dict[str, list]: + """ + Get conformer energies for all systems. + + Returns + ------- + dict[str, list] + Dictionary of all reference and predicted conformer energies. + """ + results = {"ref": []} | {mlip: [] for mlip in MODELS} + ref_stored = False + + for model_name in MODELS: + for label in labels(): + atoms = read(CALC_PATH / model_name / f"{label}.xyz") + + results[model_name].append(atoms.info["model_rel_energy"] * EV_TO_KCAL) + if not ref_stored: + results["ref"].append(atoms.info["ref_rel_energy"] * EV_TO_KCAL) + + # Write structures for app + structs_dir = OUT_PATH / model_name + structs_dir.mkdir(parents=True, exist_ok=True) + write(structs_dir / f"{label}.xyz", atoms) + ref_stored = True + return results + + +@pytest.fixture +def get_mae(conformer_energies) -> dict[str, float]: + """ + Get mean absolute error for conformer energies. + + Parameters + ---------- + conformer_energies + Dictionary of reference and predicted conformer energies. + + Returns + ------- + dict[str, float] + Dictionary of predicted conformer energies errors for all models. + """ + results = {} + for model_name in MODELS: + results[model_name] = mae( + conformer_energies["ref"], conformer_energies[model_name] + ) + return results + + +@pytest.fixture +@build_table( + filename=OUT_PATH / "aconfl_metrics_table.json", + metric_tooltips=DEFAULT_TOOLTIPS, + thresholds=DEFAULT_THRESHOLDS, + mlip_name_map=D3_MODEL_NAMES, +) +def metrics(get_mae: dict[str, float]) -> dict[str, dict]: + """ + Get all metrics. + + Parameters + ---------- + get_mae + Mean absolute errors for all models. + + Returns + ------- + dict[str, dict] + Metric names and values for all models. + """ + return { + "MAE": get_mae, + } + + +def test_aconfl(metrics: dict[str, dict]) -> None: + """ + Run ACONFL test. + + Parameters + ---------- + metrics + All new benchmark metric names and dictionary of values for each model. + """ + return diff --git a/ml_peg/analysis/conformers/ACONFL/metrics.yml b/ml_peg/analysis/conformers/ACONFL/metrics.yml new file mode 100644 index 000000000..40d89a17d --- /dev/null +++ b/ml_peg/analysis/conformers/ACONFL/metrics.yml @@ -0,0 +1,7 @@ +metrics: + MAE: + good: 0.0 + bad: 2.0 + unit: kcal/mol + tooltip: Mean Absolute Error for all systems + level_of_theory: PNO-LCCSD(T)-F12/ AVQZ diff --git a/ml_peg/app/conformers/ACONFL/app_ACONFL.py b/ml_peg/app/conformers/ACONFL/app_ACONFL.py new file mode 100644 index 000000000..d8d85b91a --- /dev/null +++ b/ml_peg/app/conformers/ACONFL/app_ACONFL.py @@ -0,0 +1,87 @@ +"""Run ACONFL app.""" + +from __future__ import annotations + +from dash import Dash +from dash.html import Div + +from ml_peg.app import APP_ROOT +from ml_peg.app.base_app import BaseApp +from ml_peg.app.utils.build_callbacks import ( + plot_from_table_column, + struct_from_scatter, +) +from ml_peg.app.utils.load import read_plot +from ml_peg.models.get_models import get_model_names +from ml_peg.models.models import current_models + +MODELS = get_model_names(current_models) +BENCHMARK_NAME = "ACONFL" +DOCS_URL = "https://ddmms.github.io/ml-peg/user_guide/benchmarks/conformers.html#aconfl" +DATA_PATH = APP_ROOT / "data" / "conformers" / "ACONFL" + + +class ACONFLApp(BaseApp): + """ACONFL benchmark app layout and callbacks.""" + + def register_callbacks(self) -> None: + """Register callbacks to app.""" + scatter = read_plot( + DATA_PATH / "figure_aconfl.json", + id=f"{BENCHMARK_NAME}-figure", + ) + + model_dir = DATA_PATH / MODELS[0] + if model_dir.exists(): + labels = sorted([f.stem for f in model_dir.glob("*.xyz")]) + structs = [ + f"assets/conformers/ACONFL/{MODELS[0]}/{label}.xyz" for label in labels + ] + else: + structs = [] + + plot_from_table_column( + table_id=self.table_id, + plot_id=f"{BENCHMARK_NAME}-figure-placeholder", + column_to_plot={"MAE": scatter}, + ) + + struct_from_scatter( + scatter_id=f"{BENCHMARK_NAME}-figure", + struct_id=f"{BENCHMARK_NAME}-struct-placeholder", + structs=structs, + mode="struct", + ) + + +def get_app() -> ACONFLApp: + """ + Get ACONFL benchmark app layout and callback registration. + + Returns + ------- + ACONFLApp + Benchmark layout and callback registration. + """ + return ACONFLApp( + name=BENCHMARK_NAME, + description=( + "Performance in predicting relative conformer energies " + "of 12 C12H26, 16 C16H34 and 20 C20H42 conformers. " + "Reference data from PNO-LCCSD(T)-F12/ AVQZ calculations." + ), + docs_url=DOCS_URL, + table_path=DATA_PATH / "aconfl_metrics_table.json", + extra_components=[ + Div(id=f"{BENCHMARK_NAME}-figure-placeholder"), + Div(id=f"{BENCHMARK_NAME}-struct-placeholder"), + ], + ) + + +if __name__ == "__main__": + full_app = Dash(__name__, assets_folder=DATA_PATH.parent.parent) + benchmark_app = get_app() + full_app.layout = benchmark_app.layout + benchmark_app.register_callbacks() + full_app.run(port=8062, debug=True) diff --git a/ml_peg/calcs/conformers/ACONFL/calc_ACONFL.py b/ml_peg/calcs/conformers/ACONFL/calc_ACONFL.py new file mode 100644 index 000000000..a2e4cabf4 --- /dev/null +++ b/ml_peg/calcs/conformers/ACONFL/calc_ACONFL.py @@ -0,0 +1,79 @@ +""" +Compute the ACONFL dataset for molecular conformer relative energies. + +Conformational Energy Benchmark for Longer n-Alkane Chains +Sebastian Ehlert, Stefan Grimme, and Andreas Hansen +The Journal of Physical Chemistry A 2022 126 (22), 3521-3535 +DOI: 10.1021/acs.jpca.2c02439 +""" + +from __future__ import annotations + +from pathlib import Path +from typing import Any + +from ase import units +from ase.io import read, write +import pytest +from tqdm import tqdm + +from ml_peg.calcs.utils.utils import download_s3_data +from ml_peg.models.get_models import load_models +from ml_peg.models.models import current_models + +MODELS = load_models(current_models) + +KCAL_TO_EV = units.kcal / units.mol + +OUT_PATH = Path(__file__).parent / "outputs" + + +@pytest.mark.parametrize("mlip", MODELS.items()) +def test_aconfl_conformer_energies(mlip: tuple[str, Any]) -> None: + """ + Benchmark the ACONFL dataset. + + Parameters + ---------- + mlip + Name of model use and model to get calculator. + """ + model_name, model = mlip + # Use double precision + model.default_dtype = "float64" + calc = model.get_calculator() + # Add D3 calculator for this test + calc = model.add_d3_calculator(calc) + + data_path = ( + download_s3_data( + filename="ACONFL.zip", + key="inputs/conformers/ACONFL/ACONFL.zip", + ) + / "ACONFL" + ) + + progress = tqdm(total=50) + with open(data_path / ".res") as lines: + for line in lines: + if "$tmer" in line: + items = line.strip().split() + zero_atoms_label = items[1].replace("/$f", "") + atoms_label = items[2].replace("/$f", "") + ref_rel_energy = float(items[7]) * KCAL_TO_EV + atoms = read(data_path / atoms_label / "struc.xyz") + atoms.calc = calc + atoms.info.update({"charge": 0, "spin": 1}) + zero_atoms = read(data_path / zero_atoms_label / "struc.xyz") + zero_atoms.calc = calc + zero_atoms.info.update({"charge": 0, "spin": 1}) + atoms.info["model_rel_energy"] = ( + atoms.get_potential_energy() - zero_atoms.get_potential_energy() + ) + atoms.info["ref_rel_energy"] = ref_rel_energy + + write_dir = OUT_PATH / model_name + write_dir.mkdir(parents=True, exist_ok=True) + + write(write_dir / f"{atoms_label}.xyz", atoms) + progress.update() From 954b429f18da79b58ab86f3e4f1125e0b9fb84ca Mon Sep 17 00:00:00 2001 From: Joseph Hart <92541539+joehart2001@users.noreply.github.com> Date: Mon, 9 Mar 2026 10:59:25 +0000 Subject: [PATCH 16/27] Add loading wheels to site load and tab switching (#414) --- ml_peg/app/build_app.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/ml_peg/app/build_app.py b/ml_peg/app/build_app.py index ff7b61ef3..6867dc10f 100644 --- a/ml_peg/app/build_app.py +++ b/ml_peg/app/build_app.py @@ -7,7 +7,7 @@ from dash import Dash, Input, Output, callback from dash.dash_table import DataTable -from dash.dcc import Store, Tab, Tabs +from dash.dcc import Loading, Store, Tab, Tabs from dash.html import H1, H3, Div from yaml import safe_load @@ -382,7 +382,25 @@ def build_tabs( [ H1("ML-PEG"), Tabs(id="all-tabs", value="summary-tab", children=all_tabs), - Div(id="tabs-content"), + Loading( + Div(id="tabs-content"), + type="circle", + color="#119DFF", + fullscreen=False, + # dont trigger both start up load wheel + tab change load wheel + # (when switching to summary tab) + target_components={"tabs-content": "children"}, + style={ + # Pin near the top so the spinner is visible on long pages + # (default is centre of page) + "position": "fixed", + "top": "300px", + "left": "50%", + "transform": "translateX(-50%)", + "zIndex": "1100", + }, + parent_style={"position": "relative"}, + ), ], style={"flex": "1", "marginBottom": "40px"}, ), From b6f2af1530a2cdddb37def6d035eeef520d78ced Mon Sep 17 00:00:00 2001 From: Elliott Kasoar <45317199+ElliottKasoar@users.noreply.github.com> Date: Mon, 9 Mar 2026 16:21:25 +0000 Subject: [PATCH 17/27] Update pre-commit (#418) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7066c22a4..6febbc5b2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # pre-commit install repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: end-of-file-fixer - id: mixed-line-ending @@ -11,7 +11,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.11.13 + rev: v0.15.5 hooks: # Run the linter. - id: ruff-check @@ -20,7 +20,7 @@ repos: - id: ruff-format - repo: https://github.com/numpy/numpydoc - rev: v1.8.0 + rev: v1.10.0 hooks: - id: numpydoc-validation files: ^ml_peg/ From ff648f5babf5c9ef9c40f359a1d6ae6133f9636a Mon Sep 17 00:00:00 2001 From: Joseph Hart <92541539+joehart2001@users.noreply.github.com> Date: Mon, 9 Mar 2026 18:25:45 +0000 Subject: [PATCH 18/27] Show structure file path in WEAS app (#417) --- ml_peg/app/utils/weas.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ml_peg/app/utils/weas.py b/ml_peg/app/utils/weas.py index 1a178f7bf..d790ccd59 100644 --- a/ml_peg/app/utils/weas.py +++ b/ml_peg/app/utils/weas.py @@ -42,6 +42,14 @@ def generate_weas_html( +