pymusic-astro 3.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.
Files changed (81) hide show
  1. pymusic_astro-3.0.0/LICENSE +28 -0
  2. pymusic_astro-3.0.0/PKG-INFO +61 -0
  3. pymusic_astro-3.0.0/README.md +4 -0
  4. pymusic_astro-3.0.0/pyproject.toml +82 -0
  5. pymusic_astro-3.0.0/setup.cfg +4 -0
  6. pymusic_astro-3.0.0/setup.py +8 -0
  7. pymusic_astro-3.0.0/src/pymusic/__init__.py +0 -0
  8. pymusic_astro-3.0.0/src/pymusic/big_array/__init__.py +11 -0
  9. pymusic_astro-3.0.0/src/pymusic/big_array/array.py +752 -0
  10. pymusic_astro-3.0.0/src/pymusic/big_array/caching.py +49 -0
  11. pymusic_astro-3.0.0/src/pymusic/big_array/derived.py +132 -0
  12. pymusic_astro-3.0.0/src/pymusic/big_array/diff.py +333 -0
  13. pymusic_astro-3.0.0/src/pymusic/big_array/exceptions.py +46 -0
  14. pymusic_astro-3.0.0/src/pymusic/big_array/file.py +126 -0
  15. pymusic_astro-3.0.0/src/pymusic/big_array/helpers.py +165 -0
  16. pymusic_astro-3.0.0/src/pymusic/big_array/index.py +256 -0
  17. pymusic_astro-3.0.0/src/pymusic/big_array/music.py +67 -0
  18. pymusic_astro-3.0.0/src/pymusic/big_array/physics.py +101 -0
  19. pymusic_astro-3.0.0/src/pymusic/big_array/spec.py +255 -0
  20. pymusic_astro-3.0.0/src/pymusic/eos/__init__.py +14 -0
  21. pymusic_astro-3.0.0/src/pymusic/eos/interp.py +191 -0
  22. pymusic_astro-3.0.0/src/pymusic/eos/mesa.py +154 -0
  23. pymusic_astro-3.0.0/src/pymusic/eos/mesa_formats.py +92 -0
  24. pymusic_astro-3.0.0/src/pymusic/eos/music_formats.py +134 -0
  25. pymusic_astro-3.0.0/src/pymusic/eos/table.py +190 -0
  26. pymusic_astro-3.0.0/src/pymusic/eos/variables.py +210 -0
  27. pymusic_astro-3.0.0/src/pymusic/grid/__init__.py +11 -0
  28. pymusic_astro-3.0.0/src/pymusic/grid/grid1d.py +221 -0
  29. pymusic_astro-3.0.0/src/pymusic/grid/grids.py +137 -0
  30. pymusic_astro-3.0.0/src/pymusic/io/__init__.py +1 -0
  31. pymusic_astro-3.0.0/src/pymusic/io/music.py +359 -0
  32. pymusic_astro-3.0.0/src/pymusic/math/__init__.py +18 -0
  33. pymusic_astro-3.0.0/src/pymusic/math/complex.py +14 -0
  34. pymusic_astro-3.0.0/src/pymusic/math/find_zeros.py +44 -0
  35. pymusic_astro-3.0.0/src/pymusic/math/slicing.py +54 -0
  36. pymusic_astro-3.0.0/src/pymusic/math/spherical_quadrature.py +96 -0
  37. pymusic_astro-3.0.0/src/pymusic/opacity/__init__.py +10 -0
  38. pymusic_astro-3.0.0/src/pymusic/opacity/mesa.py +120 -0
  39. pymusic_astro-3.0.0/src/pymusic/opacity/music_formats.py +42 -0
  40. pymusic_astro-3.0.0/src/pymusic/opacity/table.py +34 -0
  41. pymusic_astro-3.0.0/src/pymusic/opacity/variables.py +18 -0
  42. pymusic_astro-3.0.0/src/pymusic/particles/__init__.py +4 -0
  43. pymusic_astro-3.0.0/src/pymusic/particles/dumps.py +245 -0
  44. pymusic_astro-3.0.0/src/pymusic/particles/events.py +66 -0
  45. pymusic_astro-3.0.0/src/pymusic/particles/plotting.py +211 -0
  46. pymusic_astro-3.0.0/src/pymusic/particles/rm2017.py +215 -0
  47. pymusic_astro-3.0.0/src/pymusic/particles/trajectory.py +42 -0
  48. pymusic_astro-3.0.0/src/pymusic/particles/transmat.py +369 -0
  49. pymusic_astro-3.0.0/src/pymusic/plotting/__init__.py +5 -0
  50. pymusic_astro-3.0.0/src/pymusic/plotting/array.py +105 -0
  51. pymusic_astro-3.0.0/src/pymusic/plotting/figure.py +30 -0
  52. pymusic_astro-3.0.0/src/pymusic/plotting/lic.c +11690 -0
  53. pymusic_astro-3.0.0/src/pymusic/plotting/lic.pyx +130 -0
  54. pymusic_astro-3.0.0/src/pymusic/plotting/movies.py +68 -0
  55. pymusic_astro-3.0.0/src/pymusic/plotting/particles.py +186 -0
  56. pymusic_astro-3.0.0/src/pymusic/plotting/stretch_funcs.py +83 -0
  57. pymusic_astro-3.0.0/src/pymusic/py.typed +0 -0
  58. pymusic_astro-3.0.0/src/pymusic/spec/__init__.py +27 -0
  59. pymusic_astro-3.0.0/src/pymusic/spec/fft.py +390 -0
  60. pymusic_astro-3.0.0/src/pymusic/spec/nufft.py +327 -0
  61. pymusic_astro-3.0.0/src/pymusic/spec/spherical_harmonics.py +64 -0
  62. pymusic_astro-3.0.0/src/pymusic/spec/wedge_harmonics.py +699 -0
  63. pymusic_astro-3.0.0/src/pymusic/spec/wedge_harmonics_array.py +211 -0
  64. pymusic_astro-3.0.0/src/pymusic/spec/windows.py +127 -0
  65. pymusic_astro-3.0.0/src/pymusic/studies/__init__.py +0 -0
  66. pymusic_astro-3.0.0/src/pymusic/studies/nufft/__init__.py +0 -0
  67. pymusic_astro-3.0.0/src/pymusic/studies/nufft/study-cheb-nufft.py +99 -0
  68. pymusic_astro-3.0.0/src/pymusic/studies/nufft/study-lowrank-exp.py +263 -0
  69. pymusic_astro-3.0.0/src/pymusic/studies/nufft/study-nterms.py +128 -0
  70. pymusic_astro-3.0.0/src/pymusic/studies/nufft/study-roundoff.py +70 -0
  71. pymusic_astro-3.0.0/src/pymusic/studies/nufft/utils.py +71 -0
  72. pymusic_astro-3.0.0/src/pymusic/utils/__init__.py +3 -0
  73. pymusic_astro-3.0.0/src/pymusic/utils/cache.py +39 -0
  74. pymusic_astro-3.0.0/src/pymusic/utils/mapping.py +40 -0
  75. pymusic_astro-3.0.0/src/pymusic/utils/ndarray.py +169 -0
  76. pymusic_astro-3.0.0/src/pymusic/utils/sequence.py +106 -0
  77. pymusic_astro-3.0.0/src/pymusic_astro.egg-info/PKG-INFO +61 -0
  78. pymusic_astro-3.0.0/src/pymusic_astro.egg-info/SOURCES.txt +79 -0
  79. pymusic_astro-3.0.0/src/pymusic_astro.egg-info/dependency_links.txt +1 -0
  80. pymusic_astro-3.0.0/src/pymusic_astro.egg-info/requires.txt +9 -0
  81. pymusic_astro-3.0.0/src/pymusic_astro.egg-info/top_level.txt +1 -0
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2024, pymusic-astro contributors
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,61 @@
1
+ Metadata-Version: 2.1
2
+ Name: pymusic-astro
3
+ Version: 3.0.0
4
+ Summary: MUSIC output files processing
5
+ Author: Adrien Morison
6
+ Author-email: Thomas Guillet <t.a.guillet@exeter.ac.uk>
7
+ License: BSD 3-Clause License
8
+
9
+ Copyright (c) 2024, pymusic-astro contributors
10
+
11
+ Redistribution and use in source and binary forms, with or without
12
+ modification, are permitted provided that the following conditions are met:
13
+
14
+ 1. Redistributions of source code must retain the above copyright notice, this
15
+ list of conditions and the following disclaimer.
16
+
17
+ 2. Redistributions in binary form must reproduce the above copyright notice,
18
+ this list of conditions and the following disclaimer in the documentation
19
+ and/or other materials provided with the distribution.
20
+
21
+ 3. Neither the name of the copyright holder nor the names of its
22
+ contributors may be used to endorse or promote products derived from
23
+ this software without specific prior written permission.
24
+
25
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
29
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
33
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
+
36
+ Project-URL: homepage, https://bitbucket.org/glt/pymusic/
37
+ Classifier: Development Status :: 3 - Alpha
38
+ Classifier: Intended Audience :: Science/Research
39
+ Classifier: License :: OSI Approved
40
+ Classifier: Programming Language :: Python :: 3 :: Only
41
+ Classifier: Programming Language :: Python :: 3.10
42
+ Classifier: Programming Language :: Python :: 3.11
43
+ Classifier: Programming Language :: Python :: 3.12
44
+ Classifier: Programming Language :: Python :: 3.13
45
+ Requires-Python: >=3.10
46
+ Description-Content-Type: text/markdown
47
+ License-File: LICENSE
48
+ Requires-Dist: lazympl~=0.1.2
49
+ Requires-Dist: numpy~=2.1
50
+ Requires-Dist: scipy~=1.14
51
+ Requires-Dist: pandas~=2.2
52
+ Requires-Dist: h5py~=3.12
53
+ Requires-Dist: matplotlib~=3.9
54
+ Requires-Dist: tqdm>=4.66
55
+ Requires-Dist: xarray>=2024.10
56
+ Requires-Dist: music_pykg~=7.1.0
57
+
58
+ pymusic
59
+ =======
60
+
61
+ Tooling for post-processing of MUSIC simulations.
@@ -0,0 +1,4 @@
1
+ pymusic
2
+ =======
3
+
4
+ Tooling for post-processing of MUSIC simulations.
@@ -0,0 +1,82 @@
1
+ [build-system]
2
+ requires = ["setuptools>=75", "Cython>=3.0", "numpy>=2.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "pymusic-astro"
7
+ version = "3.0.0"
8
+ description = "MUSIC output files processing"
9
+ readme = "README.md"
10
+ authors = [
11
+ {name = "Thomas Guillet", email = "t.a.guillet@exeter.ac.uk"},
12
+ {name = "Adrien Morison"},
13
+ ]
14
+ license = {file = "LICENSE"}
15
+ urls = {homepage = "https://bitbucket.org/glt/pymusic/"}
16
+ classifiers = [
17
+ "Development Status :: 3 - Alpha",
18
+ "Intended Audience :: Science/Research",
19
+ "License :: OSI Approved",
20
+ "Programming Language :: Python :: 3 :: Only",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Programming Language :: Python :: 3.13",
25
+ ]
26
+ requires-python = ">=3.10"
27
+ dependencies = [
28
+ "lazympl~=0.1.2",
29
+ "numpy~=2.1",
30
+ "scipy~=1.14",
31
+ "pandas~=2.2",
32
+ "h5py~=3.12",
33
+ "matplotlib~=3.9",
34
+ "tqdm>=4.66",
35
+ "xarray>=2024.10",
36
+ "music_pykg~=7.1.0",
37
+ ]
38
+
39
+ [dependency-groups]
40
+ lint = [
41
+ "ruff>=0.7.1",
42
+ ]
43
+ typing = [
44
+ "mypy>=1.13.0",
45
+ "pandas-stubs>=2.2.3.241009",
46
+ "types-tqdm>=4.66.0.20240417",
47
+ ]
48
+ test = [
49
+ "pytest>=8.3.3",
50
+ "pytest-cov>=5.0.0",
51
+ ]
52
+ scripts = [
53
+ "num2tex>=0.8",
54
+ ]
55
+ doc = [
56
+ "sphinx~=8.1",
57
+ "sphinx-autodoc-typehints~=2.5",
58
+ ]
59
+
60
+ [tool.setuptools.packages.find]
61
+ where = ["src"]
62
+ namespaces = false
63
+
64
+ [tool.setuptools.package-data]
65
+ pymusic = ["py.typed", "plotting/lic.pyx"]
66
+
67
+ [tool.pytest.ini_options]
68
+ testpaths = ["test"]
69
+ python_files = ["test_*.py"]
70
+
71
+ [tool.mypy]
72
+ disallow_untyped_defs = true
73
+
74
+ [[tool.mypy.overrides]]
75
+ module = [
76
+ "h5py.*",
77
+ "scipy.*",
78
+ ]
79
+ ignore_missing_imports = true
80
+
81
+ [tool.uv]
82
+ default-groups = ["scripts", "typing"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,8 @@
1
+ import numpy
2
+ from Cython.Build import cythonize
3
+ from setuptools import setup
4
+
5
+ setup(
6
+ ext_modules=cythonize("src/pymusic/plotting/lic.pyx"),
7
+ include_dirs=[numpy.get_include()],
8
+ )
File without changes
@@ -0,0 +1,11 @@
1
+ from .array import *
2
+ from .caching import *
3
+ from .derived import *
4
+ from .diff import *
5
+ from .exceptions import *
6
+ from .file import *
7
+ from .helpers import *
8
+ from .index import *
9
+ from .music import *
10
+ from .physics import *
11
+ from .spec import *