xpdfsuite-ID11 0.1.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.
Files changed (25) hide show
  1. xpdfsuite_id11-0.1.0/PKG-INFO +48 -0
  2. xpdfsuite_id11-0.1.0/README.md +10 -0
  3. xpdfsuite_id11-0.1.0/pyproject.toml +59 -0
  4. xpdfsuite_id11-0.1.0/setup.cfg +4 -0
  5. xpdfsuite_id11-0.1.0/setup.py +2 -0
  6. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/__init__.py +30 -0
  7. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/_launcher.py +9 -0
  8. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/app_xpdfsuite.py +753 -0
  9. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/calibration.py +207 -0
  10. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/compute_f0.py +118 -0
  11. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/convert_position_to_time.py +38 -0
  12. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/filereader.py +681 -0
  13. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/id11data.py +226 -0
  14. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/monitor_pdfpeaks.py +749 -0
  15. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/pdf_extraction.py +468 -0
  16. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/peakfit.py +94 -0
  17. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/utilities.py +39 -0
  18. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/utilities_process.py +729 -0
  19. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11/xpdfsuite.py +821 -0
  20. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11.egg-info/PKG-INFO +48 -0
  21. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11.egg-info/SOURCES.txt +23 -0
  22. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11.egg-info/dependency_links.txt +1 -0
  23. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11.egg-info/entry_points.txt +2 -0
  24. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11.egg-info/requires.txt +16 -0
  25. xpdfsuite_id11-0.1.0/src/xpdfsuite_ID11.egg-info/top_level.txt +1 -0
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.4
2
+ Name: xpdfsuite_ID11
3
+ Version: 0.1.0
4
+ Summary: Python toolkit for X-ray pair distribution function (xPDF) analysis from ID11 data
5
+ Author: Nicolas Ratel-Ramond
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/nicoratel/xpdfsuite
8
+ Project-URL: Repository, https://github.com/nicoratel/xpdfsuite
9
+ Project-URL: Issues, https://github.com/nicoratel/xpdfsuite/issues
10
+ Keywords: X-ray diffraction,XRPD,PDF,RDF,pair distribution function,crystallography
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.8
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Intended Audience :: Science/Research
19
+ Classifier: Topic :: Scientific/Engineering :: Physics
20
+ Classifier: Topic :: Scientific/Engineering :: Chemistry
21
+ Requires-Python: >=3.8
22
+ Description-Content-Type: text/markdown
23
+ Requires-Dist: numpy<2.0.0,>=1.26.0
24
+ Requires-Dist: scipy<2.0.0,>=1.11.0
25
+ Requires-Dist: matplotlib<4.0.0,>=3.8.0
26
+ Requires-Dist: pymatgen>=2024.1.1
27
+ Requires-Dist: fabio>=0.14.0
28
+ Requires-Dist: pyFAI>=2024.0.0
29
+ Requires-Dist: scikit-image<1.0.0,>=0.22.0
30
+ Requires-Dist: ipywidgets>=8.0.0
31
+ Requires-Dist: ipykernel>=6.0.0
32
+ Requires-Dist: plotly>=5.0.0
33
+ Requires-Dist: h5py>=3.0.0
34
+ Requires-Dist: tqdm>=4.60.0
35
+ Requires-Dist: streamlit>=1.30.0
36
+ Provides-Extra: pdfanalysis
37
+ Requires-Dist: pdfanalysis>=0.13.0; extra == "pdfanalysis"
38
+
39
+ # xPDFsuite_ID11
40
+
41
+ **xPDFsuite_ID11** is a Python toolkit for extracting the Pair Distribution Function Diffraction images acquired on ID11.
42
+
43
+
44
+
45
+ ## Author
46
+
47
+ Nicolas Ratel-Ramond
48
+ [github.com/nicoratel/ePDFsuite](https://github.com/nicoratel/xPDFsuite_ID11)
@@ -0,0 +1,10 @@
1
+ # xPDFsuite_ID11
2
+
3
+ **xPDFsuite_ID11** is a Python toolkit for extracting the Pair Distribution Function Diffraction images acquired on ID11.
4
+
5
+
6
+
7
+ ## Author
8
+
9
+ Nicolas Ratel-Ramond
10
+ [github.com/nicoratel/ePDFsuite](https://github.com/nicoratel/xPDFsuite_ID11)
@@ -0,0 +1,59 @@
1
+ [build-system]
2
+ requires = ["setuptools"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "xpdfsuite_ID11"
7
+ version = "0.1.0"
8
+ description = "Python toolkit for X-ray pair distribution function (xPDF) analysis from ID11 data"
9
+ authors = [{name = "Nicolas Ratel-Ramond"}]
10
+ readme = "README.md"
11
+ requires-python = ">=3.8"
12
+ license = {text = "MIT"}
13
+ keywords = ["X-ray diffraction", "XRPD", "PDF", "RDF", "pair distribution function", "crystallography"]
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3.8",
17
+ "Programming Language :: Python :: 3.9",
18
+ "Programming Language :: Python :: 3.10",
19
+ "Programming Language :: Python :: 3.11",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Operating System :: OS Independent",
22
+ "Intended Audience :: Science/Research",
23
+ "Topic :: Scientific/Engineering :: Physics",
24
+ "Topic :: Scientific/Engineering :: Chemistry",
25
+ ]
26
+ dependencies = [
27
+ "numpy>=1.26.0,<2.0.0",
28
+ "scipy>=1.11.0,<2.0.0",
29
+ "matplotlib>=3.8.0,<4.0.0",
30
+ #"diffpy-cmi>=3.1.0,<4.0.0",
31
+ #"ase>=3.22.0,<4.0.0",
32
+ "pymatgen>=2024.1.1",
33
+ #"abtem>=1.0.0,<2.0.0",
34
+ "fabio>=0.14.0",
35
+ "pyFAI>=2024.0.0",
36
+ "scikit-image>=0.22.0,<1.0.0",
37
+ "ipywidgets>=8.0.0",
38
+ "ipykernel>=6.0.0",
39
+ "plotly>=5.0.0",
40
+ "h5py>=3.0.0",
41
+ "tqdm>=4.60.0",
42
+ "streamlit>=1.30.0",
43
+ ]
44
+
45
+ [project.optional-dependencies]
46
+ pdfanalysis = [
47
+ "pdfanalysis>=0.13.0",
48
+ ]
49
+
50
+ [project.urls]
51
+ Homepage = "https://github.com/nicoratel/xpdfsuite"
52
+ Repository = "https://github.com/nicoratel/xpdfsuite"
53
+ Issues = "https://github.com/nicoratel/xpdfsuite/issues"
54
+
55
+ [project.scripts]
56
+ xpdfsuite-app = "xpdfsuite._launcher:main"
57
+
58
+ [tool.setuptools.packages.find]
59
+ where = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,2 @@
1
+ from setuptools import setup
2
+ setup()
@@ -0,0 +1,30 @@
1
+ """xpdfsuite package"""
2
+
3
+ # Imports absolus pour charger les modules
4
+ from .xpdfsuite import XRDProcessor
5
+ from .xpdfsuite import PDFResultsReference
6
+ from .xpdfsuite import extract_xpdf
7
+ #from .xpdfsuite import extract_xPDF_from_multiple_files
8
+ from .filereader import load_h5_data, load_image
9
+ from .calibration import perform_geometric_calibration
10
+ from .id11data import ID11Data
11
+
12
+ #from .xpdf_pipeline import extract_xpdf_from_h5, extract_xpdf_from_image
13
+ # from .pdfanalysis import perform_automatic_pdf_analysis # Module not found
14
+
15
+ __version__ = "0.1.0"
16
+
17
+ # Ce que les utilisateurs peuvent importer
18
+ __all__ = [
19
+ 'XRDProcessor',
20
+ 'PDFResultsReference',
21
+ 'extract_xpdf',
22
+ 'load_h5_data',
23
+ 'load_image',
24
+ 'ID11Data',
25
+ 'extract_xPDF_from_multiple_files',
26
+ #'perform_automatic_pdf_analysis',
27
+ 'perform_geometric_calibration',
28
+ 'extract_xpdf_from_h5',
29
+ 'extract_xpdf_from_image',
30
+ ]
@@ -0,0 +1,9 @@
1
+ import sys
2
+ import os
3
+
4
+
5
+ def main():
6
+ app_file = os.path.join(os.path.dirname(__file__), "app_xpdfsuite.py")
7
+ from streamlit.web import cli as stcli
8
+ sys.argv = ["streamlit", "run", app_file]
9
+ sys.exit(stcli.main())