Skip to content

Deprecation warning using old scipy namespace for gaussian_filter #702

@JamesRamsden-Naimuri

Description

@JamesRamsden-Naimuri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions