scatterkit 0.1__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.
- scatterkit-0.1/AUTHORS.rst +15 -0
- scatterkit-0.1/CHANGELOG.rst +21 -0
- scatterkit-0.1/MANIFEST.in +17 -0
- scatterkit-0.1/PKG-INFO +136 -0
- scatterkit-0.1/README.rst +100 -0
- scatterkit-0.1/pyproject.toml +159 -0
- scatterkit-0.1/setup.cfg +4 -0
- scatterkit-0.1/setup.py +123 -0
- scatterkit-0.1/src/scatterkit/__init__.py +15 -0
- scatterkit-0.1/src/scatterkit/__main__.py +29 -0
- scatterkit-0.1/src/scatterkit/_version.py +21 -0
- scatterkit-0.1/src/scatterkit/diporderstructurefactor.py +174 -0
- scatterkit-0.1/src/scatterkit/lib/_cmath.c +30903 -0
- scatterkit-0.1/src/scatterkit/lib/_cmath.pyx +126 -0
- scatterkit-0.1/src/scatterkit/lib/math.py +193 -0
- scatterkit-0.1/src/scatterkit/lib/tables.py +54 -0
- scatterkit-0.1/src/scatterkit/lib/util.py +134 -0
- scatterkit-0.1/src/scatterkit/lib/weights.py +24 -0
- scatterkit-0.1/src/scatterkit/rdfdiporder.py +198 -0
- scatterkit-0.1/src/scatterkit/saxs.py +346 -0
- scatterkit-0.1/src/scatterkit/share/scatteringfactors.dat +221 -0
- scatterkit-0.1/src/scatterkit.egg-info/PKG-INFO +136 -0
- scatterkit-0.1/src/scatterkit.egg-info/SOURCES.txt +25 -0
- scatterkit-0.1/src/scatterkit.egg-info/dependency_links.txt +1 -0
- scatterkit-0.1/src/scatterkit.egg-info/entry_points.txt +2 -0
- scatterkit-0.1/src/scatterkit.egg-info/requires.txt +4 -0
- scatterkit-0.1/src/scatterkit.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
CHANGELOG file
|
|
2
|
+
--------------
|
|
3
|
+
|
|
4
|
+
..
|
|
5
|
+
The rules for scatterkit's CHANGELOG file:
|
|
6
|
+
- entries are sorted newest-first.
|
|
7
|
+
- summarize sets of changes (don't reproduce every git log comment here).
|
|
8
|
+
- don't ever delete anything.
|
|
9
|
+
- keep the format consistent (79 char width, Y/M/D date format) and do not
|
|
10
|
+
use tabs but use spaces for formatting
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
v0.1 (2025/11/11)
|
|
14
|
+
-----------------
|
|
15
|
+
Kira Fischer, Philip Loche, Henrik Stooß
|
|
16
|
+
|
|
17
|
+
- Migrate ``RDFDiporder`` and ``DiporderStructureFactor`` from MAICoS
|
|
18
|
+
- Update the documentation (#8)
|
|
19
|
+
- Update to Python 3.14 support
|
|
20
|
+
- Updated the docs with Whatis section
|
|
21
|
+
- Migrated code from maicos to scatterkit
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
graft src
|
|
2
|
+
|
|
3
|
+
include *.rst
|
|
4
|
+
include LICENSE
|
|
5
|
+
|
|
6
|
+
prune docs
|
|
7
|
+
prune examples
|
|
8
|
+
prune tests
|
|
9
|
+
prune developer
|
|
10
|
+
|
|
11
|
+
exclude .codecov.yml
|
|
12
|
+
exclude .gitattributes
|
|
13
|
+
exclude .gitignore
|
|
14
|
+
exclude .readthedocs.yml
|
|
15
|
+
exclude tox.ini
|
|
16
|
+
|
|
17
|
+
global-exclude *.py[cod] __pycache__/* *.so *.dylib
|
scatterkit-0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: scatterkit
|
|
3
|
+
Version: 0.1
|
|
4
|
+
Summary: SAXS analysis of molecular dynamics simulations.
|
|
5
|
+
Author: MAICoS Developer Team
|
|
6
|
+
Maintainer: Philip Loche, Henrik Stooß, Alexander Schlaich
|
|
7
|
+
License-Expression: GPL-3.0-or-later
|
|
8
|
+
Project-URL: repository, https://github.com/maicos-devel/scatterkit
|
|
9
|
+
Project-URL: issues, https://github.com/maicos-devel/scatterkit/issues
|
|
10
|
+
Keywords: Science,Molecular Dynamics,Confined Systems,MDAnalysis
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: Operating System :: POSIX
|
|
15
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
16
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
17
|
+
Classifier: Programming Language :: Python
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
25
|
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
26
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
27
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
28
|
+
Classifier: Topic :: System :: Shells
|
|
29
|
+
Requires-Python: >=3.11
|
|
30
|
+
Description-Content-Type: text/x-rst
|
|
31
|
+
License-File: AUTHORS.rst
|
|
32
|
+
Requires-Dist: maicos>=0.11
|
|
33
|
+
Provides-Extra: examples
|
|
34
|
+
Requires-Dist: matplotlib; extra == "examples"
|
|
35
|
+
Dynamic: license-file
|
|
36
|
+
|
|
37
|
+
Scatterkit
|
|
38
|
+
==========
|
|
39
|
+
|
|
40
|
+
|tests| |codecov| |docs-stable| |docs-latest| |mdanalysis|
|
|
41
|
+
|
|
42
|
+
.. inclusion-readme-intro-start
|
|
43
|
+
|
|
44
|
+
**Scatterkit** is an object-oriented python toolkit for analysing scattering of
|
|
45
|
+
fluids from molecular simulations. Combined with MDAnalysis_,
|
|
46
|
+
Scatterkit can be used to extract X-ray scattering data from trajectory files,
|
|
47
|
+
including LAMMPS, GROMACS, CHARMM or NAMD data. Scatterkit is open source and is
|
|
48
|
+
released under the GNU general public license v3.0.
|
|
49
|
+
|
|
50
|
+
Scatterkit is a tool for beginners of molecular simulations with no prior Python experience.
|
|
51
|
+
For these users Scatterkit provides a descriptive command line interface. Also experienced
|
|
52
|
+
users can use the Python API for their day to day analysis.
|
|
53
|
+
|
|
54
|
+
Scatterkit is maintained by the MAICoS developer team.
|
|
55
|
+
Keep up to date with Scatterkit news by following us on Twitter_. If you find an issue, you
|
|
56
|
+
can report it on GitHub_. You can also join the developer team on Discord_ to discuss
|
|
57
|
+
possible improvements and usages of Scatterkit.
|
|
58
|
+
|
|
59
|
+
.. _`MDAnalysis`: https://www.mdanalysis.org
|
|
60
|
+
.. _`Twitter`: https://twitter.com/maicos_analysis
|
|
61
|
+
.. _`GitHub`: https://github.com/maicos-devel/scatterkit
|
|
62
|
+
.. _`Discord`: https://discord.gg/mnrEQWVAed
|
|
63
|
+
|
|
64
|
+
.. inclusion-readme-intro-end
|
|
65
|
+
|
|
66
|
+
Documentation
|
|
67
|
+
=============
|
|
68
|
+
|
|
69
|
+
For details, tutorials, and examples, visit our official `documentation`_. We also
|
|
70
|
+
provide the `latest documentation`_ for the current development version of Scatterkit.
|
|
71
|
+
|
|
72
|
+
.. _`documentation`: https://maicos-devel.github.io/scatterkit
|
|
73
|
+
.. _`latest documentation`: https://maicos-devel.github.io/scatterkit/latest
|
|
74
|
+
|
|
75
|
+
.. inclusion-readme-installation-start
|
|
76
|
+
|
|
77
|
+
Installation
|
|
78
|
+
============
|
|
79
|
+
|
|
80
|
+
Install Scatterkit using `pip`_::
|
|
81
|
+
|
|
82
|
+
pip install scatterkit
|
|
83
|
+
|
|
84
|
+
.. _`pip`: https://pip.pypa.io
|
|
85
|
+
|
|
86
|
+
.. inclusion-readme-installation-end
|
|
87
|
+
|
|
88
|
+
List of Analysis Modules
|
|
89
|
+
========================
|
|
90
|
+
|
|
91
|
+
.. inclusion-marker-modules-start
|
|
92
|
+
|
|
93
|
+
Currently, Scatterkit supports the following analysis modules (alphabetically):
|
|
94
|
+
|
|
95
|
+
.. list-table::
|
|
96
|
+
:widths: 25 50
|
|
97
|
+
:header-rows: 1
|
|
98
|
+
|
|
99
|
+
* - Module
|
|
100
|
+
- Description
|
|
101
|
+
* - DiporderStructureFactor
|
|
102
|
+
- Structure factor for dipoles
|
|
103
|
+
* - RDFDiporder
|
|
104
|
+
- Radial distribution function between dipoles
|
|
105
|
+
* - SAXS
|
|
106
|
+
- Small angle X-ray scattering
|
|
107
|
+
|
|
108
|
+
.. inclusion-marker-modules-end
|
|
109
|
+
|
|
110
|
+
Contributors
|
|
111
|
+
============
|
|
112
|
+
|
|
113
|
+
Thanks to all contributors who make **Scatterkit** possible:
|
|
114
|
+
|
|
115
|
+
.. image:: https://contrib.rocks/image?repo=maicos-devel/scatterkit
|
|
116
|
+
:target: https://github.com/maicos-devel/scatterkit/graphs/contributors
|
|
117
|
+
|
|
118
|
+
.. |tests| image:: https://github.com/maicos-devel/scatterkit/workflows/Tests/badge.svg
|
|
119
|
+
:alt: GitHub Actions Tests Job Status
|
|
120
|
+
:target: https://github.com/maicos-devel/scatterkit/actions?query=branch%3Amain
|
|
121
|
+
|
|
122
|
+
.. |codecov| image:: https://codecov.io/gh/maicos-devel/scatterkit/graph/badge.svg?token=9AXPLF6CR3
|
|
123
|
+
:alt: Code coverage
|
|
124
|
+
:target: https://codecov.io/gh/maicos-devel/scatterkit
|
|
125
|
+
|
|
126
|
+
.. |docs-stable| image:: https://img.shields.io/badge/📚_Documentation-stable-success
|
|
127
|
+
:alt: Documentation of stable released version
|
|
128
|
+
:target: `documentation`_
|
|
129
|
+
|
|
130
|
+
.. |docs-latest| image:: https://img.shields.io/badge/📒_Documentation-latest-yellow.svg
|
|
131
|
+
:alt: Documentation of latest unreleased version
|
|
132
|
+
:target: `latest documentation`_
|
|
133
|
+
|
|
134
|
+
.. |mdanalysis| image:: https://img.shields.io/badge/powered%20by-MDAnalysis-orange.svg?log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AAAAAAAAAAAAAAAAAALGxsVyqqqr/mpqa/6mpqf9KSUn/AAAA5QAAAPkAAAD5AAAAhQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADkUFBSuZ2dn/3V1df8uLi7bAAAATgBGfyQAAAA2AAAAMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0AAADoAAAA/wAAAP8AAAD/AAAAWgC3/2AAnv3eAJ/+dgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9AAAA/wAAAP8AAAD/AAAA/wAKDzEAnP3WAKn//wCS/OgAf/8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIQAAANwAAADtAAAA7QAAAMAAABUMAJn9gwCe/e0Aj/2LAP//AQAAAAAAAAAA
|
|
135
|
+
:alt: Powered by MDAnalysis
|
|
136
|
+
:target: https://www.mdanalysis.org
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
Scatterkit
|
|
2
|
+
==========
|
|
3
|
+
|
|
4
|
+
|tests| |codecov| |docs-stable| |docs-latest| |mdanalysis|
|
|
5
|
+
|
|
6
|
+
.. inclusion-readme-intro-start
|
|
7
|
+
|
|
8
|
+
**Scatterkit** is an object-oriented python toolkit for analysing scattering of
|
|
9
|
+
fluids from molecular simulations. Combined with MDAnalysis_,
|
|
10
|
+
Scatterkit can be used to extract X-ray scattering data from trajectory files,
|
|
11
|
+
including LAMMPS, GROMACS, CHARMM or NAMD data. Scatterkit is open source and is
|
|
12
|
+
released under the GNU general public license v3.0.
|
|
13
|
+
|
|
14
|
+
Scatterkit is a tool for beginners of molecular simulations with no prior Python experience.
|
|
15
|
+
For these users Scatterkit provides a descriptive command line interface. Also experienced
|
|
16
|
+
users can use the Python API for their day to day analysis.
|
|
17
|
+
|
|
18
|
+
Scatterkit is maintained by the MAICoS developer team.
|
|
19
|
+
Keep up to date with Scatterkit news by following us on Twitter_. If you find an issue, you
|
|
20
|
+
can report it on GitHub_. You can also join the developer team on Discord_ to discuss
|
|
21
|
+
possible improvements and usages of Scatterkit.
|
|
22
|
+
|
|
23
|
+
.. _`MDAnalysis`: https://www.mdanalysis.org
|
|
24
|
+
.. _`Twitter`: https://twitter.com/maicos_analysis
|
|
25
|
+
.. _`GitHub`: https://github.com/maicos-devel/scatterkit
|
|
26
|
+
.. _`Discord`: https://discord.gg/mnrEQWVAed
|
|
27
|
+
|
|
28
|
+
.. inclusion-readme-intro-end
|
|
29
|
+
|
|
30
|
+
Documentation
|
|
31
|
+
=============
|
|
32
|
+
|
|
33
|
+
For details, tutorials, and examples, visit our official `documentation`_. We also
|
|
34
|
+
provide the `latest documentation`_ for the current development version of Scatterkit.
|
|
35
|
+
|
|
36
|
+
.. _`documentation`: https://maicos-devel.github.io/scatterkit
|
|
37
|
+
.. _`latest documentation`: https://maicos-devel.github.io/scatterkit/latest
|
|
38
|
+
|
|
39
|
+
.. inclusion-readme-installation-start
|
|
40
|
+
|
|
41
|
+
Installation
|
|
42
|
+
============
|
|
43
|
+
|
|
44
|
+
Install Scatterkit using `pip`_::
|
|
45
|
+
|
|
46
|
+
pip install scatterkit
|
|
47
|
+
|
|
48
|
+
.. _`pip`: https://pip.pypa.io
|
|
49
|
+
|
|
50
|
+
.. inclusion-readme-installation-end
|
|
51
|
+
|
|
52
|
+
List of Analysis Modules
|
|
53
|
+
========================
|
|
54
|
+
|
|
55
|
+
.. inclusion-marker-modules-start
|
|
56
|
+
|
|
57
|
+
Currently, Scatterkit supports the following analysis modules (alphabetically):
|
|
58
|
+
|
|
59
|
+
.. list-table::
|
|
60
|
+
:widths: 25 50
|
|
61
|
+
:header-rows: 1
|
|
62
|
+
|
|
63
|
+
* - Module
|
|
64
|
+
- Description
|
|
65
|
+
* - DiporderStructureFactor
|
|
66
|
+
- Structure factor for dipoles
|
|
67
|
+
* - RDFDiporder
|
|
68
|
+
- Radial distribution function between dipoles
|
|
69
|
+
* - SAXS
|
|
70
|
+
- Small angle X-ray scattering
|
|
71
|
+
|
|
72
|
+
.. inclusion-marker-modules-end
|
|
73
|
+
|
|
74
|
+
Contributors
|
|
75
|
+
============
|
|
76
|
+
|
|
77
|
+
Thanks to all contributors who make **Scatterkit** possible:
|
|
78
|
+
|
|
79
|
+
.. image:: https://contrib.rocks/image?repo=maicos-devel/scatterkit
|
|
80
|
+
:target: https://github.com/maicos-devel/scatterkit/graphs/contributors
|
|
81
|
+
|
|
82
|
+
.. |tests| image:: https://github.com/maicos-devel/scatterkit/workflows/Tests/badge.svg
|
|
83
|
+
:alt: GitHub Actions Tests Job Status
|
|
84
|
+
:target: https://github.com/maicos-devel/scatterkit/actions?query=branch%3Amain
|
|
85
|
+
|
|
86
|
+
.. |codecov| image:: https://codecov.io/gh/maicos-devel/scatterkit/graph/badge.svg?token=9AXPLF6CR3
|
|
87
|
+
:alt: Code coverage
|
|
88
|
+
:target: https://codecov.io/gh/maicos-devel/scatterkit
|
|
89
|
+
|
|
90
|
+
.. |docs-stable| image:: https://img.shields.io/badge/📚_Documentation-stable-success
|
|
91
|
+
:alt: Documentation of stable released version
|
|
92
|
+
:target: `documentation`_
|
|
93
|
+
|
|
94
|
+
.. |docs-latest| image:: https://img.shields.io/badge/📒_Documentation-latest-yellow.svg
|
|
95
|
+
:alt: Documentation of latest unreleased version
|
|
96
|
+
:target: `latest documentation`_
|
|
97
|
+
|
|
98
|
+
.. |mdanalysis| image:: https://img.shields.io/badge/powered%20by-MDAnalysis-orange.svg?logoWidth=16&logo=data:image/x-icon;base64,AAABAAEAEBAAAAEAIAAoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJD+XwCY/fEAkf3uAJf97wGT/a+HfHaoiIWE7n9/f+6Hh4fvgICAjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACT/yYAlP//AJ///wCg//8JjvOchXly1oaGhv+Ghob/j4+P/39/f3IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJH8aQCY/8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/wAKDzEAnP3WAKn//wCS/OgAf/8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIQAAANwAAADtAAAA7QAAAMAAABUMAJn9gwCe/e0Aj/2LAP//AQAAAAAAAAAA
|
|
99
|
+
:alt: Powered by MDAnalysis
|
|
100
|
+
:target: https://www.mdanalysis.org
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
# These are the assumed default build requirements from pip:
|
|
3
|
+
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
|
|
4
|
+
requires = [
|
|
5
|
+
"cython>=0.28",
|
|
6
|
+
"packaging",
|
|
7
|
+
# numpy requirement for wheel builds for distribution on PyPI - building
|
|
8
|
+
# against 2.x yields wheels that are also compatible with numpy 1.x at
|
|
9
|
+
# runtime.
|
|
10
|
+
# Note that building against numpy 1.x works fine too - users and
|
|
11
|
+
# redistributors can do this by installing the numpy version they like and
|
|
12
|
+
# disabling build isolation.
|
|
13
|
+
"numpy>=2.0.0",
|
|
14
|
+
# Set to minimum version of setuptools that allows pyproject.toml
|
|
15
|
+
"setuptools>=77",
|
|
16
|
+
"setuptools-git-versioning<2",
|
|
17
|
+
"versioneer[toml]",
|
|
18
|
+
"wheel",
|
|
19
|
+
]
|
|
20
|
+
build-backend = "setuptools.build_meta"
|
|
21
|
+
|
|
22
|
+
[project]
|
|
23
|
+
authors = [{name = "MAICoS Developer Team"}]
|
|
24
|
+
classifiers = [
|
|
25
|
+
"Development Status :: 4 - Beta",
|
|
26
|
+
"Environment :: Console",
|
|
27
|
+
"Intended Audience :: Science/Research",
|
|
28
|
+
"Operating System :: POSIX",
|
|
29
|
+
"Operating System :: MacOS :: MacOS X",
|
|
30
|
+
"Operating System :: Microsoft :: Windows",
|
|
31
|
+
"Programming Language :: Python",
|
|
32
|
+
"Programming Language :: Python :: 3",
|
|
33
|
+
"Programming Language :: Python :: 3.11",
|
|
34
|
+
"Programming Language :: Python :: 3.12",
|
|
35
|
+
"Programming Language :: Python :: 3.13",
|
|
36
|
+
"Programming Language :: Python :: 3.14",
|
|
37
|
+
"Topic :: Scientific/Engineering",
|
|
38
|
+
"Topic :: Scientific/Engineering :: Bio-Informatics",
|
|
39
|
+
"Topic :: Scientific/Engineering :: Chemistry",
|
|
40
|
+
"Topic :: Scientific/Engineering :: Physics",
|
|
41
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
42
|
+
"Topic :: System :: Shells",
|
|
43
|
+
]
|
|
44
|
+
description = "SAXS analysis of molecular dynamics simulations."
|
|
45
|
+
dynamic = ["version"]
|
|
46
|
+
keywords = [
|
|
47
|
+
"Science",
|
|
48
|
+
"Molecular Dynamics",
|
|
49
|
+
"Confined Systems",
|
|
50
|
+
"MDAnalysis",
|
|
51
|
+
]
|
|
52
|
+
license = "GPL-3.0-or-later"
|
|
53
|
+
maintainers = [
|
|
54
|
+
{name = "Philip Loche"},
|
|
55
|
+
{name = "Henrik Stooß"},
|
|
56
|
+
{name = "Alexander Schlaich"}
|
|
57
|
+
]
|
|
58
|
+
name = "scatterkit"
|
|
59
|
+
readme = "README.rst"
|
|
60
|
+
requires-python = ">=3.11"
|
|
61
|
+
dependencies = ["maicos>=0.11"]
|
|
62
|
+
|
|
63
|
+
[project.optional-dependencies]
|
|
64
|
+
examples = ["matplotlib"]
|
|
65
|
+
|
|
66
|
+
[project.urls]
|
|
67
|
+
repository = "https://github.com/maicos-devel/scatterkit"
|
|
68
|
+
issues = "https://github.com/maicos-devel/scatterkit/issues"
|
|
69
|
+
|
|
70
|
+
[project.scripts]
|
|
71
|
+
scatterkit = "scatterkit.__main__:main"
|
|
72
|
+
|
|
73
|
+
[tool.check-manifest]
|
|
74
|
+
# ignore files missing in VCS
|
|
75
|
+
ignore = ["src/scatterkit/lib/_cmath.c"]
|
|
76
|
+
|
|
77
|
+
[tool.mypy]
|
|
78
|
+
exclude = ["docs/src/examples"]
|
|
79
|
+
follow_imports = 'skip'
|
|
80
|
+
ignore_missing_imports = true
|
|
81
|
+
|
|
82
|
+
[tool.coverage.paths]
|
|
83
|
+
source = ["src/scatterkit", "*/site-packages"]
|
|
84
|
+
|
|
85
|
+
[tool.coverage.report]
|
|
86
|
+
skip_covered = true
|
|
87
|
+
show_missing = true
|
|
88
|
+
exclude_lines = ["if __name__ == .__main__.:"]
|
|
89
|
+
|
|
90
|
+
[tool.pytest.ini_options]
|
|
91
|
+
testpaths = "tests"
|
|
92
|
+
addopts = [
|
|
93
|
+
"--cov",
|
|
94
|
+
"--cov-append",
|
|
95
|
+
"--cov-report=",
|
|
96
|
+
"--import-mode=append",
|
|
97
|
+
"--disable-warnings",
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
[tool.ruff]
|
|
101
|
+
exclude = ["versioneer.py", "docs/src/examples/**", "src/scatterkit/_version.py"]
|
|
102
|
+
line-length = 88
|
|
103
|
+
|
|
104
|
+
[tool.ruff.lint]
|
|
105
|
+
# See https://docs.astral.sh/ruff/rules for additional details
|
|
106
|
+
extend-select = [
|
|
107
|
+
"F", # Pyflakes checks (e.g., unused imports, undefined variables)
|
|
108
|
+
"B", # Pyflakes-bugbear checks (e.g., unused imports, undefined variables)
|
|
109
|
+
"D", # PEP 257 docstring conventions (e.g., formatting, consistency)
|
|
110
|
+
"E", # Pycodestyle errors (e.g., indentation, whitespace, syntax)
|
|
111
|
+
"UP", # PyUpgrade rules (e.g., upgrading to modern Python syntax)
|
|
112
|
+
"I", # Import conventions (e.g., sorting imports, duplicate imports)
|
|
113
|
+
"SIM", # Simplification suggestions (e.g., refactoring redundant code)
|
|
114
|
+
"PT", # Pytest style rules (e.g., avoiding assert in tests)
|
|
115
|
+
"RET", # Return statements consistency (e.g., avoiding multiple return paths)
|
|
116
|
+
"W", # Warnings about style (e.g., trailing whitespace, blank lines)
|
|
117
|
+
"Q", # Quotes consistency (e.g., single vs. double quotes)
|
|
118
|
+
"TD", # TODO checks (e.g., TODO comments without author)
|
|
119
|
+
"LOG", # Logging checks
|
|
120
|
+
"G", # Logging formatting checks
|
|
121
|
+
"T20", # Check for print statements
|
|
122
|
+
"ARG", # Checks for unused arguments
|
|
123
|
+
"PTH", # Check for instances where pathlib should be used
|
|
124
|
+
"FLY", # Checks for str.join() which can be written as f-strings
|
|
125
|
+
"TRY", # Checks for try/except blocks
|
|
126
|
+
]
|
|
127
|
+
|
|
128
|
+
ignore = [
|
|
129
|
+
"D107", # Missing docstring in __init__
|
|
130
|
+
"D203", # 1 blank line required before class docstring
|
|
131
|
+
"D213", # Multi-line docstring summary should start at the second line
|
|
132
|
+
"D400", # First line should end with a period
|
|
133
|
+
"D401", # First line should be in imperative mood
|
|
134
|
+
"D413", # Missing blank line after last section
|
|
135
|
+
"D417", # Missing argument description in the docstring for {definition}: {name}
|
|
136
|
+
"TRY003", # Avoid specifying long messages outside the exception class
|
|
137
|
+
"TD003", # Missing issue link for this TODO
|
|
138
|
+
"G004", # f-strings in log messages
|
|
139
|
+
"LOG015", # Logging using root logger #TODO(@PicoCentauri): Check this
|
|
140
|
+
]
|
|
141
|
+
|
|
142
|
+
[tool.ruff.lint.per-file-ignores]
|
|
143
|
+
"**/{docs,examples}/*" = ["T20"] # Don't require any docstrings in these directories
|
|
144
|
+
|
|
145
|
+
[tool.ruff.lint.isort]
|
|
146
|
+
known-first-party = ["scatterkit"]
|
|
147
|
+
|
|
148
|
+
[tool.ruff.format]
|
|
149
|
+
docstring-code-format = true
|
|
150
|
+
|
|
151
|
+
[tool.setuptools.packages.find]
|
|
152
|
+
where = ["src"]
|
|
153
|
+
|
|
154
|
+
[tool.versioneer]
|
|
155
|
+
VCS = "git"
|
|
156
|
+
style = "pep440"
|
|
157
|
+
versionfile_source = "src/scatterkit/_version.py"
|
|
158
|
+
versionfile_build = "scatterkit/_version.py"
|
|
159
|
+
tag_prefix = "v"
|
scatterkit-0.1/setup.cfg
ADDED
scatterkit-0.1/setup.py
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) 2025 Authors and contributors
|
|
4
|
+
# (see the AUTHORS.rst file for the full list of names)
|
|
5
|
+
#
|
|
6
|
+
# Released under the GNU Public Licence, v3 or any higher version
|
|
7
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
8
|
+
"""Setup file for scatterkit package.
|
|
9
|
+
|
|
10
|
+
Credit to MDAnalysis setup.py.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import os
|
|
14
|
+
import shutil
|
|
15
|
+
import sys
|
|
16
|
+
import tempfile
|
|
17
|
+
from distutils.ccompiler import new_compiler
|
|
18
|
+
from distutils.sysconfig import customize_compiler
|
|
19
|
+
from pathlib import Path
|
|
20
|
+
|
|
21
|
+
import numpy as np
|
|
22
|
+
import versioneer
|
|
23
|
+
from setuptools import Extension, setup
|
|
24
|
+
|
|
25
|
+
VERSION = versioneer.get_version()
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def hasfunction(cc, funcname, include=None, extra_postargs=None):
|
|
29
|
+
"""Check for function.
|
|
30
|
+
|
|
31
|
+
Credit to MDAnalysis setup.py.
|
|
32
|
+
"""
|
|
33
|
+
tmpdir = Path(tempfile.mkdtemp(prefix="hasfunction-"))
|
|
34
|
+
devnull = oldstderr = None
|
|
35
|
+
try:
|
|
36
|
+
try:
|
|
37
|
+
fname = tmpdir / "funcname.c"
|
|
38
|
+
with Path(fname).open(mode="w") as f:
|
|
39
|
+
if include is not None:
|
|
40
|
+
f.write(f"#include {include!s}\n")
|
|
41
|
+
f.write("int main(void) {\n")
|
|
42
|
+
f.write(f" {funcname!s};\n")
|
|
43
|
+
f.write("}\n")
|
|
44
|
+
# Redirect stderr to /dev/null to hide any error messages from the compiler.
|
|
45
|
+
# This will have to be changed if we ever have to check for a function on
|
|
46
|
+
# Windows.
|
|
47
|
+
oldstderr = os.dup(sys.stderr.fileno())
|
|
48
|
+
with Path("/dev/null").open(mode="w") as devnull:
|
|
49
|
+
os.dup2(devnull.fileno(), sys.stderr.fileno())
|
|
50
|
+
|
|
51
|
+
objects = cc.compile(
|
|
52
|
+
[fname], output_dir=str(tmpdir), extra_postargs=extra_postargs
|
|
53
|
+
)
|
|
54
|
+
cc.link_executable(objects, str(tmpdir / "a.out"))
|
|
55
|
+
except Exception:
|
|
56
|
+
return False
|
|
57
|
+
return True
|
|
58
|
+
finally:
|
|
59
|
+
if oldstderr is not None:
|
|
60
|
+
os.dup2(oldstderr, sys.stderr.fileno())
|
|
61
|
+
shutil.rmtree(tmpdir)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def detect_openmp():
|
|
65
|
+
"""Support for OpenMP parallelization.
|
|
66
|
+
|
|
67
|
+
Check if this compiler support OpenMP parallelization. Credit to MDAnalysis
|
|
68
|
+
setup.py.
|
|
69
|
+
"""
|
|
70
|
+
print("Attempting to autodetect OpenMP support... ", end="") # noqa: T201
|
|
71
|
+
compiler = new_compiler()
|
|
72
|
+
customize_compiler(compiler)
|
|
73
|
+
compiler.add_library("gomp")
|
|
74
|
+
include = "<omp.h>"
|
|
75
|
+
extra_postargs = ["-fopenmp"]
|
|
76
|
+
hasopenmp = hasfunction(
|
|
77
|
+
compiler,
|
|
78
|
+
"omp_get_num_threads()",
|
|
79
|
+
include=include,
|
|
80
|
+
extra_postargs=extra_postargs,
|
|
81
|
+
)
|
|
82
|
+
if hasopenmp:
|
|
83
|
+
print("Compiler supports OpenMP") # noqa: T201
|
|
84
|
+
else:
|
|
85
|
+
print("Did not detect OpenMP support.") # noqa: T201
|
|
86
|
+
return hasopenmp
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
if __name__ == "__main__":
|
|
90
|
+
# Windows automatically handles math library linking and will not build if we try to
|
|
91
|
+
# specify one
|
|
92
|
+
mathlib = [] if os.name == "nt" else ["m"]
|
|
93
|
+
|
|
94
|
+
has_openmp = detect_openmp()
|
|
95
|
+
# If we are building a source distribution, the c code is already generated
|
|
96
|
+
use_cython = not Path("./setup.cfg").exists()
|
|
97
|
+
source_suffix = ".pyx" if use_cython else ".c"
|
|
98
|
+
|
|
99
|
+
pre_exts = [
|
|
100
|
+
Extension(
|
|
101
|
+
"scatterkit.lib._cmath",
|
|
102
|
+
["src/scatterkit/lib/_cmath" + source_suffix],
|
|
103
|
+
include_dirs=[np.get_include()],
|
|
104
|
+
extra_compile_args=["-std=c99", "-ffast-math", "-O3", "-funroll-loops"]
|
|
105
|
+
+ has_openmp * ["-fopenmp"],
|
|
106
|
+
extra_link_args=has_openmp * ["-fopenmp"],
|
|
107
|
+
libraries=mathlib,
|
|
108
|
+
)
|
|
109
|
+
]
|
|
110
|
+
|
|
111
|
+
if use_cython:
|
|
112
|
+
from Cython.Build import cythonize
|
|
113
|
+
|
|
114
|
+
extensions = cythonize(pre_exts, force=True)
|
|
115
|
+
else:
|
|
116
|
+
extensions = pre_exts
|
|
117
|
+
# Let's check early for missing .pyx files
|
|
118
|
+
for ext in extensions:
|
|
119
|
+
for source in ext.sources:
|
|
120
|
+
if not (Path(source).exists() and os.access(source, os.R_OK)):
|
|
121
|
+
raise OSError(f"Source file {source!r} not found.")
|
|
122
|
+
|
|
123
|
+
setup(cmdclass=versioneer.get_cmdclass(), version=VERSION, ext_modules=extensions)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""scatterkit: scattering analysis of MD trajectories."""
|
|
2
|
+
|
|
3
|
+
__authors__ = "MAICoS Developer Team"
|
|
4
|
+
|
|
5
|
+
from ._version import get_versions
|
|
6
|
+
from .diporderstructurefactor import DiporderStructureFactor
|
|
7
|
+
from .rdfdiporder import RDFDiporder
|
|
8
|
+
from .saxs import Saxs
|
|
9
|
+
|
|
10
|
+
#: Version information for Scatterkit, following :pep:`440`
|
|
11
|
+
#: and `semantic versioning <http://semver.org/>`_.
|
|
12
|
+
__version__ = get_versions()["version"]
|
|
13
|
+
del get_versions
|
|
14
|
+
|
|
15
|
+
__all__ = ["Saxs", "DiporderStructureFactor", "RDFDiporder"]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) 2025 Authors and contributors
|
|
4
|
+
# (see the AUTHORS.rst file for the full list of names)
|
|
5
|
+
#
|
|
6
|
+
# Released under the GNU Public Licence, v3 or any higher version
|
|
7
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
8
|
+
"""Analyse scattering in molecular dynamics simulation."""
|
|
9
|
+
|
|
10
|
+
from maicos.core import AnalysisBase
|
|
11
|
+
from mdacli import cli
|
|
12
|
+
|
|
13
|
+
from scatterkit import __version__
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def main():
|
|
17
|
+
"""Execute main CLI entry point."""
|
|
18
|
+
cli(
|
|
19
|
+
name="scatterkit",
|
|
20
|
+
module_list=["scatterkit"],
|
|
21
|
+
base_class=AnalysisBase,
|
|
22
|
+
version=__version__,
|
|
23
|
+
description=__doc__,
|
|
24
|
+
ignore_warnings=True,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
if __name__ == "__main__":
|
|
29
|
+
main()
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
# This file was generated by 'versioneer.py' (0.29) from
|
|
3
|
+
# revision-control system data, or from the parent directory name of an
|
|
4
|
+
# unpacked source archive. Distribution tarballs contain a pre-generated copy
|
|
5
|
+
# of this file.
|
|
6
|
+
|
|
7
|
+
import json
|
|
8
|
+
|
|
9
|
+
version_json = '''
|
|
10
|
+
{
|
|
11
|
+
"date": "2025-11-11T14:34:49+0100",
|
|
12
|
+
"dirty": false,
|
|
13
|
+
"error": null,
|
|
14
|
+
"full-revisionid": "305b9879b5e6b0ee5f6ec51a6bdc0a7c2dd24256",
|
|
15
|
+
"version": "0.1"
|
|
16
|
+
}
|
|
17
|
+
''' # END VERSION_JSON
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def get_versions():
|
|
21
|
+
return json.loads(version_json)
|