├── .gitignore ├── README.md ├── docs └── Makefile ├── ptychoSampling ├── __init__.py ├── detector.py ├── farfield │ ├── __init__.py │ ├── analysis_scripts │ │ ├── __init__.py │ │ ├── adam_analysis_utils.py │ │ ├── analysis_utils.py │ │ ├── combined_analysis_utils.py │ │ ├── curveball_analysis_utils.py │ │ ├── latex_output_utils.py │ │ ├── lines_keys.py │ │ ├── plot_params.py │ │ └── plot_utils.py │ ├── combined_plots │ │ ├── admm_betas.ipynb │ │ ├── combined_cg_tol.ipynb │ │ ├── plot_bpr.ipynb │ │ ├── plot_final_structures_1e3.ipynb │ │ ├── plot_final_structures_1e6.ipynb │ │ ├── plot_spr.ipynb │ │ └── plot_truth_phases.ipynb │ ├── demo │ │ ├── recons_bpr_gaussian.ipynb │ │ ├── recons_spr_gaussian.ipynb │ │ ├── recons_spr_poisson.ipynb │ │ └── simulation.ipynb │ └── run_methods │ │ ├── __init__.py │ │ ├── admm_methods.py │ │ ├── aux_methods.py │ │ ├── epie_methods.py │ │ ├── joint_recons_methods.py │ │ ├── params.py │ │ ├── recons_methods.py │ │ ├── sim_methods.py │ │ └── utils.py ├── grid.py ├── logger.py ├── obj.py ├── probe.py ├── ptycho.py ├── readme.md ├── reconstruction │ ├── __init__.py │ ├── aux_var_fwd_model_t.py │ ├── datalogs_t.py │ ├── forwardmodel_t.py │ ├── lossfn_t.py │ ├── optimization_t.py │ ├── options.py │ ├── recons.py │ ├── utils │ │ ├── optimizers │ │ │ ├── __init__.py │ │ │ └── nlcg │ │ │ │ ├── __init__.py │ │ │ │ ├── altopt_tf.py │ │ │ │ └── ncg_core_tfop.py │ │ └── utils.py │ └── wavefront_t.py ├── scan_data.py ├── scrap.ipynb ├── utils │ ├── __init__.py │ ├── generateCrystalCell3D.py │ ├── register_translation_3d.py │ └── utils.py └── wavefront.py ├── setup.py └── tensorflow_tutorials ├── cell_faceted_2.npy ├── helper.py ├── multi_angle_bragg_ptychography.ipynb ├── ptychography.ipynb ├── ptychography_minibatches.ipynb ├── ptychography_positions_correction.ipynb ├── readme.md └── tensorflow_simple_optimization.ipynb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/README.md -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/docs/Makefile -------------------------------------------------------------------------------- /ptychoSampling/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ptychoSampling/detector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/detector.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ptychoSampling/farfield/analysis_scripts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ptychoSampling/farfield/analysis_scripts/adam_analysis_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/analysis_scripts/adam_analysis_utils.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/analysis_scripts/analysis_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/analysis_scripts/analysis_utils.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/analysis_scripts/combined_analysis_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/analysis_scripts/combined_analysis_utils.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/analysis_scripts/curveball_analysis_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/analysis_scripts/curveball_analysis_utils.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/analysis_scripts/latex_output_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/analysis_scripts/latex_output_utils.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/analysis_scripts/lines_keys.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/analysis_scripts/lines_keys.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/analysis_scripts/plot_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/analysis_scripts/plot_params.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/analysis_scripts/plot_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/analysis_scripts/plot_utils.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/combined_plots/admm_betas.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/combined_plots/admm_betas.ipynb -------------------------------------------------------------------------------- /ptychoSampling/farfield/combined_plots/combined_cg_tol.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/combined_plots/combined_cg_tol.ipynb -------------------------------------------------------------------------------- /ptychoSampling/farfield/combined_plots/plot_bpr.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/combined_plots/plot_bpr.ipynb -------------------------------------------------------------------------------- /ptychoSampling/farfield/combined_plots/plot_final_structures_1e3.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/combined_plots/plot_final_structures_1e3.ipynb -------------------------------------------------------------------------------- /ptychoSampling/farfield/combined_plots/plot_final_structures_1e6.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/combined_plots/plot_final_structures_1e6.ipynb -------------------------------------------------------------------------------- /ptychoSampling/farfield/combined_plots/plot_spr.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/combined_plots/plot_spr.ipynb -------------------------------------------------------------------------------- /ptychoSampling/farfield/combined_plots/plot_truth_phases.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/combined_plots/plot_truth_phases.ipynb -------------------------------------------------------------------------------- /ptychoSampling/farfield/demo/recons_bpr_gaussian.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/demo/recons_bpr_gaussian.ipynb -------------------------------------------------------------------------------- /ptychoSampling/farfield/demo/recons_spr_gaussian.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/demo/recons_spr_gaussian.ipynb -------------------------------------------------------------------------------- /ptychoSampling/farfield/demo/recons_spr_poisson.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/demo/recons_spr_poisson.ipynb -------------------------------------------------------------------------------- /ptychoSampling/farfield/demo/simulation.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/demo/simulation.ipynb -------------------------------------------------------------------------------- /ptychoSampling/farfield/run_methods/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ptychoSampling/farfield/run_methods/admm_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/run_methods/admm_methods.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/run_methods/aux_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/run_methods/aux_methods.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/run_methods/epie_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/run_methods/epie_methods.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/run_methods/joint_recons_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/run_methods/joint_recons_methods.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/run_methods/params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/run_methods/params.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/run_methods/recons_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/run_methods/recons_methods.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/run_methods/sim_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/run_methods/sim_methods.py -------------------------------------------------------------------------------- /ptychoSampling/farfield/run_methods/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/farfield/run_methods/utils.py -------------------------------------------------------------------------------- /ptychoSampling/grid.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/grid.py -------------------------------------------------------------------------------- /ptychoSampling/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/logger.py -------------------------------------------------------------------------------- /ptychoSampling/obj.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/obj.py -------------------------------------------------------------------------------- /ptychoSampling/probe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/probe.py -------------------------------------------------------------------------------- /ptychoSampling/ptycho.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/ptycho.py -------------------------------------------------------------------------------- /ptychoSampling/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/readme.md -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/aux_var_fwd_model_t.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/reconstruction/aux_var_fwd_model_t.py -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/datalogs_t.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/reconstruction/datalogs_t.py -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/forwardmodel_t.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/reconstruction/forwardmodel_t.py -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/lossfn_t.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/reconstruction/lossfn_t.py -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/optimization_t.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/reconstruction/optimization_t.py -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/reconstruction/options.py -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/recons.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/reconstruction/recons.py -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/utils/optimizers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/utils/optimizers/nlcg/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/reconstruction/utils/optimizers/nlcg/__init__.py -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/utils/optimizers/nlcg/altopt_tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/reconstruction/utils/optimizers/nlcg/altopt_tf.py -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/utils/optimizers/nlcg/ncg_core_tfop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/reconstruction/utils/optimizers/nlcg/ncg_core_tfop.py -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/reconstruction/utils/utils.py -------------------------------------------------------------------------------- /ptychoSampling/reconstruction/wavefront_t.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/reconstruction/wavefront_t.py -------------------------------------------------------------------------------- /ptychoSampling/scan_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/scan_data.py -------------------------------------------------------------------------------- /ptychoSampling/scrap.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/scrap.ipynb -------------------------------------------------------------------------------- /ptychoSampling/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ptychoSampling/utils/generateCrystalCell3D.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/utils/generateCrystalCell3D.py -------------------------------------------------------------------------------- /ptychoSampling/utils/register_translation_3d.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/utils/register_translation_3d.py -------------------------------------------------------------------------------- /ptychoSampling/utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/utils/utils.py -------------------------------------------------------------------------------- /ptychoSampling/wavefront.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/ptychoSampling/wavefront.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/setup.py -------------------------------------------------------------------------------- /tensorflow_tutorials/cell_faceted_2.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/tensorflow_tutorials/cell_faceted_2.npy -------------------------------------------------------------------------------- /tensorflow_tutorials/helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/tensorflow_tutorials/helper.py -------------------------------------------------------------------------------- /tensorflow_tutorials/multi_angle_bragg_ptychography.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/tensorflow_tutorials/multi_angle_bragg_ptychography.ipynb -------------------------------------------------------------------------------- /tensorflow_tutorials/ptychography.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/tensorflow_tutorials/ptychography.ipynb -------------------------------------------------------------------------------- /tensorflow_tutorials/ptychography_minibatches.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/tensorflow_tutorials/ptychography_minibatches.ipynb -------------------------------------------------------------------------------- /tensorflow_tutorials/ptychography_positions_correction.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/tensorflow_tutorials/ptychography_positions_correction.ipynb -------------------------------------------------------------------------------- /tensorflow_tutorials/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/tensorflow_tutorials/readme.md -------------------------------------------------------------------------------- /tensorflow_tutorials/tensorflow_simple_optimization.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saugatkandel/ptychoSampling/HEAD/tensorflow_tutorials/tensorflow_simple_optimization.ipynb --------------------------------------------------------------------------------