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

pairplot with 1 dimensional tensor returns an error #1184

Closed
gmoss13 opened this issue Jun 21, 2024 · 2 comments · Fixed by #1185
Closed

pairplot with 1 dimensional tensor returns an error #1184

gmoss13 opened this issue Jun 21, 2024 · 2 comments · Fixed by #1185
Labels
bug Something isn't working

Comments

@gmoss13
Copy link
Contributor

gmoss13 commented Jun 21, 2024

Describe the bug
After recent changes, pairplot can no longer be used to plot the distribution of a 1-dim parameter, and throws TypeError: 'Axes' object is not subscriptable

To Reproduce

import torch
from sbi.analysis import pairplot
theta = torch.randn(1000, 1)
pairplot(theta,limits=[(-1,1)])
@gmoss13 gmoss13 added the bug Something isn't working label Jun 21, 2024
@Matthijspals
Copy link
Contributor

I most have introduced this, apologies will have a look!

@Matthijspals
Copy link
Contributor

This should be fixed in #1185, and there is a new test that explicitly checks for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants