Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display failure #24

Open
Dharmesh946 opened this issue Jun 5, 2024 · 2 comments
Open

Display failure #24

Dharmesh946 opened this issue Jun 5, 2024 · 2 comments

Comments

@Dharmesh946
Copy link

Hi

After successfully running the training and the following stage, the script fails in viz_scrna.py, line 460 with

AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap'.

Probably a matplotlib version issue (mine is 3.9.0).

@nekonekko
Copy link

Hi

matplotlib.cm.get_cmap() has been removed in matplotlib==3.9.0. (See: API Changes for 3.9.0 — Matplotlib 3.9.0 documentation)

You can use matplotlib.pyplot.get_cmap() instead of matplotlib.cm.get_cmap().

@Dharmesh946
Copy link
Author

Thanks, I implemented the fix.
Now I'm getting a lot of warnings

viz_scrna.p                                                                                                                     y:458: UserWarning: The input coordinates to pcolormesh are interpreted as cell centers,                                                                                                                      but are not monotonically increasing or decreasing. This may lead to incorrectly calculat                                                                                                                     ed cell edges, in which case, please supply explicit cell edges to pcolormesh.
  plt.pcolormesh(xx, yy, qz)

Do you think its normal? I could not go further yet to a missing dependency on my side (ffmpeg) (btw, I think it would be interesting to improve the readme with the requirements).

In order to move on my tests, without needing to run again the training each time, how can I run the last part of the code (displaying the results) on the generated data?

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

No branches or pull requests

2 participants