mc3 3.1.4__tar.gz → 3.2.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 (72) hide show
  1. mc3-3.2.0/.readthedocs.yml +19 -0
  2. {mc3-3.1.4 → mc3-3.2.0}/MANIFEST.in +2 -0
  3. mc3-3.2.0/Makefile +46 -0
  4. {mc3-3.1.4 → mc3-3.2.0}/PKG-INFO +3 -3
  5. {mc3-3.1.4 → mc3-3.2.0}/docs/conf.py +4 -1
  6. {mc3-3.1.4 → mc3-3.2.0}/docs/get_started.rst +1 -1
  7. {mc3-3.1.4 → mc3-3.2.0}/docs/index.rst +1 -1
  8. {mc3-3.1.4 → mc3-3.2.0}/mc3/version.py +2 -2
  9. {mc3-3.1.4 → mc3-3.2.0}/mc3.egg-info/PKG-INFO +3 -3
  10. {mc3-3.1.4 → mc3-3.2.0}/mc3.egg-info/SOURCES.txt +1 -0
  11. {mc3-3.1.4 → mc3-3.2.0}/mc3.egg-info/requires.txt +1 -1
  12. {mc3-3.1.4 → mc3-3.2.0}/pyproject.toml +4 -5
  13. {mc3-3.1.4 → mc3-3.2.0}/requirements.txt +1 -1
  14. {mc3-3.1.4 → mc3-3.2.0}/setup.py +2 -2
  15. mc3-3.1.4/.readthedocs.yml +0 -11
  16. {mc3-3.1.4 → mc3-3.2.0}/CONTRIBUTING.md +0 -0
  17. {mc3-3.1.4 → mc3-3.2.0}/LICENSE +0 -0
  18. {mc3-3.1.4 → mc3-3.2.0}/README.md +0 -0
  19. {mc3-3.1.4 → mc3-3.2.0}/docs/Makefile +0 -0
  20. {mc3-3.1.4 → mc3-3.2.0}/docs/api.rst +0 -0
  21. {mc3-3.1.4 → mc3-3.2.0}/docs/contributing.rst +0 -0
  22. {mc3-3.1.4 → mc3-3.2.0}/docs/figures/quad_bestfit.png +0 -0
  23. {mc3-3.1.4 → mc3-3.2.0}/docs/figures/quad_fitting.png +0 -0
  24. {mc3-3.1.4 → mc3-3.2.0}/docs/figures/quad_hist.png +0 -0
  25. {mc3-3.1.4 → mc3-3.2.0}/docs/figures/quad_pairwise.png +0 -0
  26. {mc3-3.1.4 → mc3-3.2.0}/docs/figures/quad_trace.png +0 -0
  27. {mc3-3.1.4 → mc3-3.2.0}/docs/figures/rms-vs-binsize.png +0 -0
  28. {mc3-3.1.4 → mc3-3.2.0}/docs/fit_tutorial.rst +0 -0
  29. {mc3-3.1.4 → mc3-3.2.0}/docs/license.rst +0 -0
  30. {mc3-3.1.4 → mc3-3.2.0}/docs/make.bat +0 -0
  31. {mc3-3.1.4 → mc3-3.2.0}/docs/mcmc_tutorial.rst +0 -0
  32. {mc3-3.1.4 → mc3-3.2.0}/docs/references.rst +0 -0
  33. {mc3-3.1.4 → mc3-3.2.0}/docs/time_averaging.rst +0 -0
  34. {mc3-3.1.4 → mc3-3.2.0}/examples/get_started.py +0 -0
  35. {mc3-3.1.4 → mc3-3.2.0}/examples/timeavg.py +0 -0
  36. {mc3-3.1.4 → mc3-3.2.0}/examples/tutorial.py +0 -0
  37. {mc3-3.1.4 → mc3-3.2.0}/mc3/__init__.py +0 -0
  38. {mc3-3.1.4 → mc3-3.2.0}/mc3/__main__.py +0 -0
  39. {mc3-3.1.4 → mc3-3.2.0}/mc3/chain.py +0 -0
  40. {mc3-3.1.4 → mc3-3.2.0}/mc3/fit_driver.py +0 -0
  41. {mc3-3.1.4 → mc3-3.2.0}/mc3/mcmc_driver.py +0 -0
  42. {mc3-3.1.4 → mc3-3.2.0}/mc3/plots/__init__.py +0 -0
  43. {mc3-3.1.4 → mc3-3.2.0}/mc3/plots/colors.py +0 -0
  44. {mc3-3.1.4 → mc3-3.2.0}/mc3/plots/plot_functions.py +0 -0
  45. {mc3-3.1.4 → mc3-3.2.0}/mc3/plots/posterior.py +0 -0
  46. {mc3-3.1.4 → mc3-3.2.0}/mc3/sampler_driver.py +0 -0
  47. {mc3-3.1.4 → mc3-3.2.0}/mc3/stats/__init__.py +0 -0
  48. {mc3-3.1.4 → mc3-3.2.0}/mc3/stats/gelman.py +0 -0
  49. {mc3-3.1.4 → mc3-3.2.0}/mc3/stats/prayer.py +0 -0
  50. {mc3-3.1.4 → mc3-3.2.0}/mc3/stats/stats.py +0 -0
  51. {mc3-3.1.4 → mc3-3.2.0}/mc3/stats/time_averaging.py +0 -0
  52. {mc3-3.1.4 → mc3-3.2.0}/mc3/utils/__init__.py +0 -0
  53. {mc3-3.1.4 → mc3-3.2.0}/mc3/utils/log.py +0 -0
  54. {mc3-3.1.4 → mc3-3.2.0}/mc3/utils/utils.py +0 -0
  55. {mc3-3.1.4 → mc3-3.2.0}/mc3.egg-info/dependency_links.txt +0 -0
  56. {mc3-3.1.4 → mc3-3.2.0}/mc3.egg-info/entry_points.txt +0 -0
  57. {mc3-3.1.4 → mc3-3.2.0}/mc3.egg-info/top_level.txt +0 -0
  58. {mc3-3.1.4 → mc3-3.2.0}/pytest.ini +0 -0
  59. {mc3-3.1.4 → mc3-3.2.0}/setup.cfg +0 -0
  60. {mc3-3.1.4 → mc3-3.2.0}/src_c/_binarray.c +0 -0
  61. {mc3-3.1.4 → mc3-3.2.0}/src_c/_chisq.c +0 -0
  62. {mc3-3.1.4 → mc3-3.2.0}/src_c/_dwt.c +0 -0
  63. {mc3-3.1.4 → mc3-3.2.0}/src_c/_time_averaging.c +0 -0
  64. {mc3-3.1.4 → mc3-3.2.0}/src_c/include/ind.h +0 -0
  65. {mc3-3.1.4 → mc3-3.2.0}/src_c/include/stats.h +0 -0
  66. {mc3-3.1.4 → mc3-3.2.0}/src_c/include/wavelet.h +0 -0
  67. {mc3-3.1.4 → mc3-3.2.0}/tests/test_fit.py +0 -0
  68. {mc3-3.1.4 → mc3-3.2.0}/tests/test_logging.py +0 -0
  69. {mc3-3.1.4 → mc3-3.2.0}/tests/test_mcmc.py +0 -0
  70. {mc3-3.1.4 → mc3-3.2.0}/tests/test_plots.py +0 -0
  71. {mc3-3.1.4 → mc3-3.2.0}/tests/test_stats.py +0 -0
  72. {mc3-3.1.4 → mc3-3.2.0}/tests/test_utils.py +0 -0
@@ -0,0 +1,19 @@
1
+ version: 2
2
+
3
+ build:
4
+ os: "ubuntu-22.04"
5
+ tools:
6
+ python: "3.11"
7
+
8
+ # Build documentation in the docs/ directory with Sphinx
9
+ sphinx:
10
+ configuration: docs/conf.py
11
+
12
+ python:
13
+ install:
14
+ - requirements: requirements.txt
15
+ - requirements: docs/docs_requirements.txt
16
+ - method: pip
17
+ path: .
18
+
19
+
@@ -3,8 +3,10 @@ include MANIFEST.in
3
3
  include requirements.txt
4
4
  include CONTRIBUTING.md
5
5
  include LICENSE
6
+ include Makefile
6
7
  include pytest.ini
7
8
  include pyproject.toml
9
+ include .travis.yml
8
10
  include .readthedocs.yml
9
11
  include docs/*.rst
10
12
  include docs/conf.py
mc3-3.2.0/Makefile ADDED
@@ -0,0 +1,46 @@
1
+ # Makefile - prepared for MC3
2
+ #
3
+ # `make` - Build and compile the MC3 executable and python extension..
4
+ # `make clean` - Remove all compiled (non-source) files that are created.
5
+
6
+ # If you are interested in the commands being run by this makefile, you may add
7
+ # "VERBOSE=1" to the end of any `make` command, i.e.:
8
+ # make VERBOSE=1
9
+ # This will display the exact commands being used for building, etc.
10
+
11
+ # To enforce compilation with Python3 append "PY3=1" to the make command:
12
+ # make PY3=1
13
+
14
+
15
+ LIBDIR = mc3/lib/
16
+
17
+ # Set verbosity
18
+ #
19
+ Q = @
20
+ O = > /dev/null
21
+
22
+ ifdef VERBOSE
23
+ ifeq ("$(origin VERBOSE)", "command line")
24
+ Q =
25
+ O =
26
+ endif
27
+ else
28
+ MAKEFLAGS += --no-print-directory
29
+ endif
30
+
31
+ DIRECTIVE =
32
+ ifdef PY3
33
+ ifeq ("$(origin PY3)", "command line")
34
+ DIRECTIVE = 3
35
+ endif
36
+ endif
37
+
38
+ all:
39
+ @echo "Building MC3 package."
40
+ $(Q) python$(DIRECTIVE) setup.py build $(O)
41
+ @mv -f build/lib.*/$(LIBDIR)*.so ./$(LIBDIR)
42
+ @rm -rf build/
43
+ @echo "Successful compilation."
44
+ @echo ""
45
+ clean:
46
+ @rm -rf $(LIBDIR)*.so
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mc3
3
- Version: 3.1.4
3
+ Version: 3.2.0
4
4
  Summary: Multi-core Markov-chain Monte Carlo package
5
5
  Author-email: Patricio Cubillos <patricio.cubillos@oeaw.ac.at>
6
6
  License: Copyright (c) 2015-2022 Patricio Cubillos and contributors.
@@ -24,10 +24,10 @@ License: Copyright (c) 2015-2022 Patricio Cubillos and contributors.
24
24
  THE SOFTWARE.
25
25
 
26
26
  Project-URL: Homepage, https://github.com/pcubillos/mc3
27
- Requires-Python: >=3.6
27
+ Requires-Python: >=3.9
28
28
  Description-Content-Type: text/markdown
29
29
  License-File: LICENSE
30
- Requires-Dist: numpy>=1.19.5
30
+ Requires-Dist: numpy>=1.23.5
31
31
  Requires-Dist: scipy>=1.5.4
32
32
  Requires-Dist: matplotlib>=3.3.4
33
33
  Provides-Extra: test
@@ -37,6 +37,9 @@ extensions = [
37
37
  'sphinx.ext.autodoc',
38
38
  'sphinx.ext.mathjax',
39
39
  'sphinx.ext.viewcode',
40
+ 'IPython.sphinxext.ipython_console_highlighting',
41
+ 'nbsphinx',
42
+ "sphinx_copybutton",
40
43
  ]
41
44
 
42
45
  # Add any paths that contain templates here, relative to this directory.
@@ -72,7 +75,7 @@ release = mc3.__version__
72
75
  #
73
76
  # This is also used if you do content translation via gettext catalogs.
74
77
  # Usually you set "language" from the command line for these cases.
75
- language = None
78
+ language = 'en'
76
79
 
77
80
  # There are two options for replacing |today|: either, you set today to some
78
81
  # non-false value, then it is used:
@@ -6,7 +6,7 @@ Getting Started
6
6
  System Requirements
7
7
  -------------------
8
8
 
9
- ``mc3`` is compatible with Python 3.7+, and has been `tested
9
+ ``mc3`` is compatible with Python 3.9+, and has been `tested
10
10
  <https://github.com/pcubillos/mc3/actions/workflows/python-package.yml>`_ to work on Unix/Linux and OS X machines.
11
11
 
12
12
  Install
@@ -40,7 +40,7 @@ mc3: Multi-Core Markov-Chain Monte Carlo
40
40
 
41
41
  .. note::
42
42
 
43
- Got Python3.7+? Simply install as: ``pip install mc3``
43
+ Got Python3.9+? Simply install as: ``pip install mc3``
44
44
 
45
45
 
46
46
  Features
@@ -3,7 +3,7 @@
3
3
 
4
4
  # mc3 Version:
5
5
  MC3_VER = 3 # Major version
6
- MC3_MIN = 1 # Minor version
7
- MC3_REV = 4 # Revision
6
+ MC3_MIN = 2 # Minor version
7
+ MC3_REV = 0 # Revision
8
8
 
9
9
  __version__ = f'{MC3_VER}.{MC3_MIN}.{MC3_REV}'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mc3
3
- Version: 3.1.4
3
+ Version: 3.2.0
4
4
  Summary: Multi-core Markov-chain Monte Carlo package
5
5
  Author-email: Patricio Cubillos <patricio.cubillos@oeaw.ac.at>
6
6
  License: Copyright (c) 2015-2022 Patricio Cubillos and contributors.
@@ -24,10 +24,10 @@ License: Copyright (c) 2015-2022 Patricio Cubillos and contributors.
24
24
  THE SOFTWARE.
25
25
 
26
26
  Project-URL: Homepage, https://github.com/pcubillos/mc3
27
- Requires-Python: >=3.6
27
+ Requires-Python: >=3.9
28
28
  Description-Content-Type: text/markdown
29
29
  License-File: LICENSE
30
- Requires-Dist: numpy>=1.19.5
30
+ Requires-Dist: numpy>=1.23.5
31
31
  Requires-Dist: scipy>=1.5.4
32
32
  Requires-Dist: matplotlib>=3.3.4
33
33
  Provides-Extra: test
@@ -2,6 +2,7 @@
2
2
  CONTRIBUTING.md
3
3
  LICENSE
4
4
  MANIFEST.in
5
+ Makefile
5
6
  README.md
6
7
  pyproject.toml
7
8
  pytest.ini
@@ -1,4 +1,4 @@
1
- numpy>=1.19.5
1
+ numpy>=1.23.5
2
2
  scipy>=1.5.4
3
3
  matplotlib>=3.3.4
4
4
 
@@ -1,8 +1,7 @@
1
1
  [build-system]
2
2
  requires = [
3
- 'setuptools>=40.8.0',
4
- 'wheel',
5
- 'oldest-supported-numpy',
3
+ 'setuptools',
4
+ 'numpy>=2.0.0',
6
5
  ]
7
6
  build-backend = "setuptools.build_meta"
8
7
 
@@ -15,13 +14,13 @@ license = { file = "LICENSE" }
15
14
  #https://packaging.python.org/en/latest/guides/single-sourcing-package-version/
16
15
  dynamic = ["version"]
17
16
 
18
- requires-python = ">=3.6"
17
+ requires-python = ">=3.9"
19
18
  authors = [
20
19
  {name = "Patricio Cubillos", email = "patricio.cubillos@oeaw.ac.at"},
21
20
  ]
22
21
 
23
22
  dependencies = [
24
- 'numpy>=1.19.5',
23
+ 'numpy>=1.23.5',
25
24
  'scipy>=1.5.4',
26
25
  'matplotlib>=3.3.4',
27
26
  ]
@@ -1,4 +1,4 @@
1
- numpy>=1.19.5
1
+ numpy>=1.23.5
2
2
  scipy>=1.5.4
3
3
  matplotlib>=3.3.4
4
4
  pytest>=6.0
@@ -17,8 +17,8 @@ cfiles = list(filter(lambda x: re.search('.+[.]c$', x), cfiles))
17
17
  cfiles = list(filter(lambda x: not re.search('[.#].+[.]c$', x), cfiles))
18
18
 
19
19
  inc = [get_include(), incdir]
20
- eca = ['-O3', '-ffast-math']
21
- ela = []
20
+ eca = ['-lm', '-O3', '-ffast-math']
21
+ ela = ['-lm']
22
22
 
23
23
  extensions = [
24
24
  Extension(
@@ -1,11 +0,0 @@
1
- version: 2
2
-
3
- formats: []
4
-
5
- python:
6
- version: 3.8
7
- install:
8
- - requirements: requirements.txt
9
- - method: pip
10
- path: .
11
-
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes