Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SomeoneSerge/fd85fbc2041a36405a6e6a41981bb230 to your computer and use it in GitHub Desktop.
Save SomeoneSerge/fd85fbc2041a36405a6e6a41981bb230 to your computer and use it in GitHub Desktop.
nix log /nix/store/11jv1srhclr3fv9fh52a5zg4bd3gnm6l-python3.10-pims-0.6.1.drv
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
Sourcing pytest-check-hook
Using pytestCheckPhase
Removing setuptoolsCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/8z8n3zzkpriwm9czhch3mj1y8hd75pkg-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/versioneer.py
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing setuptoolsBuildPhase
/nix/store/8zx4h7r5mn1b913hgi8rwjfynwg1wgdi-python3.10-setuptools-67.4.0/lib/python3.10/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/pims
copying pims/api.py -> build/lib/pims
copying pims/tiff_stack.py -> build/lib/pims
copying pims/display.py -> build/lib/pims
copying pims/pyav_reader.py -> build/lib/pims
copying pims/__init__.py -> build/lib/pims
copying pims/bioformats.py -> build/lib/pims
copying pims/base_frames.py -> build/lib/pims
copying pims/image_reader.py -> build/lib/pims
copying pims/spe_stack.py -> build/lib/pims
copying pims/imageio_reader.py -> build/lib/pims
copying pims/moviepy_reader.py -> build/lib/pims
copying pims/_version.py -> build/lib/pims
copying pims/norpix_reader.py -> build/lib/pims
copying pims/cine.py -> build/lib/pims
copying pims/process.py -> build/lib/pims
copying pims/image_sequence.py -> build/lib/pims
copying pims/frame.py -> build/lib/pims
copying pims/ffmpeg_reader.py -> build/lib/pims
creating build/lib/pims/utils
copying pims/utils/misc.py -> build/lib/pims/utils
copying pims/utils/__init__.py -> build/lib/pims/utils
copying pims/utils/sort.py -> build/lib/pims/utils
creating build/lib/pims/tests
copying pims/tests/test_imseq.py -> build/lib/pims/tests
copying pims/tests/test_frame.py -> build/lib/pims/tests
copying pims/tests/test_multidimensional.py -> build/lib/pims/tests
copying pims/tests/__init__.py -> build/lib/pims/tests
copying pims/tests/test_norpix.py -> build/lib/pims/tests
copying pims/tests/test_cine.py -> build/lib/pims/tests
copying pims/tests/test_factories.py -> build/lib/pims/tests
copying pims/tests/test_process.py -> build/lib/pims/tests
copying pims/tests/test_common.py -> build/lib/pims/tests
copying pims/tests/test_bioformats.py -> build/lib/pims/tests
copying pims/tests/test_display.py -> build/lib/pims/tests
UPDATING build/lib/pims/_version.py
set build/lib/pims/_version.py to '0.6.1'
/nix/store/8zx4h7r5mn1b913hgi8rwjfynwg1wgdi-python3.10-setuptools-67.4.0/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/pims
creating build/bdist.linux-x86_64/wheel/pims/utils
copying build/lib/pims/utils/misc.py -> build/bdist.linux-x86_64/wheel/pims/utils
copying build/lib/pims/utils/__init__.py -> build/bdist.linux-x86_64/wheel/pims/utils
copying build/lib/pims/utils/sort.py -> build/bdist.linux-x86_64/wheel/pims/utils
copying build/lib/pims/api.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/tiff_stack.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/display.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/pyav_reader.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/__init__.py -> build/bdist.linux-x86_64/wheel/pims
creating build/bdist.linux-x86_64/wheel/pims/tests
copying build/lib/pims/tests/test_imseq.py -> build/bdist.linux-x86_64/wheel/pims/tests
copying build/lib/pims/tests/test_frame.py -> build/bdist.linux-x86_64/wheel/pims/tests
copying build/lib/pims/tests/test_multidimensional.py -> build/bdist.linux-x86_64/wheel/pims/tests
copying build/lib/pims/tests/__init__.py -> build/bdist.linux-x86_64/wheel/pims/tests
copying build/lib/pims/tests/test_norpix.py -> build/bdist.linux-x86_64/wheel/pims/tests
copying build/lib/pims/tests/test_cine.py -> build/bdist.linux-x86_64/wheel/pims/tests
copying build/lib/pims/tests/test_factories.py -> build/bdist.linux-x86_64/wheel/pims/tests
copying build/lib/pims/tests/test_process.py -> build/bdist.linux-x86_64/wheel/pims/tests
copying build/lib/pims/tests/test_common.py -> build/bdist.linux-x86_64/wheel/pims/tests
copying build/lib/pims/tests/test_bioformats.py -> build/bdist.linux-x86_64/wheel/pims/tests
copying build/lib/pims/tests/test_display.py -> build/bdist.linux-x86_64/wheel/pims/tests
copying build/lib/pims/bioformats.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/base_frames.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/image_reader.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/spe_stack.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/imageio_reader.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/moviepy_reader.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/_version.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/norpix_reader.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/cine.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/process.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/image_sequence.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/frame.py -> build/bdist.linux-x86_64/wheel/pims
copying build/lib/pims/ffmpeg_reader.py -> build/bdist.linux-x86_64/wheel/pims
running install_egg_info
running egg_info
creating PIMS.egg-info
writing PIMS.egg-info/PKG-INFO
writing dependency_links to PIMS.egg-info/dependency_links.txt
writing requirements to PIMS.egg-info/requires.txt
writing top-level names to PIMS.egg-info/top_level.txt
writing manifest file 'PIMS.egg-info/SOURCES.txt'
/nix/store/8zx4h7r5mn1b913hgi8rwjfynwg1wgdi-python3.10-setuptools-67.4.0/lib/python3.10/site-packages/setuptools/command/egg_info.py:661: SetuptoolsDeprecationWarning: Custom 'build_py' does not implement 'get_data_files_without_manifest'.
Please extend command classes from setuptools instead of distutils.
warnings.warn(
reading manifest file 'PIMS.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'PIMS.egg-info/SOURCES.txt'
Copying PIMS.egg-info to build/bdist.linux-x86_64/wheel/PIMS-0.6.1-py3.10.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/PIMS-0.6.1.dist-info/WHEEL
creating 'dist/PIMS-0.6.1-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'pims/__init__.py'
adding 'pims/_version.py'
adding 'pims/api.py'
adding 'pims/base_frames.py'
adding 'pims/bioformats.py'
adding 'pims/cine.py'
adding 'pims/display.py'
adding 'pims/ffmpeg_reader.py'
adding 'pims/frame.py'
adding 'pims/image_reader.py'
adding 'pims/image_sequence.py'
adding 'pims/imageio_reader.py'
adding 'pims/moviepy_reader.py'
adding 'pims/norpix_reader.py'
adding 'pims/process.py'
adding 'pims/pyav_reader.py'
adding 'pims/spe_stack.py'
adding 'pims/tiff_stack.py'
adding 'pims/tests/__init__.py'
adding 'pims/tests/test_bioformats.py'
adding 'pims/tests/test_cine.py'
adding 'pims/tests/test_common.py'
adding 'pims/tests/test_display.py'
adding 'pims/tests/test_factories.py'
adding 'pims/tests/test_frame.py'
adding 'pims/tests/test_imseq.py'
adding 'pims/tests/test_multidimensional.py'
adding 'pims/tests/test_norpix.py'
adding 'pims/tests/test_process.py'
adding 'pims/utils/__init__.py'
adding 'pims/utils/misc.py'
adding 'pims/utils/sort.py'
adding 'PIMS-0.6.1.dist-info/METADATA'
adding 'PIMS-0.6.1.dist-info/WHEEL'
adding 'PIMS-0.6.1.dist-info/top_level.txt'
adding 'PIMS-0.6.1.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Finished executing setuptoolsBuildPhase
@nix { "action": "setPhase", "phase": "installPhase" }
installing
Executing pipInstallPhase
/build/source/dist /build/source
Processing ./PIMS-0.6.1-py3-none-any.whl
Requirement already satisfied: slicerator>=0.9.8 in /nix/store/m1x7ackh76nc5dmq1crkygd5i26vghxw-python3.10-slicerator-1.1.0/lib/python3.10/site-packages (from PIMS==0.6.1) (1.1.0)
Requirement already satisfied: imageio in /nix/store/d57zpkr5jbm23z7dvmp45531j8h5k88r-python3.10-imageio-2.26.0/lib/python3.10/site-packages (from PIMS==0.6.1) (2.26.0)
Requirement already satisfied: numpy>=1.19 in /nix/store/0xhlg0vi0y8m5lxsm8khcqqma8rmy2jr-python3.10-numpy-1.24.2/lib/python3.10/site-packages (from PIMS==0.6.1) (1.24.2)
Requirement already satisfied: pillow>=8.3.2 in /nix/store/q9s12513vl2diwblj1arwb1yl85jjafg-python3.10-pillow-9.4.0/lib/python3.10/site-packages (from imageio->PIMS==0.6.1) (9.4.0)
Installing collected packages: PIMS
Successfully installed PIMS-0.6.1
/build/source
Finished executing pipInstallPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/3k4r6sdayy1zchh7ywgpxsg5ny1f030s-python3.10-pims-0.6.1
checking for references to /build/ in /nix/store/3k4r6sdayy1zchh7ywgpxsg5ny1f030s-python3.10-pims-0.6.1...
patching script interpreter paths in /nix/store/3k4r6sdayy1zchh7ywgpxsg5ny1f030s-python3.10-pims-0.6.1
stripping (with command strip and flags -S) in /nix/store/3k4r6sdayy1zchh7ywgpxsg5ny1f030s-python3.10-pims-0.6.1/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/6w2jyfr76fbq09g8skplz0c5spz5rmal-python3.10-pims-0.6.1-dist
checking for references to /build/ in /nix/store/6w2jyfr76fbq09g8skplz0c5spz5rmal-python3.10-pims-0.6.1-dist...
patching script interpreter paths in /nix/store/6w2jyfr76fbq09g8skplz0c5spz5rmal-python3.10-pims-0.6.1-dist
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "installCheckPhase" }
running install tests
no Makefile or custom installCheckPhase, doing nothing
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: pims
Matplotlib created a temporary config/cache directory at /build/matplotlib-gfh1z6cx because the default path (/homeless-shelter/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
@nix { "action": "setPhase", "phase": "pytestCheckPhase" }
pytestCheckPhase
Executing pytestCheckPhase
============================= test session starts ==============================
platform linux -- Python 3.10.10, pytest-7.2.1, pluggy-1.0.0
rootdir: /build/source, configfile: pytest.ini
collecting ...  collecting 13 items  collecting 180 items  collecting 369 items  collecting 512 items  collected 534 items / 17 deselected / 517 selected 
pims/tests/test_bioformats.py ssssssssssssssssssssssssssssssssssssssssss [ 8%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 22%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%]
pims/tests/test_cine.py ...... [ 34%]
pims/tests/test_common.py ...................sssssssssssssssssssssssssss [ 42%]
ssssssssssssssssssssssssssssssssssssssssss.............................. [ 56%]
........................s... [ 62%]
pims/tests/test_display.py FFFFFFFFFFFssssssssssss [ 66%]
pims/tests/test_factories.py . [ 66%]
pims/tests/test_frame.py ..s... [ 68%]
pims/tests/test_imseq.py ............................................... [ 77%]
........................................................................ [ 91%]
......... [ 92%]
pims/tests/test_multidimensional.py ........ [ 94%]
pims/tests/test_norpix.py sssssss................. [ 99%]
pims/tests/test_process.py .... [ 99%]
pims/utils/tests/test_sort.py . [100%]
=================================== FAILURES ===================================
_______________________ TestPlotToFrame.test_ax_to_frame _______________________
self = <pims.tests.test_display.TestPlotToFrame testMethod=test_ax_to_frame>
def test_ax_to_frame(self):
> frame = plot_to_frame(self.axes[0])
pims/tests/test_display.py:52:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pims/display.py:702: in plot_to_frame
with _fig_size_cntx(fig, fig_size_inches, tight_layout) as fig:
/nix/store/0n4y44dnaxafqs7cg625aldrb152x7bx-python3-3.10.10/lib/python3.10/contextlib.py:135: in __enter__
return next(self.gen)
pims/display.py:650: in _fig_size_cntx
fig.set_tight_layout(tight_layout)
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:199: in wrapper
emit_warning()
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:193: in emit_warning
warn_deprecated(
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:96: in warn_deprecated
warn_external(warning, category=MatplotlibDeprecationWarning)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
message = PendingDeprecationWarning('The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.')
category = <class 'matplotlib._api.deprecation.MatplotlibDeprecationWarning'>
def warn_external(message, category=None):
"""
`warnings.warn` wrapper that sets *stacklevel* to "outside Matplotlib".
The original emitter of the warning can be obtained by patching this
function back to `warnings.warn`, i.e. ``_api.warn_external =
warnings.warn`` (or ``functools.partial(warnings.warn, stacklevel=2)``,
etc.).
"""
frame = sys._getframe()
for stacklevel in itertools.count(1): # lgtm[py/unused-loop-variable]
if frame is None:
# when called in embedded context may hit frame is None
break
if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.(?!tests\.))",
# Work around sphinx-gallery not setting __name__.
frame.f_globals.get("__name__", "")):
break
frame = frame.f_back
> warnings.warn(message, category, stacklevel)
E PendingDeprecationWarning: The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/__init__.py:388: PendingDeprecationWarning
______________________ TestPlotToFrame.test_axes_to_frame ______________________
self = <pims.tests.test_display.TestPlotToFrame testMethod=test_axes_to_frame>
def test_axes_to_frame(self):
> frame = plots_to_frame(self.axes)
pims/tests/test_display.py:60:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pims/display.py:757: in plots_to_frame
im = plot_to_frame(fig, width, close_fig, fig_size_inches, bbox_inches)
pims/display.py:702: in plot_to_frame
with _fig_size_cntx(fig, fig_size_inches, tight_layout) as fig:
/nix/store/0n4y44dnaxafqs7cg625aldrb152x7bx-python3-3.10.10/lib/python3.10/contextlib.py:135: in __enter__
return next(self.gen)
pims/display.py:650: in _fig_size_cntx
fig.set_tight_layout(tight_layout)
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:199: in wrapper
emit_warning()
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:193: in emit_warning
warn_deprecated(
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:96: in warn_deprecated
warn_external(warning, category=MatplotlibDeprecationWarning)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
message = PendingDeprecationWarning('The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.')
category = <class 'matplotlib._api.deprecation.MatplotlibDeprecationWarning'>
def warn_external(message, category=None):
"""
`warnings.warn` wrapper that sets *stacklevel* to "outside Matplotlib".
The original emitter of the warning can be obtained by patching this
function back to `warnings.warn`, i.e. ``_api.warn_external =
warnings.warn`` (or ``functools.partial(warnings.warn, stacklevel=2)``,
etc.).
"""
frame = sys._getframe()
for stacklevel in itertools.count(1): # lgtm[py/unused-loop-variable]
if frame is None:
# when called in embedded context may hit frame is None
break
if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.(?!tests\.))",
# Work around sphinx-gallery not setting __name__.
frame.f_globals.get("__name__", "")):
break
frame = frame.f_back
> warnings.warn(message, category, stacklevel)
E PendingDeprecationWarning: The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/__init__.py:388: PendingDeprecationWarning
_______________________ TestPlotToFrame.test_plot_resize _______________________
self = <pims.tests.test_display.TestPlotToFrame testMethod=test_plot_resize>
def test_plot_resize(self):
> frame = plot_to_frame(self.figures[0], fig_size_inches=(4, 4))
pims/tests/test_display.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pims/display.py:702: in plot_to_frame
with _fig_size_cntx(fig, fig_size_inches, tight_layout) as fig:
/nix/store/0n4y44dnaxafqs7cg625aldrb152x7bx-python3-3.10.10/lib/python3.10/contextlib.py:135: in __enter__
return next(self.gen)
pims/display.py:650: in _fig_size_cntx
fig.set_tight_layout(tight_layout)
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:199: in wrapper
emit_warning()
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:193: in emit_warning
warn_deprecated(
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:96: in warn_deprecated
warn_external(warning, category=MatplotlibDeprecationWarning)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
message = PendingDeprecationWarning('The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.')
category = <class 'matplotlib._api.deprecation.MatplotlibDeprecationWarning'>
def warn_external(message, category=None):
"""
`warnings.warn` wrapper that sets *stacklevel* to "outside Matplotlib".
The original emitter of the warning can be obtained by patching this
function back to `warnings.warn`, i.e. ``_api.warn_external =
warnings.warn`` (or ``functools.partial(warnings.warn, stacklevel=2)``,
etc.).
"""
frame = sys._getframe()
for stacklevel in itertools.count(1): # lgtm[py/unused-loop-variable]
if frame is None:
# when called in embedded context may hit frame is None
break
if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.(?!tests\.))",
# Work around sphinx-gallery not setting __name__.
frame.f_globals.get("__name__", "")):
break
frame = frame.f_back
> warnings.warn(message, category, stacklevel)
E PendingDeprecationWarning: The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/__init__.py:388: PendingDeprecationWarning
_______________________ TestPlotToFrame.test_plot_tight ________________________
self = <pims.tests.test_display.TestPlotToFrame testMethod=test_plot_tight>
def test_plot_tight(self):
fig = self.figures[0]
> fig.set_tight_layout(False) # default to standard
pims/tests/test_display.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:199: in wrapper
emit_warning()
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:193: in emit_warning
warn_deprecated(
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:96: in warn_deprecated
warn_external(warning, category=MatplotlibDeprecationWarning)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
message = PendingDeprecationWarning('The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.')
category = <class 'matplotlib._api.deprecation.MatplotlibDeprecationWarning'>
def warn_external(message, category=None):
"""
`warnings.warn` wrapper that sets *stacklevel* to "outside Matplotlib".
The original emitter of the warning can be obtained by patching this
function back to `warnings.warn`, i.e. ``_api.warn_external =
warnings.warn`` (or ``functools.partial(warnings.warn, stacklevel=2)``,
etc.).
"""
frame = sys._getframe()
for stacklevel in itertools.count(1): # lgtm[py/unused-loop-variable]
if frame is None:
# when called in embedded context may hit frame is None
break
if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.(?!tests\.))",
# Work around sphinx-gallery not setting __name__.
frame.f_globals.get("__name__", "")):
break
frame = frame.f_back
> warnings.warn(message, category, stacklevel)
E PendingDeprecationWarning: The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/__init__.py:388: PendingDeprecationWarning
______________________ TestPlotToFrame.test_plot_to_frame ______________________
self = <pims.tests.test_display.TestPlotToFrame testMethod=test_plot_to_frame>
def test_plot_to_frame(self):
> frame = plot_to_frame(self.figures[0])
pims/tests/test_display.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pims/display.py:702: in plot_to_frame
with _fig_size_cntx(fig, fig_size_inches, tight_layout) as fig:
/nix/store/0n4y44dnaxafqs7cg625aldrb152x7bx-python3-3.10.10/lib/python3.10/contextlib.py:135: in __enter__
return next(self.gen)
pims/display.py:650: in _fig_size_cntx
fig.set_tight_layout(tight_layout)
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:199: in wrapper
emit_warning()
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:193: in emit_warning
warn_deprecated(
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:96: in warn_deprecated
warn_external(warning, category=MatplotlibDeprecationWarning)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
message = PendingDeprecationWarning('The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.')
category = <class 'matplotlib._api.deprecation.MatplotlibDeprecationWarning'>
def warn_external(message, category=None):
"""
`warnings.warn` wrapper that sets *stacklevel* to "outside Matplotlib".
The original emitter of the warning can be obtained by patching this
function back to `warnings.warn`, i.e. ``_api.warn_external =
warnings.warn`` (or ``functools.partial(warnings.warn, stacklevel=2)``,
etc.).
"""
frame = sys._getframe()
for stacklevel in itertools.count(1): # lgtm[py/unused-loop-variable]
if frame is None:
# when called in embedded context may hit frame is None
break
if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.(?!tests\.))",
# Work around sphinx-gallery not setting __name__.
frame.f_globals.get("__name__", "")):
break
frame = frame.f_back
> warnings.warn(message, category, stacklevel)
E PendingDeprecationWarning: The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/__init__.py:388: PendingDeprecationWarning
_______________________ TestPlotToFrame.test_plot_width ________________________
self = <pims.tests.test_display.TestPlotToFrame testMethod=test_plot_width>
def test_plot_width(self):
width = np.random.randint(100, 1000)
> frame = plot_to_frame(self.figures[0], width)
pims/tests/test_display.py:69:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pims/display.py:702: in plot_to_frame
with _fig_size_cntx(fig, fig_size_inches, tight_layout) as fig:
/nix/store/0n4y44dnaxafqs7cg625aldrb152x7bx-python3-3.10.10/lib/python3.10/contextlib.py:135: in __enter__
return next(self.gen)
pims/display.py:650: in _fig_size_cntx
fig.set_tight_layout(tight_layout)
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:199: in wrapper
emit_warning()
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:193: in emit_warning
warn_deprecated(
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:96: in warn_deprecated
warn_external(warning, category=MatplotlibDeprecationWarning)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
message = PendingDeprecationWarning('The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.')
category = <class 'matplotlib._api.deprecation.MatplotlibDeprecationWarning'>
def warn_external(message, category=None):
"""
`warnings.warn` wrapper that sets *stacklevel* to "outside Matplotlib".
The original emitter of the warning can be obtained by patching this
function back to `warnings.warn`, i.e. ``_api.warn_external =
warnings.warn`` (or ``functools.partial(warnings.warn, stacklevel=2)``,
etc.).
"""
frame = sys._getframe()
for stacklevel in itertools.count(1): # lgtm[py/unused-loop-variable]
if frame is None:
# when called in embedded context may hit frame is None
break
if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.(?!tests\.))",
# Work around sphinx-gallery not setting __name__.
frame.f_globals.get("__name__", "")):
break
frame = frame.f_back
> warnings.warn(message, category, stacklevel)
E PendingDeprecationWarning: The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/__init__.py:388: PendingDeprecationWarning
__________________ TestPlotToFrame.test_plots_from_generator ___________________
self = <pims.tests.test_display.TestPlotToFrame testMethod=test_plots_from_generator>
def test_plots_from_generator(self):
> frame = plots_to_frame(iter(self.figures))
pims/tests/test_display.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pims/display.py:757: in plots_to_frame
im = plot_to_frame(fig, width, close_fig, fig_size_inches, bbox_inches)
pims/display.py:702: in plot_to_frame
with _fig_size_cntx(fig, fig_size_inches, tight_layout) as fig:
/nix/store/0n4y44dnaxafqs7cg625aldrb152x7bx-python3-3.10.10/lib/python3.10/contextlib.py:135: in __enter__
return next(self.gen)
pims/display.py:650: in _fig_size_cntx
fig.set_tight_layout(tight_layout)
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:199: in wrapper
emit_warning()
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:193: in emit_warning
warn_deprecated(
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:96: in warn_deprecated
warn_external(warning, category=MatplotlibDeprecationWarning)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
message = PendingDeprecationWarning('The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.')
category = <class 'matplotlib._api.deprecation.MatplotlibDeprecationWarning'>
def warn_external(message, category=None):
"""
`warnings.warn` wrapper that sets *stacklevel* to "outside Matplotlib".
The original emitter of the warning can be obtained by patching this
function back to `warnings.warn`, i.e. ``_api.warn_external =
warnings.warn`` (or ``functools.partial(warnings.warn, stacklevel=2)``,
etc.).
"""
frame = sys._getframe()
for stacklevel in itertools.count(1): # lgtm[py/unused-loop-variable]
if frame is None:
# when called in embedded context may hit frame is None
break
if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.(?!tests\.))",
# Work around sphinx-gallery not setting __name__.
frame.f_globals.get("__name__", "")):
break
frame = frame.f_back
> warnings.warn(message, category, stacklevel)
E PendingDeprecationWarning: The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/__init__.py:388: PendingDeprecationWarning
______________________ TestPlotToFrame.test_plots_resize _______________________
self = <pims.tests.test_display.TestPlotToFrame testMethod=test_plots_resize>
def test_plots_resize(self):
> frame = plots_to_frame(self.figures, fig_size_inches=(4, 4))
pims/tests/test_display.py:95:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pims/display.py:757: in plots_to_frame
im = plot_to_frame(fig, width, close_fig, fig_size_inches, bbox_inches)
pims/display.py:702: in plot_to_frame
with _fig_size_cntx(fig, fig_size_inches, tight_layout) as fig:
/nix/store/0n4y44dnaxafqs7cg625aldrb152x7bx-python3-3.10.10/lib/python3.10/contextlib.py:135: in __enter__
return next(self.gen)
pims/display.py:650: in _fig_size_cntx
fig.set_tight_layout(tight_layout)
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:199: in wrapper
emit_warning()
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:193: in emit_warning
warn_deprecated(
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:96: in warn_deprecated
warn_external(warning, category=MatplotlibDeprecationWarning)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
message = PendingDeprecationWarning('The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.')
category = <class 'matplotlib._api.deprecation.MatplotlibDeprecationWarning'>
def warn_external(message, category=None):
"""
`warnings.warn` wrapper that sets *stacklevel* to "outside Matplotlib".
The original emitter of the warning can be obtained by patching this
function back to `warnings.warn`, i.e. ``_api.warn_external =
warnings.warn`` (or ``functools.partial(warnings.warn, stacklevel=2)``,
etc.).
"""
frame = sys._getframe()
for stacklevel in itertools.count(1): # lgtm[py/unused-loop-variable]
if frame is None:
# when called in embedded context may hit frame is None
break
if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.(?!tests\.))",
# Work around sphinx-gallery not setting __name__.
frame.f_globals.get("__name__", "")):
break
frame = frame.f_back
> warnings.warn(message, category, stacklevel)
E PendingDeprecationWarning: The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/__init__.py:388: PendingDeprecationWarning
_______________________ TestPlotToFrame.test_plots_tight _______________________
self = <pims.tests.test_display.TestPlotToFrame testMethod=test_plots_tight>
def test_plots_tight(self):
> frame = plots_to_frame(self.figures, bbox_inches='tight')
pims/tests/test_display.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pims/display.py:757: in plots_to_frame
im = plot_to_frame(fig, width, close_fig, fig_size_inches, bbox_inches)
pims/display.py:702: in plot_to_frame
with _fig_size_cntx(fig, fig_size_inches, tight_layout) as fig:
/nix/store/0n4y44dnaxafqs7cg625aldrb152x7bx-python3-3.10.10/lib/python3.10/contextlib.py:135: in __enter__
return next(self.gen)
pims/display.py:650: in _fig_size_cntx
fig.set_tight_layout(tight_layout)
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:199: in wrapper
emit_warning()
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:193: in emit_warning
warn_deprecated(
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:96: in warn_deprecated
warn_external(warning, category=MatplotlibDeprecationWarning)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
message = PendingDeprecationWarning('The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.')
category = <class 'matplotlib._api.deprecation.MatplotlibDeprecationWarning'>
def warn_external(message, category=None):
"""
`warnings.warn` wrapper that sets *stacklevel* to "outside Matplotlib".
The original emitter of the warning can be obtained by patching this
function back to `warnings.warn`, i.e. ``_api.warn_external =
warnings.warn`` (or ``functools.partial(warnings.warn, stacklevel=2)``,
etc.).
"""
frame = sys._getframe()
for stacklevel in itertools.count(1): # lgtm[py/unused-loop-variable]
if frame is None:
# when called in embedded context may hit frame is None
break
if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.(?!tests\.))",
# Work around sphinx-gallery not setting __name__.
frame.f_globals.get("__name__", "")):
break
frame = frame.f_back
> warnings.warn(message, category, stacklevel)
E PendingDeprecationWarning: The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/__init__.py:388: PendingDeprecationWarning
_____________________ TestPlotToFrame.test_plots_to_frame ______________________
self = <pims.tests.test_display.TestPlotToFrame testMethod=test_plots_to_frame>
def test_plots_to_frame(self):
> frame = plots_to_frame(self.figures)
pims/tests/test_display.py:64:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pims/display.py:757: in plots_to_frame
im = plot_to_frame(fig, width, close_fig, fig_size_inches, bbox_inches)
pims/display.py:702: in plot_to_frame
with _fig_size_cntx(fig, fig_size_inches, tight_layout) as fig:
/nix/store/0n4y44dnaxafqs7cg625aldrb152x7bx-python3-3.10.10/lib/python3.10/contextlib.py:135: in __enter__
return next(self.gen)
pims/display.py:650: in _fig_size_cntx
fig.set_tight_layout(tight_layout)
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:199: in wrapper
emit_warning()
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:193: in emit_warning
warn_deprecated(
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:96: in warn_deprecated
warn_external(warning, category=MatplotlibDeprecationWarning)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
message = PendingDeprecationWarning('The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.')
category = <class 'matplotlib._api.deprecation.MatplotlibDeprecationWarning'>
def warn_external(message, category=None):
"""
`warnings.warn` wrapper that sets *stacklevel* to "outside Matplotlib".
The original emitter of the warning can be obtained by patching this
function back to `warnings.warn`, i.e. ``_api.warn_external =
warnings.warn`` (or ``functools.partial(warnings.warn, stacklevel=2)``,
etc.).
"""
frame = sys._getframe()
for stacklevel in itertools.count(1): # lgtm[py/unused-loop-variable]
if frame is None:
# when called in embedded context may hit frame is None
break
if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.(?!tests\.))",
# Work around sphinx-gallery not setting __name__.
frame.f_globals.get("__name__", "")):
break
frame = frame.f_back
> warnings.warn(message, category, stacklevel)
E PendingDeprecationWarning: The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/__init__.py:388: PendingDeprecationWarning
_______________________ TestPlotToFrame.test_plots_width _______________________
self = <pims.tests.test_display.TestPlotToFrame testMethod=test_plots_width>
def test_plots_width(self):
width = np.random.randint(100, 1000)
> frame = plots_to_frame(self.figures, width)
pims/tests/test_display.py:100:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pims/display.py:757: in plots_to_frame
im = plot_to_frame(fig, width, close_fig, fig_size_inches, bbox_inches)
pims/display.py:702: in plot_to_frame
with _fig_size_cntx(fig, fig_size_inches, tight_layout) as fig:
/nix/store/0n4y44dnaxafqs7cg625aldrb152x7bx-python3-3.10.10/lib/python3.10/contextlib.py:135: in __enter__
return next(self.gen)
pims/display.py:650: in _fig_size_cntx
fig.set_tight_layout(tight_layout)
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:199: in wrapper
emit_warning()
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:193: in emit_warning
warn_deprecated(
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/deprecation.py:96: in warn_deprecated
warn_external(warning, category=MatplotlibDeprecationWarning)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
message = PendingDeprecationWarning('The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.')
category = <class 'matplotlib._api.deprecation.MatplotlibDeprecationWarning'>
def warn_external(message, category=None):
"""
`warnings.warn` wrapper that sets *stacklevel* to "outside Matplotlib".
The original emitter of the warning can be obtained by patching this
function back to `warnings.warn`, i.e. ``_api.warn_external =
warnings.warn`` (or ``functools.partial(warnings.warn, stacklevel=2)``,
etc.).
"""
frame = sys._getframe()
for stacklevel in itertools.count(1): # lgtm[py/unused-loop-variable]
if frame is None:
# when called in embedded context may hit frame is None
break
if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.(?!tests\.))",
# Work around sphinx-gallery not setting __name__.
frame.f_globals.get("__name__", "")):
break
frame = frame.f_back
> warnings.warn(message, category, stacklevel)
E PendingDeprecationWarning: The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.
/nix/store/w19ags7fn0h3vf1whck5pg548xan9afg-python3.10-matplotlib-3.7.0/lib/python3.10/site-packages/matplotlib/_api/__init__.py:388: PendingDeprecationWarning
=========================== short test summary info ============================
FAILED pims/tests/test_display.py::TestPlotToFrame::test_ax_to_frame - PendingDeprecationWarning: The set_tight_layout function will be deprecated...
FAILED pims/tests/test_display.py::TestPlotToFrame::test_axes_to_frame - PendingDeprecationWarning: The set_tight_layout function will be deprecated...
FAILED pims/tests/test_display.py::TestPlotToFrame::test_plot_resize - PendingDeprecationWarning: The set_tight_layout function will be deprecated...
FAILED pims/tests/test_display.py::TestPlotToFrame::test_plot_tight - PendingDeprecationWarning: The set_tight_layout function will be deprecated...
FAILED pims/tests/test_display.py::TestPlotToFrame::test_plot_to_frame - PendingDeprecationWarning: The set_tight_layout function will be deprecated...
FAILED pims/tests/test_display.py::TestPlotToFrame::test_plot_width - PendingDeprecationWarning: The set_tight_layout function will be deprecated...
FAILED pims/tests/test_display.py::TestPlotToFrame::test_plots_from_generator - PendingDeprecationWarning: The set_tight_layout function will be deprecated...
FAILED pims/tests/test_display.py::TestPlotToFrame::test_plots_resize - PendingDeprecationWarning: The set_tight_layout function will be deprecated...
FAILED pims/tests/test_display.py::TestPlotToFrame::test_plots_tight - PendingDeprecationWarning: The set_tight_layout function will be deprecated...
FAILED pims/tests/test_display.py::TestPlotToFrame::test_plots_to_frame - PendingDeprecationWarning: The set_tight_layout function will be deprecated...
FAILED pims/tests/test_display.py::TestPlotToFrame::test_plots_width - PendingDeprecationWarning: The set_tight_layout function will be deprecated...
==== 11 failed, 246 passed, 260 skipped, 17 deselected in 240.95s (0:04:00) ====
/nix/store/pw17yc3mwmsci4jygwalj8ppg0drz31v-stdenv-linux/setup: line 1593: pop_var_context: head of shell_variables not a function context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment