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

p1 fails with ValueError #20

Open
iancrossfield opened this issue Jul 29, 2023 · 0 comments
Open

p1 fails with ValueError #20

iancrossfield opened this issue Jul 29, 2023 · 0 comments

Comments

@iancrossfield
Copy link
Contributor

TLDR: Matplotlib has changed the valid options for imshow. Commenting out the 'origin' keyword results in a successful execution and avoids the error trace below.

$ python poet.py p1

Traceback (most recent call last):
File "/home/ianc/proj/spitzer/hd73344/poet/run/poet.py", line 44, in
e = p1.Event(arg)
File "/home/ianc/python/POET/code/lib/poet_1event.py", line 44, in init
self.check()
File "/home/ianc/python/POET/code/lib/poet_1event.py", line 410, in check
plt.imshow(image, interpolation='nearest', origin='ll', cmap=plt.cm.gray)
File "/home/ianc/miniconda3/lib/python3.9/site-packages/matplotlib/_api/deprecation.py", line 456, in wrapper
return func(*args, **kwargs)
File "/home/ianc/miniconda3/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2640, in imshow
__ret = gca().imshow(
File "/home/ianc/miniconda3/lib/python3.9/site-packages/matplotlib/_api/deprecation.py", line 456, in wrapper
return func(*args, **kwargs)
File "/home/ianc/miniconda3/lib/python3.9/site-packages/matplotlib/init.py", line 1412, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File "/home/ianc/miniconda3/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 5482, in imshow
im = mimage.AxesImage(self, cmap, norm, interpolation,
File "/home/ianc/miniconda3/lib/python3.9/site-packages/matplotlib/image.py", line 929, in init
super().init(
File "/home/ianc/miniconda3/lib/python3.9/site-packages/matplotlib/image.py", line 249, in init
_api.check_in_list(["upper", "lower"], origin=origin)
File "/home/ianc/miniconda3/lib/python3.9/site-packages/matplotlib/_api/init.py", line 129, in check_in_list
raise ValueError(msg)
ValueError: 'll' is not a valid value for origin; supported values are 'upper', 'lower'

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

1 participant