Skip to content

Fix a FutureWarning depreciation for the plugin parameter in skimage.io #2191

@shachafl

Description

@shachafl

Description

Need to fix a FutureWarning depreciation for the plugin parameter in skimage.io.

Steps/Code to Reproduce

Within a Bash shell, make a fresh virtual environment and activate it:

python -m venv .venv3.10
source .venv3.10/bin/activate

Install dependencies and run tests:

make install-dev
make fast-test

Expected Results

No warnings related to the plugin infrastructure in skimage.io and the parameter plugin.

Actual Results

starfish/core/experiment/builder/test/test_inplace.py: 34 warnings
  /home/shachafl/Code/shachafl/starfish/starfish/core/experiment/builder/test/test_inplace.py:130: FutureWarning: The plugin infrastructure in `skimage.io` and the parameter `plugin` are deprecated since version 0.25 and will be removed in 0.27 (or later). To avoid this warning, please do not use the parameter `plugin`. Instead, use `imageio` or other I/O packages directly. See also `imsave`.
    imsave(os.fspath(path), data, plugin="tifffile")

Metadata

Metadata

Labels

bugAn issue with an existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions