pdfxtmd 0.3.0__cp37-cp37m-musllinux_1_2_i686.whl → 0.3.9__cp37-cp37m-musllinux_1_2_i686.whl

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.
@@ -0,0 +1,107 @@
1
+ Metadata-Version: 2.1
2
+ Name: pdfxtmd
3
+ Version: 0.3.9
4
+ Summary: PDFxTMD is a library for parton distribution functions (PDFs) that integrates both collinear PDFs (cPDFs) and transverse momentum-dependent PDFs (TMDs).
5
+ Home-page: https://github.com/Raminkord92/PDFxTMD
6
+ Author: Ramin Kord Valeshabadi
7
+ Author-email: Ramin Kord Valeshabadi <raminkord92@gmail.com>
8
+ License: GPL-3.0
9
+ Project-URL: Homepage, https://github.com/Raminkord92/PDFxTMD
10
+ Platform: any
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
13
+ Classifier: Operating System :: OS Independent
14
+ Requires-Python: >=3.6
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+
18
+ # PDFxTMDLib Python API
19
+
20
+ PDFxTMDLib provides Python bindings for fast and unified access to collinear PDFs (CPDFs), TMDs, and QCD coupling calculations. This README covers installation and usage for Python users only.
21
+
22
+ ## Installation
23
+
24
+ Install the package from PyPI:
25
+
26
+ ```bash
27
+ pip install pdfxtmd
28
+ ```
29
+
30
+ ## Quick Start
31
+
32
+ ```python
33
+ import pdfxtmd
34
+
35
+ # Create a CPDF factory and CPDF object
36
+ cpdf_factory = pdfxtmd.GenericCPDFFactory()
37
+ cpdf = cpdf_factory.mkCPDF("CT18NLO", 0)
38
+
39
+ # Evaluate a single flavor
40
+ x = 0.01
41
+ mu2 = 100
42
+ print("Up quark PDF:", cpdf.pdf(pdfxtmd.PartonFlavor.u, x, mu2))
43
+ print("Gluon PDF:", cpdf.pdf(pdfxtmd.PartonFlavor.g, x, mu2))
44
+
45
+ # Evaluate all flavors at once (output is modified in-place)
46
+ all_flavors = [0.0] * 13 # Must be length 13
47
+ cpdf.pdf(x, mu2, all_flavors)
48
+ print("All flavors (CPDF):", all_flavors)
49
+
50
+ # Create a TMD factory and TMD object
51
+ tmd_factory = pdfxtmd.GenericTMDFactory()
52
+ tmd = tmd_factory.mkTMD("PB-LO-HERAI+II-2020-set2", 0)
53
+
54
+ kt2 = 10
55
+ print("Gluon TMD:", tmd.tmd(pdfxtmd.PartonFlavor.g, x, kt2, mu2))
56
+ print("Up quark TMD:", tmd.tmd(pdfxtmd.PartonFlavor.u, x, kt2, mu2))
57
+ ```
58
+
59
+ ## QCD Coupling Example
60
+
61
+ ```python
62
+ coupling_factory = pdfxtmd.CouplingFactory()
63
+ coupling = coupling_factory.mkCoupling("CT18NLO")
64
+ for scale in [10, 100, 1000, 10000]:
65
+ print(f"Alpha_s at mu2={scale}:", coupling.AlphaQCDMu2(scale))
66
+ ```
67
+
68
+ ## Error Handling
69
+
70
+ The Python API raises exceptions for invalid input:
71
+
72
+ ```python
73
+ try:
74
+ cpdf.pdf(pdfxtmd.PartonFlavor.u, -0.1, mu2) # Invalid x
75
+ except Exception as e:
76
+ print("Expected error for invalid x in CPDF:", e)
77
+
78
+ try:
79
+ tmd.tmd(pdfxtmd.PartonFlavor.g, x, -5, mu2) # Invalid kt2
80
+ except Exception as e:
81
+ print("Expected error for invalid kt2 in TMD:", e)
82
+
83
+ try:
84
+ coupling.AlphaQCDMu2(-1) # Invalid mu2
85
+ except Exception as e:
86
+ print("Expected error for invalid mu2 in Coupling:", e)
87
+ ```
88
+
89
+ ## Enumerating Parton Flavors
90
+
91
+ ```python
92
+ print("All PartonFlavor enum values:")
93
+ for name, flavor in pdfxtmd.PartonFlavor.__members__.items():
94
+ print(f" {name}: {flavor.value}")
95
+ ```
96
+
97
+ ## Full Tutorial
98
+
99
+ See [examples/python_tutorial.ipynb](examples/python_tutorial.ipynb) and [examples/python_tutorial.py](examples/python_tutorial.py) for more details and advanced usage.
100
+
101
+ ## License
102
+
103
+ This project is licensed under the GNU General Public License v3.0. See the [LICENSE](LICENSE) file for details.
104
+
105
+ ## Contact
106
+
107
+ For questions or contributions, contact [raminkord92@gmail.com](mailto:raminkord92@gmail.com).
@@ -0,0 +1,8 @@
1
+ pdfxtmd.cpython-37m-i386-linux-gnu.so,sha256=L5jfLf4G9wyXTtW3giEA7iOey7l7Z0agHPHufi-FXBU,861525
2
+ pdfxtmd-0.3.9.dist-info/WHEEL,sha256=bTN0H5rGWfLYEqq__tlMIOScigdE3-gHgpM17ZMu9E8,110
3
+ pdfxtmd-0.3.9.dist-info/RECORD,,
4
+ pdfxtmd-0.3.9.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
5
+ pdfxtmd-0.3.9.dist-info/top_level.txt,sha256=HKtUjapBqLcRhPp9sUwVtvVyGREY_JHo_7f3JRnmMEQ,30
6
+ pdfxtmd-0.3.9.dist-info/METADATA,sha256=-Na8Qh8NNK86ip07PbWIgToZ2yqbKodoFXtJsvo6aYQ,3170
7
+ pdfxtmd.libs/libgcc_s-f3fb5a36.so.1,sha256=SrjjCCuY7RHj-T9JLrY9XFMgCCpYD9Qmezr4uoJGVEQ,168321
8
+ pdfxtmd.libs/libstdc++-d2a021ba.so.6.0.32,sha256=1zr_iwGwEBe95gyKdgiw7C4Y1RR9ijV40j66rk4elzg,3537349
@@ -0,0 +1,3 @@
1
+ Common
2
+ Implementation
3
+ pdfxtmd
Binary file
Binary file
@@ -1,5 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: pdfxtmd
3
- Version: 0.3.0
4
- License-File: LICENSE
5
-
@@ -1,8 +0,0 @@
1
- pdfxtmd.cpython-37m-i386-linux-gnu.so,sha256=-k81zxlFAnp2ku5Zb5y6FBuw_JerJ79sgbyJsarpnvs,898161
2
- pdfxtmd.libs/libgcc_s-887de51c.so.1,sha256=RNCpguSD0HdFtlL1g8NK7PFi5CjUceWeO3d0Hf_dMQ0,218145
3
- pdfxtmd.libs/libstdc++-d6415257.so.6.0.33,sha256=meIiZn0YlC5otOd-KKSYWFNdlouafStLQyPhNs_zcYQ,3597909
4
- pdfxtmd-0.3.0.dist-info/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
5
- pdfxtmd-0.3.0.dist-info/METADATA,sha256=v1pMQ-eaAfhPi5BiVS1778G0ah0T-RqpI6kWn5ZMwLM,74
6
- pdfxtmd-0.3.0.dist-info/WHEEL,sha256=bTN0H5rGWfLYEqq__tlMIOScigdE3-gHgpM17ZMu9E8,110
7
- pdfxtmd-0.3.0.dist-info/top_level.txt,sha256=w0BAo-du9KuBSdf2omVP6cG2wuwZYUfycMtlU9obMus,8
8
- pdfxtmd-0.3.0.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- pdfxtmd
Binary file
Binary file