Skip to content

Commit

Permalink
works with numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gplepage committed Jul 8, 2024
1 parent d94566c commit f7f061a
Show file tree
Hide file tree
Showing 18 changed files with 81 additions and 78 deletions.
8 changes: 6 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Version 6.1.2 ????
====================
Version 6.1.3 2024-07-08
=========================
Modified so that it works with numpy>=2.0.

Version 6.1.2 2024-05-21
========================

- Fixes bug in implementation of PDFIntegrator's scale parameter. There was no
problem when scale=1 but other values were wrong.
Expand Down
2 changes: 1 addition & 1 deletion doc/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: f6aed125efd87ae682bb8c01cf8f9e1a
config: ffea898b9e82a916ac420a608eca0a9a
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified doc/html/.doctrees/environment.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/html/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '6.1.2',
VERSION: '6.1.3',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
6 changes: 3 additions & 3 deletions doc/html/background.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>How vegas Works &#8212; vegas 6.1.2 documentation</title>
<title>How vegas Works &#8212; vegas 6.1.3 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/pyramid.css" />
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
Expand Down Expand Up @@ -41,7 +41,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="c_fortran.html" title="Integrands in C or Fortran"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">How <code class="xref py py-mod docutils literal notranslate"><span class="pre">vegas</span></code> Works</a></li>
</ul>
</div>
Expand Down Expand Up @@ -379,7 +379,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="c_fortran.html" title="Integrands in C or Fortran"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">How <code class="xref py py-mod docutils literal notranslate"><span class="pre">vegas</span></code> Works</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions doc/html/c_fortran.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>Integrands in C or Fortran &#8212; vegas 6.1.2 documentation</title>
<title>Integrands in C or Fortran &#8212; vegas 6.1.3 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/pyramid.css" />
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
Expand Down Expand Up @@ -41,7 +41,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="tutorial.html" title="Tutorial"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Integrands in C or Fortran</a></li>
</ul>
</div>
Expand Down Expand Up @@ -513,7 +513,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="tutorial.html" title="Tutorial"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Integrands in C or Fortran</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions doc/html/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Index &#8212; vegas 6.1.2 documentation</title>
<title>Index &#8212; vegas 6.1.3 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/pyramid.css" />
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
Expand All @@ -32,7 +32,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Index</a></li>
</ul>
</div>
Expand Down Expand Up @@ -425,7 +425,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Index</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions doc/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>vegas Documentation &#8212; vegas 6.1.2 documentation</title>
<title>vegas Documentation &#8212; vegas 6.1.3 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/pyramid.css" />
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
Expand Down Expand Up @@ -37,7 +37,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="tutorial.html" title="Tutorial"
accesskey="N">next</a> |</li>
<li class="nav-item nav-item-0"><a href="#">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="#">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">vegas Documentation</a></li>
</ul>
</div>
Expand Down Expand Up @@ -163,7 +163,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="tutorial.html" title="Tutorial"
>next</a> |</li>
<li class="nav-item nav-item-0"><a href="#">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="#">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">vegas Documentation</a></li>
</ul>
</div>
Expand Down
Binary file modified doc/html/objects.inv
Binary file not shown.
6 changes: 3 additions & 3 deletions doc/html/outliers.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>Case Study: Bayesian Curve Fitting &#8212; vegas 6.1.2 documentation</title>
<title>Case Study: Bayesian Curve Fitting &#8212; vegas 6.1.3 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/pyramid.css" />
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
Expand Down Expand Up @@ -41,7 +41,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="background.html" title="How vegas Works"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Case Study: Bayesian Curve Fitting</a></li>
</ul>
</div>
Expand Down Expand Up @@ -475,7 +475,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="background.html" title="How vegas Works"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Case Study: Bayesian Curve Fitting</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions doc/html/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Python Module Index &#8212; vegas 6.1.2 documentation</title>
<title>Python Module Index &#8212; vegas 6.1.3 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/pyramid.css" />
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
Expand Down Expand Up @@ -39,7 +39,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="#" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Python Module Index</a></li>
</ul>
</div>
Expand Down Expand Up @@ -97,7 +97,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="#" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Python Module Index</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions doc/html/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Search &#8212; vegas 6.1.2 documentation</title>
<title>Search &#8212; vegas 6.1.3 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/pyramid.css" />

Expand Down Expand Up @@ -38,7 +38,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Search</a></li>
</ul>
</div>
Expand Down Expand Up @@ -98,7 +98,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Search</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions doc/html/tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>Tutorial &#8212; vegas 6.1.2 documentation</title>
<title>Tutorial &#8212; vegas 6.1.3 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/pyramid.css" />
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
Expand Down Expand Up @@ -41,7 +41,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="index.html" title="vegas Documentation"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Tutorial</a></li>
</ul>
</div>
Expand Down Expand Up @@ -2195,7 +2195,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="index.html" title="vegas Documentation"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Tutorial</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions doc/html/vegas.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>vegas Module &#8212; vegas 6.1.2 documentation</title>
<title>vegas Module &#8212; vegas 6.1.3 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/pyramid.css" />
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
Expand Down Expand Up @@ -37,7 +37,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="outliers.html" title="Case Study: Bayesian Curve Fitting"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">vegas</span></code> Module</a></li>
</ul>
</div>
Expand Down Expand Up @@ -2143,7 +2143,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="outliers.html" title="Case Study: Bayesian Curve Fitting"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">vegas 6.1.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">vegas</span></code> Module</a></li>
</ul>
</div>
Expand Down
10 changes: 2 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
[build-system]
requires = [ # "setuptools", "numpy>=1.16", "cython>=0.17"
"setuptools>=39.2.0",
"wheel",

# see https://github.com/scipy/oldest-supported-numpy/tree/main
"oldest-supported-numpy>=2023.8.3; python_version>='3.8'",
"numpy==1.16.6; python_version=='3.7'",
"numpy; python_version<'3.7'",

"Cython>=0.29.33"
"numpy>='2.0'",
"Cython>='3.0'"
]
build-backend = 'setuptools.build_meta'

6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = vegas
version = 6.1.2
version = 6.1.3
author = G. Peter Lepage
author_email = [email protected]
license = GPLv3
Expand All @@ -15,9 +15,9 @@ packages =
vegas
package_dir =
= src
python_requires = >=2.7
python_requires = >=3.9
install_requires =
numpy>=1.16
numpy>=1.24
gvar>=13.0.1
include_package_data = True

Expand Down
Loading

0 comments on commit f7f061a

Please sign in to comment.