Giter Club home page Giter Club logo

ptychography's Introduction

Addtional notes about the codes on electron ptychography 2020/02/22 Dr. Zhen Chen, Prof. David A. Muller Group, Cornell University



To run reconstruction, run the main drive script: ptychography_clean_drive.m. Before doing this, please refer to the notes below:

  1. Download the ptychography package from PSI (http://www.psi.ch/sls/csaxs/software).

  2. Replace the Data.m script by the new one from this deposit. Also put all the scripts given here to the same folder as the ptychogrpahy package.

  3. Read README.md for details about the algorithms and settings from PSI's package.

  4. Experimental data (supple. Fig. 4 in the manuscript) is assumed to be put in the same folder as the main folder of the codes with the path: .\rawdata_21\rawdata_1x_crop.mat You need to change the drive script accordingly if you put the data somewhere else.

  5. Look into the script ptychography_clean_drive.m and check / modify parameters.

  6. Important parameters are parameters for data related and some of the reconstruction ones.

  7. For the example dataset and using the default parameters (300 iterations with 128 x 128 pixels for each diffraction), it will take less than 10 minutes on a decent GPU card (memory > 1 GB) and about two hours on CPU. It is the top-left corner and only about contains 1/4 diffractoins.

    if no computational GPU card is available, please changes to use CPU: param.use_gpu = false; % use GPU

  8. The outputs are in a folder defined by variable 'dir_base' within data folder and the phase image is under name: MLs_backgroundremove_final_crop_phase.png All input parameters are stored in sample_pty_inputs.mat Clean reconstructions are in MLs_backgroundremove_final_crop_data.mat raw reconstructions are in sample_pty_refine_outputs.mat

  9. There is an error when using multiple probe modes (param.Nprobes>1). For a quick fix, replace line 306 with "self.probe{ll} = apply_probe_contraints(self.probe{ll}, self.modes{min(ll,end)});" in LSQML-code/+engines/LSQML.m



License agreements

The main ptychography toolkit developed at Paul Scherrer Institut, Switzerland is available at www.psi.ch/sls/csaxs/software Copyright and license issues should follow the agreements in their codes and/or refer to their website.


The interface and data handling parts of the codes were writen by Zhen Chen. Details on the data set and collection conditions can be found in "Mixed-state electron ptychography enables sub-angstrom resolution imaging with picometer precision at low dose", Zhen Chen, Michal Odstrcil, Yi Jiang, Yimo Han, Ming-Hui Chiu, Lain-Jong Li, David A. Muller, Nature Communications, 11, 2994 (2020). https://doi.org/10.1038/s41467-020-16688-6

This paper should be cited whenever this code, dataset or their derivatives are used.



Contact information

Zhen Chen ([email protected]) or David A. Muller ([email protected])

ptychography's People

Contributors

david-a-muller avatar yijiang1 avatar zhenchen16 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.