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

Can't import DM3 or 4 data #11

Open
kociak opened this issue Nov 12, 2019 · 11 comments
Open

Can't import DM3 or 4 data #11

kociak opened this issue Nov 12, 2019 · 11 comments

Comments

@kociak
Copy link

kociak commented Nov 12, 2019

Recently, I stopped being able to import DM files, both 3 and 4, even if they have been exported through nionswift.
The importing nionswift version tested is 0.14.5 with nionswift-io 0.13.9
The exporting version is the lastest from the orsay machine (Chromatem)
I could not conda-load the 0.14.7 version, so I don't know if the problem is fixed in this version
using macOS 10.14.6

thanks

@kociak
Copy link
Author

kociak commented Nov 12, 2019

Update: I finally updated to 0.14.7
this didn't solve the problem

@cmeyer
Copy link
Contributor

cmeyer commented Nov 13, 2019

I uploaded a new version 0.14.0. Can you try it and see if it changes anything? I don't think it will, but at least we'll be using the same versions. Also, your version on your machine may be out of date - Marcel has some local changes. I will email about that separately.

@kociak
Copy link
Author

kociak commented Nov 13, 2019

OK, I am lost there: is the version available on conda, and then how can I get it if this is not the last version?
thanks

@cmeyer
Copy link
Contributor

cmeyer commented Nov 13, 2019

The "0.14.0" update was for nionswift-io -- so you should be able to activate your conda environment and type the following command to get the new version of the DM import/export.

conda update -c nion --all

@kociak
Copy link
Author

kociak commented Nov 14, 2019

thanks but it does not fix the problem either, as you were predicting...

@cmeyer
Copy link
Contributor

cmeyer commented Nov 14, 2019

Are the versions self consistent? i.e. if you export and import from the same Swift on the same computer, does it reload consistently? If so, then we should be able to compare the differences between files from the two different machines. In that case, can you export an identical small (8x8) image from each version and attach them to this issue?

@kociak
Copy link
Author

kociak commented Nov 19, 2019

Sorry, i was travelling.
Yes, the version producing the files can also read it.
Note that the version of the DM files swift can't read it are readable through hyperspy 1.5

@cmeyer
Copy link
Contributor

cmeyer commented Nov 19, 2019

Is there a file that can be exported from Swift and is not readable in DM? Or the converse: Is there a file that can be exported from DM and cannot be read in Swift?

In my tests, data exported from Swift (using the nionswift-io 0.14.0 release) can be imported into DM 2.31.734.0. Likewise, data saved from DM can be imported into Swift.

Can you attach one of the problem files (preferably something small: 4x4) and describe how it was produced (version of nionswift-io or whether it is the custom version on ChromaTEM)?

@kociak
Copy link
Author

kociak commented Nov 20, 2019

sorry i was not at the lab until yesterday
yes, the exported ones are readable by DM
I attached a small file generated on the custom version of chromatem.
I couldn't find the version of nionswift-io, which is weird (I switch to the conda env of the installation, then conda list, but get only two nion modules: nion-hardware 3.8025.0and nionswift-tool 0.3.23)

testForChris.dm4.zip

@cmeyer
Copy link
Contributor

cmeyer commented Nov 20, 2019

The file opens fine for me in Swift. Where are you having trouble opening it? (I have nionswift-io 0.14.0 running).

Also, on ChromaTEM, nionswift-io is installed as developer/source code. So it will not appear when you conda list. It should appear if you do pip list, but the version may not be accurate.

@kociak
Copy link
Author

kociak commented Nov 20, 2019

thanks for the hint for the install, make perfect sense
So, on my computer (Mac OS 10.14.6), if I drag and drop, or try to ìmport ...` the file from the file menu, i get this on the console:

Import Data Items: started
Import Data Items: Starting import. (0, 1)
Import Data Items: Importing item 1. (1, 1)
Import Data Items: Finishing importing. (1, 1)
Import Data Items: finished

but that's all: no data item is opened, nor in the librairy

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