diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 660fa325..ca3b41dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,9 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: + - "3.10" + - "3.11" group: [1, 2, 3] steps: diff --git a/README.rst b/README.rst index f4509ee8..4da528d6 100644 --- a/README.rst +++ b/README.rst @@ -49,7 +49,7 @@ Introduction ------------ VIP is a python package for high-contrast imaging of exoplanets and circumstellar disks. -VIP is compatible with Python 3.8, 3.9, 3.10 and 3.11 (Python 2 compatibility dropped with VIP 0.9.9, and Python 3.7 compatibility dropped with VIP 1.4.3). +VIP is compatible with Python 3.10 and 3.11 (Python 2 compatibility dropped with VIP 0.9.9, and Python 3.7 compatibility dropped with VIP 1.4.3). The goal of VIP is to integrate open-source, efficient, easy-to-use and well-documented implementations of high-contrast image processing algorithms to diff --git a/docs/source/index.rst b/docs/source/index.rst index e9a4b3e2..e0654d03 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -11,7 +11,7 @@ What is VIP? ------------ ``VIP`` stands for Vortex Image Processing. It is a python package for high-contrast imaging of exoplanets and circumstellar disks. -VIP is compatible with Python 3.8, 3.9, 3.10 and 3.11 (Python 2 compatibility dropped with VIP 0.9.9, and Python 3.7 compatibility dropped with VIP 1.4.3). +VIP is compatible with Python 3.10 and 3.11 (Python 2 compatibility dropped with VIP 0.9.9, and Python 3.7 compatibility dropped with VIP 1.4.3). The goal of VIP is to integrate open-source, efficient, easy-to-use and well-documented implementations of high-contrast image processing algorithms to diff --git a/pyproject.toml b/pyproject.toml index b5737425..e83debe4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,15 +13,13 @@ authors = [ { name = "Carlos Alberto Gomez Gonzalez" }, { name = "Valentin Christiaens", email = "valentin.christiaens@uliege.be" }, ] -requires-python = ">=3.8" +requires-python = ">=3.10" classifiers = [ "Intended Audience :: Science/Research", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Topic :: Scientific/Engineering :: Astronomy", @@ -31,3 +29,10 @@ urls.Homepage = "https://github.com/vortex-exoplanet/VIP" [tool.setuptools] zip-safe = false packages.find = { namespaces = false } + +[tool.pytest.ini_options] +filterwarnings = [ + "error", + 'ignore::ImportWarning', + 'ignore:The fit may be unsuccessful:UserWarning', # noisy astropy warnings +] diff --git a/requirements-dev.txt b/requirements-dev.txt index ac3e4c25..ea671301 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,7 +5,7 @@ myst-nb myst-parser pandoc pytest -pytest-cov ~=2.6.0 +pytest-cov >=2.6.0 pytest-split flake8 flake8-bandit diff --git a/vip_hci/fm/negfc_mcmc.py b/vip_hci/fm/negfc_mcmc.py index c3cec21b..2f1dc1f9 100644 --- a/vip_hci/fm/negfc_mcmc.py +++ b/vip_hci/fm/negfc_mcmc.py @@ -65,8 +65,6 @@ from .negfc_fmerit import get_values_optimize, get_mu_and_sigma from .utils_mcmc import gelman_rubin, autocorr_test from .utils_negfc import find_nearest -import warnings -warnings.filterwarnings("ignore", category=DeprecationWarning) def lnprior(param, bounds, force_rPA=False): diff --git a/vip_hci/fm/negfc_simplex.py b/vip_hci/fm/negfc_simplex.py index d5cede4d..1db41461 100644 --- a/vip_hci/fm/negfc_simplex.py +++ b/vip_hci/fm/negfc_simplex.py @@ -792,7 +792,7 @@ def firstguess(cube, angs, psfn, planets_xy_coord, ncomp=1, fwhm=4, verbose=False) if force_rPA: r_0[i_planet], theta_0[i_planet] = (r_pre, theta_pre) - f_0[i_planet] = res.x[:] + f_0[i_planet] = res.x.item() else: r_0[i_planet] = res.x[0] theta_0[i_planet] = res.x[1] diff --git a/vip_hci/fm/utils_mcmc.py b/vip_hci/fm/utils_mcmc.py index fed8a995..c1545c58 100644 --- a/vip_hci/fm/utils_mcmc.py +++ b/vip_hci/fm/utils_mcmc.py @@ -11,8 +11,6 @@ 'gelman_rubin_from_chain'] import numpy as np -import warnings -warnings.filterwarnings("ignore", category=DeprecationWarning) def gelman_rubin(x):