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

Unable to visualise complex valued mrc file #5

Open
jmp1985 opened this issue Mar 10, 2022 · 0 comments
Open

Unable to visualise complex valued mrc file #5

jmp1985 opened this issue Mar 10, 2022 · 0 comments

Comments

@jmp1985
Copy link
Contributor

jmp1985 commented Mar 10, 2022

Hi Alister

I tried to load a complex valued mrcfile in napari but I go the following error:

TypeError: Cannot cast array data from dtype('complex64') to dtype('float64') according to the rule 'safe'

It's legal to save complex valued data in mrcfiles (although the header meta data is ambiguously undefined) but I appreciate that visualising it is more complicated! I'm using this to save the simulated complex exit wave from my simulations and I'd really like to be able to look at the magnitude and phase etc in napari. Do you think this is something that might be possible to do? I've attached an example file here.

exit_wave.zip

Best wishes
James

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