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

plotting problem #393

Closed
shaghayegh1376 opened this issue Aug 16, 2022 · 20 comments
Closed

plotting problem #393

shaghayegh1376 opened this issue Aug 16, 2022 · 20 comments

Comments

@shaghayegh1376
Copy link

shaghayegh1376 commented Aug 16, 2022

hello
when i rewrite demos in jupyter notebook , in some demos like number 3/4/7/... , in plotting part , code run without error but for result it just show the blank , but in other demo number 5 it shows the result as image or gif.

i use python 3.8
anaconda 3
cuda 11.7
nvidia getforce rtx 3050

@AnderBiguri
Copy link
Member

Thanks for the issue.
Coudl you please show the code you have in the jupyter notebook?

@shaghayegh1376
Copy link
Author

shaghayegh1376 commented Aug 16, 2022 via email

@AnderBiguri
Copy link
Member

@shaghayegh1376 please can you shorten this to the minimal example that reproduces the case? Reduce the code as much as possible

@shaghayegh1376
Copy link
Author

shaghayegh1376 commented Aug 16, 2022 via email

@AnderBiguri
Copy link
Member

I will have a look, but meanwhile I suggest trying it in a normal python enviroment and not in jupyter if you want the plots.

I myself dont have it installed and its not officially supported, so I will try to test this but can't promise anything.

@shaghayegh1376
Copy link
Author

shaghayegh1376 commented Aug 16, 2022 via email

@shaghayegh1376
Copy link
Author

shaghayegh1376 commented Aug 28, 2022 via email

@AnderBiguri
Copy link
Member

@shaghayegh1376 you will need to be more specific. There are tutorials in the installation page for python envoroments, have you looked at that?
what are the problems you are having?

You don't need to "write code" to make TIGRE work in VSC (note that VSC is not an "enviroment").

@shaghayegh1376
Copy link
Author

shaghayegh1376 commented Aug 31, 2022 via email

@AnderBiguri
Copy link
Member

@shaghayegh1376 I can't see the image, please post it in the github issue.

@shaghayegh1376
Copy link
Author

shaghayegh1376 commented Aug 31, 2022

unnamed

@AnderBiguri
Copy link
Member

@shaghayegh1376 please next time share text as text, not as an image, it is quite unhelpful as an image!

I would suggest trying an older version of python, perhaps 3.7 or so. I had similar issues in the past with 3.9, but I thought we solved this (are you running a recent version of TIGRE??). If you try python 3.7 and it works, let me know.

@shaghayegh1376
Copy link
Author

it was with python 3.10 , let me check the 3.7 version

@shaghayegh1376
Copy link
Author

Traceback (most recent call last):
File "C:/Users/shaghayegh/Desktop/test.py", line 1, in
import tigre
ModuleNotFoundError: No module named 'tigre'

this was the result with python 3.7

@AnderBiguri
Copy link
Member

Thats just that you installed it wrong in python 3.7.

@shaghayegh1376
Copy link
Author

but i follow the steps like tutorial.

@AnderBiguri
Copy link
Member

AnderBiguri commented Sep 1, 2022 via email

@shaghayegh1376
Copy link
Author

ok, another question is that: can we replace
this function:
tigre.plotimg(np.concatenate([imgFDK, imgOSSART], axis=1), dim="z")
with other library like plt.show() or .imshow() and how
i mean , what alternative to tigre.plotting can i use to display the result.

@AnderBiguri
Copy link
Member

AnderBiguri commented Sep 2, 2022 via email

@pjueon
Copy link
Contributor

pjueon commented Sep 6, 2022

unnamed

@shaghayegh1376 please next time share text as text, not as an image, it is quite unhelpful as an image!

I would suggest trying an older version of python, perhaps 3.7 or so. I had similar issues in the past with 3.9, but I thought we solved this (are you running a recent version of TIGRE??). If you try python 3.7 and it works, let me know.

This importing error is already fixed by #387
Judging by the line number in the error message, this fix is not applied to the version you're using. Try with the latest version of TIGRE. It should work on python 3.10.

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

3 participants