bethgelab / bethgelab/foolbox

Deprecation warning using old scipy namespace for gaussian_filter

Open
#702 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
foolbox is importing gaussian_filter from the namespace scipy.ndimage.filters, which is deprecated in more recent versions of scipy so yields a deprecation warning. The correct namespace of scipy.ndimage has been available since at least v1.2 so importing from there should support all target versions of Python (3.6 - 3.8).

**To Reproduce**
Install latest stable version of scipy (1.9.3). Run a Gaussian blue attack.

**Expected behavior**
No deprecation warning if newer namespace employed.

**Software (please complete the following information):**
- Foolbox version: 3.3.3

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.