Closed DimitriosBellos closed 2 years ago
Hi Dimitrios
This is a result of upgrading some stuff in python-multem. I have created new releases for python-multem, guanaco and parakeet so hopefully everything is fully in sync again! Try updating all the repositories and then let me know if you have any more issues.
OK. I updated and tested everything (the whole pipeline from sample.new -> analyse.reconstruct). Everything (almost everything) works OK. The only thing that I spotted not working is:
parakeet.export corrected_optics.mrc -o corrected_optics.h5
Reading data from corrected_optics.mrc
Traceback (most recent call last):
File "/home/0000-0002-8015-3191/workspace-ceph/Installations/miniconda3/envs/parakeet/bin/parakeet.export", line 8, in <module>
sys.exit(export())
File "/home/0000-0002-8015-3191/workspace-ceph/Installations/miniconda3/envs/parakeet/lib/python3.9/site-packages/parakeet/command_line/__init__.py", line 232, in export
reader = parakeet.io.open(args.filename)
File "/home/0000-0002-8015-3191/workspace-ceph/Installations/miniconda3/envs/parakeet/lib/python3.9/site-packages/parakeet/io.py", line 786, in open
return Reader.from_file(filename)
File "/home/0000-0002-8015-3191/workspace-ceph/Installations/miniconda3/envs/parakeet/lib/python3.9/site-packages/parakeet/io.py", line 744, in from_file
return Class.from_mrcfile(filename)
File "/home/0000-0002-8015-3191/workspace-ceph/Installations/miniconda3/envs/parakeet/lib/python3.9/site-packages/parakeet/io.py", line 640, in from_mrcfile
assert handle.extended_header.shape[0] == handle.data.shape[0]
AssertionError
So the .mrc created by the parakeet.analyse.correct
is not able to be export to h5 using parakeet.export
Furthermore I wasn’t able to upgrade using
python -m pip install git+https://github.com/rosalindfranklininstitute/amplus-digital-twin.git@master --upgrade
The functions still didn’t work, but I after installing to a fresh virtual environment everything worked except of course from the:
parakeet.export corrected_optics.mrc -o corrected_optics.h5
Hi Dimitrios
I'm glad to hear that things are working. The export to HDF5 is not currently supported for the corrected file because it has 4D data and I haven't implemented how to handle the meta data properly for that case. I will add a new issue with just that feature.
After executing
parakeet.simulate.exit_wave -c config_new.yaml
The following error is printed (the confignew.yaml and sample.h5 are in the attached zip file) [Config&Sample.zip](https://github.com/rosalindfranklininstitute/amplus-digital-twin/files/7617266/Config._Sample.zip) :