Skip to content

Fix deprecated module and attribute errors in visualization and plot utils - #17

Open
Gaochengzhi wants to merge 1 commit into
RobertKrajewski:masterfrom
Gaochengzhi:fix_python_outdated_bugs
Open

Fix deprecated module and attribute errors in visualization and plot utils#17
Gaochengzhi wants to merge 1 commit into
RobertKrajewski:masterfrom
Gaochengzhi:fix_python_outdated_bugs

Conversation

@Gaochengzhi

Copy link
Copy Markdown

Replace the deprecated scipy.ndimage.imread module with matplotlib.pyplot.imread in visualization/visualize_frame.py to fix the AttributeError

Also, update the utils/plot_utils.py file by replacing the attribute error caused by the DiscreteSlider object with self._observers.process('changed', discrete_val)

These changes have been tested on macOS 12.6 with matplotlib version 3.6.2.

…utils

Replace the deprecated scipy.ndimage.imread module with matplotlib.pyplot.imread
in ```visualization/visualize_frame.py` to fix the AttributeError
Also, update the utils/plot_utils.py file by replacing the attribute error
caused by the DiscreteSlider object with self._observers.process('changed', discrete_val).

These changes have been tested on macOS 12.6 with matplotlib version 3.6.2.
@AA1HSHH

AA1HSHH commented Jan 25, 2024

Copy link
Copy Markdown

thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants