adsorpqc 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- adsorpqc-1.0.0/LICENSE +21 -0
- adsorpqc-1.0.0/PKG-INFO +191 -0
- adsorpqc-1.0.0/README.md +151 -0
- adsorpqc-1.0.0/adsorpqc/__init__.py +46 -0
- adsorpqc-1.0.0/adsorpqc/cli.py +274 -0
- adsorpqc-1.0.0/adsorpqc/core/__init__.py +40 -0
- adsorpqc-1.0.0/adsorpqc/core/burnin.py +227 -0
- adsorpqc-1.0.0/adsorpqc/core/energetics.py +129 -0
- adsorpqc-1.0.0/adsorpqc/core/iast.py +115 -0
- adsorpqc-1.0.0/adsorpqc/core/isotherms.py +233 -0
- adsorpqc-1.0.0/adsorpqc/core/scoring.py +136 -0
- adsorpqc-1.0.0/adsorpqc/parsers/__init__.py +11 -0
- adsorpqc-1.0.0/adsorpqc/parsers/generic_isotherm.py +80 -0
- adsorpqc-1.0.0/adsorpqc/parsers/raspa.py +120 -0
- adsorpqc-1.0.0/adsorpqc/reporters/__init__.py +13 -0
- adsorpqc-1.0.0/adsorpqc/reporters/html_report.py +388 -0
- adsorpqc-1.0.0/adsorpqc/reporters/manuscript_prep.py +138 -0
- adsorpqc-1.0.0/adsorpqc/reporters/plot_generator.py +133 -0
- adsorpqc-1.0.0/adsorpqc.egg-info/PKG-INFO +191 -0
- adsorpqc-1.0.0/adsorpqc.egg-info/SOURCES.txt +30 -0
- adsorpqc-1.0.0/adsorpqc.egg-info/dependency_links.txt +1 -0
- adsorpqc-1.0.0/adsorpqc.egg-info/entry_points.txt +2 -0
- adsorpqc-1.0.0/adsorpqc.egg-info/requires.txt +13 -0
- adsorpqc-1.0.0/adsorpqc.egg-info/top_level.txt +1 -0
- adsorpqc-1.0.0/pyproject.toml +74 -0
- adsorpqc-1.0.0/setup.cfg +4 -0
- adsorpqc-1.0.0/tests/test_burnin.py +32 -0
- adsorpqc-1.0.0/tests/test_energetics.py +41 -0
- adsorpqc-1.0.0/tests/test_iast.py +26 -0
- adsorpqc-1.0.0/tests/test_isotherms.py +36 -0
- adsorpqc-1.0.0/tests/test_parsers.py +67 -0
- adsorpqc-1.0.0/tests/test_scoring.py +64 -0
adsorpqc-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Andre Monreal-HernΓ‘ndez
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
adsorpqc-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: adsorpqc
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Automated Quality-Control, GCMC Burn-in Detection, Isotherm Fitting, and Reproducibility Toolkit for Adsorption Simulations in Nanoporous Materials
|
|
5
|
+
Author-email: Andre Monreal-HernΓ‘ndez <amonreal@example.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/sircalch/adsorpqc
|
|
8
|
+
Project-URL: Documentation, https://github.com/sircalch/adsorpqc#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/sircalch/adsorpqc.git
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/sircalch/adsorpqc/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/sircalch/adsorpqc/blob/main/CHANGELOG.md
|
|
12
|
+
Keywords: adsorption,gcmc,raspa,mofs,cofs,zeolites,isotherms,langmuir,iast,isosteric-heat,henry-coefficient,reproducibility,computational-materials
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
17
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Operating System :: OS Independent
|
|
24
|
+
Requires-Python: >=3.9
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: numpy>=1.20.0
|
|
28
|
+
Requires-Dist: scipy>=1.7.0
|
|
29
|
+
Requires-Dist: pandas>=1.3.0
|
|
30
|
+
Requires-Dist: matplotlib>=3.5.0
|
|
31
|
+
Requires-Dist: jinja2>=3.0.0
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
34
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
35
|
+
Requires-Dist: black>=23.0.0; extra == "dev"
|
|
36
|
+
Requires-Dist: flake8>=6.0.0; extra == "dev"
|
|
37
|
+
Requires-Dist: build>=0.10.0; extra == "dev"
|
|
38
|
+
Requires-Dist: twine>=4.0.0; extra == "dev"
|
|
39
|
+
Dynamic: license-file
|
|
40
|
+
|
|
41
|
+
ο»Ώ# AdsorpQC
|
|
42
|
+
|
|
43
|
+
[](https://github.com/sircalch/adsorpqc/actions)
|
|
44
|
+
[](https://pypi.org/project/adsorpqc/)
|
|
45
|
+
[](https://pypi.org/project/adsorpqc/)
|
|
46
|
+
[](https://opensource.org/licenses/MIT)
|
|
47
|
+
[](https://doi.org/10.5281/zenodo.1234570)
|
|
48
|
+
|
|
49
|
+
> **Automated Quality-Control, GCMC Burn-in Detection, Isotherm Model Fitting, and Reproducibility Toolkit for Adsorption Simulations in Nanoporous Materials.**
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Overview
|
|
54
|
+
|
|
55
|
+
**AdsorpQC** is an open-source scientific software toolkit tailored for the rigorous validation and certification of molecular adsorption simulations (**Grand Canonical Monte Carlo, GCMC**, RASPA, LAMMPS) and experimental gas isotherms in **MOFs, COFs, Zeolites, and Porous Carbons**.
|
|
56
|
+
|
|
57
|
+
In GCMC simulations, reporting average loadings before reaching true thermodynamic equilibrium (*under-equilibrated burn-in*) or during unresolved systematic drift leads to invalid capacities. `adsorpqc` addresses this with an automated quality-control pipeline in a single command:
|
|
58
|
+
|
|
59
|
+
- β³ **Automated GCMC Burn-in Detection**:
|
|
60
|
+
- Maximizes the number of statistically independent production samples ($N_{\text{eff}}$).
|
|
61
|
+
- Automatically identifies and truncates un-equilibrated initialization cycles.
|
|
62
|
+
- π **Loading Drift & Stationarity Audit**:
|
|
63
|
+
- Evaluates percentage loading drift $\Delta_{\text{drift}}$ across the production phase.
|
|
64
|
+
- Generates clear safety alerts: `"DO NOT REPORT PRODUCTION AVERAGE"` if $\Delta_{\text{drift}} > 8.0\%$.
|
|
65
|
+
- π§ͺ **Non-Linear Isotherm Fitting & Model Selection**:
|
|
66
|
+
- Fits **Langmuir**, **Dual-Site Langmuir (DSLG)**, **Sips (Langmuir-Freundlich)**, **Toth**, **Freundlich**, and **BET** models.
|
|
67
|
+
- Automatically ranks models and selects the optimal description using **Akaike Information Criterion (AIC)** and $R^2$.
|
|
68
|
+
- β‘ **Thermodynamic Energetics & Selectivity**:
|
|
69
|
+
- **Henry coefficient ($K_H$)** via low-pressure linear regression.
|
|
70
|
+
- **Isosteric heat of adsorption ($q_{\text{st}}$)** via particle-energy fluctuation formulas in $\mu VT$ ensemble.
|
|
71
|
+
- **Ideal Adsorbed Solution Theory (IAST)** binary mixture selectivity ($S_{A/B}$) with **95% Bootstrap Confidence Intervals**.
|
|
72
|
+
- π **Publication Deliverables**:
|
|
73
|
+
- Interactive self-contained `report.html` dashboard.
|
|
74
|
+
- Vector publication plots (Isotherm fit curves, GCMC burn-in shaded trajectory) in SVG, PDF, PNG (300 DPI).
|
|
75
|
+
- Ready-to-compile LaTeX summary tables (`.tex`).
|
|
76
|
+
- Draft **Methods** text paragraph and BibTeX citation (`citation.bib`).
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
GCMC Simulation (RASPA) / Isotherm CSV
|
|
80
|
+
β
|
|
81
|
+
βΌ
|
|
82
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
83
|
+
β AdsorpQC β
|
|
84
|
+
β βββ Automated GCMC Burn-in / Equilibration Cutoff β
|
|
85
|
+
β βββ Production Loading Drift & Stationarity Audit β
|
|
86
|
+
β βββ Non-Linear Isotherm Fitting (Langmuir, Sips, Toth) β
|
|
87
|
+
β βββ Henry Constant (K_H) & Isosteric Heat (q_st) β
|
|
88
|
+
β βββ IAST Selectivity (S_A/B) with Bootstrap 95% CI β
|
|
89
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
90
|
+
β
|
|
91
|
+
βΌ
|
|
92
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
93
|
+
β Publication Deliverables β
|
|
94
|
+
β βββ report.html (Interactive Dashboard & Badges) β
|
|
95
|
+
β βββ adsorpqc_isotherm_fit.pdf/svg/png β
|
|
96
|
+
β βββ adsorpqc_gcmc_burnin_trajectory.pdf/svg/png β
|
|
97
|
+
β βββ adsorpqc_summary_table.tex / .csv β
|
|
98
|
+
β βββ methods_snippet.txt (Ready for Manuscript) β
|
|
99
|
+
β βββ citation.bib (BibTeX Reference) β
|
|
100
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Installation
|
|
106
|
+
|
|
107
|
+
### From PyPI
|
|
108
|
+
```bash
|
|
109
|
+
pip install adsorpqc
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### From Source
|
|
113
|
+
```bash
|
|
114
|
+
git clone https://github.com/sircalch/adsorpqc.git
|
|
115
|
+
cd adsorpqc
|
|
116
|
+
pip install -e .[dev]
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Quickstart (CLI)
|
|
122
|
+
|
|
123
|
+
### 1. Run Benchmark Demo (Instant GCMC + Isotherm Simulation)
|
|
124
|
+
```bash
|
|
125
|
+
adsorpqc demo -o my_adsorption_audit/
|
|
126
|
+
```
|
|
127
|
+
Open `my_adsorption_audit/report.html` in your browser to explore the interactive dashboard!
|
|
128
|
+
|
|
129
|
+
### 2. Assess Isotherm CSV File
|
|
130
|
+
```bash
|
|
131
|
+
adsorpqc assess -i my_isotherm.csv --framework "Mg-MOF-74" --adsorbate "CO2" --temp 298.15 -o output_report/
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### 3. Assess RASPA Simulation Output
|
|
135
|
+
```bash
|
|
136
|
+
adsorpqc assess -i output_Mg-MOF-74_298.000000_100000.data -o raspa_audit/
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Python API Usage
|
|
142
|
+
|
|
143
|
+
```python
|
|
144
|
+
import numpy as np
|
|
145
|
+
from adsorpqc import assess_adsorption_quality
|
|
146
|
+
from adsorpqc.parsers import parse_isotherm_csv
|
|
147
|
+
from adsorpqc.reporters import generate_adsorption_figures, generate_adsorption_manuscript_assets, generate_adsorption_html_report
|
|
148
|
+
|
|
149
|
+
# 1. Parse isotherm data
|
|
150
|
+
data = parse_isotherm_csv("co2_isotherm.csv")
|
|
151
|
+
|
|
152
|
+
# 2. Assess quality and fit models
|
|
153
|
+
report = assess_adsorption_quality(
|
|
154
|
+
metadata={"framework": "HKUST-1", "adsorbate": "CO2", "temperature_k": 298.15},
|
|
155
|
+
pressure_isotherm=data["pressure"],
|
|
156
|
+
loading_isotherm=data["loading"],
|
|
157
|
+
temperature_k=298.15
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
print(f"Overall Certification: {report.overall_status}")
|
|
161
|
+
print(f"Optimal Model: {report.isotherm_fits['best_model_name']} (R^2 = {report.isotherm_fits['best_r_squared']:.4f})")
|
|
162
|
+
|
|
163
|
+
# 3. Export all publication assets
|
|
164
|
+
generate_adsorption_figures(report, "output_dir/", pressure_raw=data["pressure"], loading_raw=data["loading"])
|
|
165
|
+
generate_adsorption_manuscript_assets(report, "output_dir/")
|
|
166
|
+
generate_adsorption_html_report(report, "output_dir/report.html")
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Citation
|
|
172
|
+
|
|
173
|
+
If you use AdsorpQC in your publications, please cite:
|
|
174
|
+
|
|
175
|
+
```bibtex
|
|
176
|
+
@software{monreal2026adsorpqc,
|
|
177
|
+
author = {Monreal-Hern{\'a}ndez, Andre},
|
|
178
|
+
title = {{AdsorpQC: An Open-Source Toolkit for Quality-Control, GCMC Burn-in Detection, Isotherm Fitting, and Reproducibility Assessment of Adsorption Simulations}},
|
|
179
|
+
year = {2026},
|
|
180
|
+
version = {1.0.0},
|
|
181
|
+
publisher = {Zenodo},
|
|
182
|
+
url = {https://github.com/sircalch/adsorpqc}
|
|
183
|
+
}
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## License
|
|
189
|
+
|
|
190
|
+
This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.
|
|
191
|
+
|
adsorpqc-1.0.0/README.md
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
ο»Ώ# AdsorpQC
|
|
2
|
+
|
|
3
|
+
[](https://github.com/sircalch/adsorpqc/actions)
|
|
4
|
+
[](https://pypi.org/project/adsorpqc/)
|
|
5
|
+
[](https://pypi.org/project/adsorpqc/)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
[](https://doi.org/10.5281/zenodo.1234570)
|
|
8
|
+
|
|
9
|
+
> **Automated Quality-Control, GCMC Burn-in Detection, Isotherm Model Fitting, and Reproducibility Toolkit for Adsorption Simulations in Nanoporous Materials.**
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
|
|
15
|
+
**AdsorpQC** is an open-source scientific software toolkit tailored for the rigorous validation and certification of molecular adsorption simulations (**Grand Canonical Monte Carlo, GCMC**, RASPA, LAMMPS) and experimental gas isotherms in **MOFs, COFs, Zeolites, and Porous Carbons**.
|
|
16
|
+
|
|
17
|
+
In GCMC simulations, reporting average loadings before reaching true thermodynamic equilibrium (*under-equilibrated burn-in*) or during unresolved systematic drift leads to invalid capacities. `adsorpqc` addresses this with an automated quality-control pipeline in a single command:
|
|
18
|
+
|
|
19
|
+
- β³ **Automated GCMC Burn-in Detection**:
|
|
20
|
+
- Maximizes the number of statistically independent production samples ($N_{\text{eff}}$).
|
|
21
|
+
- Automatically identifies and truncates un-equilibrated initialization cycles.
|
|
22
|
+
- π **Loading Drift & Stationarity Audit**:
|
|
23
|
+
- Evaluates percentage loading drift $\Delta_{\text{drift}}$ across the production phase.
|
|
24
|
+
- Generates clear safety alerts: `"DO NOT REPORT PRODUCTION AVERAGE"` if $\Delta_{\text{drift}} > 8.0\%$.
|
|
25
|
+
- π§ͺ **Non-Linear Isotherm Fitting & Model Selection**:
|
|
26
|
+
- Fits **Langmuir**, **Dual-Site Langmuir (DSLG)**, **Sips (Langmuir-Freundlich)**, **Toth**, **Freundlich**, and **BET** models.
|
|
27
|
+
- Automatically ranks models and selects the optimal description using **Akaike Information Criterion (AIC)** and $R^2$.
|
|
28
|
+
- β‘ **Thermodynamic Energetics & Selectivity**:
|
|
29
|
+
- **Henry coefficient ($K_H$)** via low-pressure linear regression.
|
|
30
|
+
- **Isosteric heat of adsorption ($q_{\text{st}}$)** via particle-energy fluctuation formulas in $\mu VT$ ensemble.
|
|
31
|
+
- **Ideal Adsorbed Solution Theory (IAST)** binary mixture selectivity ($S_{A/B}$) with **95% Bootstrap Confidence Intervals**.
|
|
32
|
+
- π **Publication Deliverables**:
|
|
33
|
+
- Interactive self-contained `report.html` dashboard.
|
|
34
|
+
- Vector publication plots (Isotherm fit curves, GCMC burn-in shaded trajectory) in SVG, PDF, PNG (300 DPI).
|
|
35
|
+
- Ready-to-compile LaTeX summary tables (`.tex`).
|
|
36
|
+
- Draft **Methods** text paragraph and BibTeX citation (`citation.bib`).
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
GCMC Simulation (RASPA) / Isotherm CSV
|
|
40
|
+
β
|
|
41
|
+
βΌ
|
|
42
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
43
|
+
β AdsorpQC β
|
|
44
|
+
β βββ Automated GCMC Burn-in / Equilibration Cutoff β
|
|
45
|
+
β βββ Production Loading Drift & Stationarity Audit β
|
|
46
|
+
β βββ Non-Linear Isotherm Fitting (Langmuir, Sips, Toth) β
|
|
47
|
+
β βββ Henry Constant (K_H) & Isosteric Heat (q_st) β
|
|
48
|
+
β βββ IAST Selectivity (S_A/B) with Bootstrap 95% CI β
|
|
49
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
50
|
+
β
|
|
51
|
+
βΌ
|
|
52
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
53
|
+
β Publication Deliverables β
|
|
54
|
+
β βββ report.html (Interactive Dashboard & Badges) β
|
|
55
|
+
β βββ adsorpqc_isotherm_fit.pdf/svg/png β
|
|
56
|
+
β βββ adsorpqc_gcmc_burnin_trajectory.pdf/svg/png β
|
|
57
|
+
β βββ adsorpqc_summary_table.tex / .csv β
|
|
58
|
+
β βββ methods_snippet.txt (Ready for Manuscript) β
|
|
59
|
+
β βββ citation.bib (BibTeX Reference) β
|
|
60
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Installation
|
|
66
|
+
|
|
67
|
+
### From PyPI
|
|
68
|
+
```bash
|
|
69
|
+
pip install adsorpqc
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### From Source
|
|
73
|
+
```bash
|
|
74
|
+
git clone https://github.com/sircalch/adsorpqc.git
|
|
75
|
+
cd adsorpqc
|
|
76
|
+
pip install -e .[dev]
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Quickstart (CLI)
|
|
82
|
+
|
|
83
|
+
### 1. Run Benchmark Demo (Instant GCMC + Isotherm Simulation)
|
|
84
|
+
```bash
|
|
85
|
+
adsorpqc demo -o my_adsorption_audit/
|
|
86
|
+
```
|
|
87
|
+
Open `my_adsorption_audit/report.html` in your browser to explore the interactive dashboard!
|
|
88
|
+
|
|
89
|
+
### 2. Assess Isotherm CSV File
|
|
90
|
+
```bash
|
|
91
|
+
adsorpqc assess -i my_isotherm.csv --framework "Mg-MOF-74" --adsorbate "CO2" --temp 298.15 -o output_report/
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### 3. Assess RASPA Simulation Output
|
|
95
|
+
```bash
|
|
96
|
+
adsorpqc assess -i output_Mg-MOF-74_298.000000_100000.data -o raspa_audit/
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Python API Usage
|
|
102
|
+
|
|
103
|
+
```python
|
|
104
|
+
import numpy as np
|
|
105
|
+
from adsorpqc import assess_adsorption_quality
|
|
106
|
+
from adsorpqc.parsers import parse_isotherm_csv
|
|
107
|
+
from adsorpqc.reporters import generate_adsorption_figures, generate_adsorption_manuscript_assets, generate_adsorption_html_report
|
|
108
|
+
|
|
109
|
+
# 1. Parse isotherm data
|
|
110
|
+
data = parse_isotherm_csv("co2_isotherm.csv")
|
|
111
|
+
|
|
112
|
+
# 2. Assess quality and fit models
|
|
113
|
+
report = assess_adsorption_quality(
|
|
114
|
+
metadata={"framework": "HKUST-1", "adsorbate": "CO2", "temperature_k": 298.15},
|
|
115
|
+
pressure_isotherm=data["pressure"],
|
|
116
|
+
loading_isotherm=data["loading"],
|
|
117
|
+
temperature_k=298.15
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
print(f"Overall Certification: {report.overall_status}")
|
|
121
|
+
print(f"Optimal Model: {report.isotherm_fits['best_model_name']} (R^2 = {report.isotherm_fits['best_r_squared']:.4f})")
|
|
122
|
+
|
|
123
|
+
# 3. Export all publication assets
|
|
124
|
+
generate_adsorption_figures(report, "output_dir/", pressure_raw=data["pressure"], loading_raw=data["loading"])
|
|
125
|
+
generate_adsorption_manuscript_assets(report, "output_dir/")
|
|
126
|
+
generate_adsorption_html_report(report, "output_dir/report.html")
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Citation
|
|
132
|
+
|
|
133
|
+
If you use AdsorpQC in your publications, please cite:
|
|
134
|
+
|
|
135
|
+
```bibtex
|
|
136
|
+
@software{monreal2026adsorpqc,
|
|
137
|
+
author = {Monreal-Hern{\'a}ndez, Andre},
|
|
138
|
+
title = {{AdsorpQC: An Open-Source Toolkit for Quality-Control, GCMC Burn-in Detection, Isotherm Fitting, and Reproducibility Assessment of Adsorption Simulations}},
|
|
139
|
+
year = {2026},
|
|
140
|
+
version = {1.0.0},
|
|
141
|
+
publisher = {Zenodo},
|
|
142
|
+
url = {https://github.com/sircalch/adsorpqc}
|
|
143
|
+
}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## License
|
|
149
|
+
|
|
150
|
+
This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.
|
|
151
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""
|
|
2
|
+
AdsorpQC: Automated Quality-Control, GCMC Burn-in Detection, Isotherm Fitting, and
|
|
3
|
+
Reproducibility Assessment for Adsorption Simulations.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
__version__ = "1.0.0"
|
|
7
|
+
__author__ = "Andre Monreal-HernΓ‘ndez"
|
|
8
|
+
__license__ = "MIT"
|
|
9
|
+
|
|
10
|
+
from adsorpqc.core.burnin import (
|
|
11
|
+
detect_gcmc_burnin,
|
|
12
|
+
assess_loading_drift,
|
|
13
|
+
GCMCBurninResult
|
|
14
|
+
)
|
|
15
|
+
from adsorpqc.core.isotherms import (
|
|
16
|
+
fit_all_isotherm_models,
|
|
17
|
+
fit_langmuir,
|
|
18
|
+
fit_dual_site_langmuir,
|
|
19
|
+
fit_sips,
|
|
20
|
+
fit_toth,
|
|
21
|
+
IsothermFitResult
|
|
22
|
+
)
|
|
23
|
+
from adsorpqc.core.energetics import (
|
|
24
|
+
calculate_henry_constant,
|
|
25
|
+
calculate_isosteric_heat
|
|
26
|
+
)
|
|
27
|
+
from adsorpqc.core.iast import calculate_iast_selectivity
|
|
28
|
+
from adsorpqc.core.scoring import assess_adsorption_quality, AdsorptionValidationReport
|
|
29
|
+
|
|
30
|
+
__all__ = [
|
|
31
|
+
"__version__",
|
|
32
|
+
"detect_gcmc_burnin",
|
|
33
|
+
"assess_loading_drift",
|
|
34
|
+
"GCMCBurninResult",
|
|
35
|
+
"fit_all_isotherm_models",
|
|
36
|
+
"fit_langmuir",
|
|
37
|
+
"fit_dual_site_langmuir",
|
|
38
|
+
"fit_sips",
|
|
39
|
+
"fit_toth",
|
|
40
|
+
"IsothermFitResult",
|
|
41
|
+
"calculate_henry_constant",
|
|
42
|
+
"calculate_isosteric_heat",
|
|
43
|
+
"calculate_iast_selectivity",
|
|
44
|
+
"assess_adsorption_quality",
|
|
45
|
+
"AdsorptionValidationReport"
|
|
46
|
+
]
|