Compare commits

..
2 Commits
Author SHA1 Message Date
swim 1134926369 moved notebooks from bo-ptycho to here 2026-08-16 03:02:21 +09:00
swim b19ce33092 removed dates from directory names 2026-08-16 02:35:23 +09:00
8 changed files with 324 additions and 486 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+121
View File
@@ -0,0 +1,121 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "5c8aa3fd",
"metadata": {},
"outputs": [],
"source": [
"from scipy.io import loadmat as scipy_loadmat\n",
"from mat73 import loadmat as mat73_loadmat\n",
"import numpy as np"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4a419040",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['outputs', 'probe', 'object', 'p']"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# fold_slice output\n",
"f = \"/home/swim/shared/Si_project/Si8V2_full/roi1_Ndp256/MLs_L1_p1_g64_Ndp192_pc1_noModel_Ns23_dz14.6087_reg0.2/Niter1000.mat\"\n",
"contents = scipy_loadmat(f)\n",
"print([key for key in contents.keys() if not key.startswith('__')])"
]
},
{
"cell_type": "code",
"execution_count": 27,
"id": "8a7b58b2",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"mappingproxy({'reconstruct_ind': (dtype('O'), 0),\n",
" 'background': (dtype('O'), 8),\n",
" 'intensity_corr': (dtype('O'), 16),\n",
" 'probe_fourier_shift': (dtype('O'), 24),\n",
" 'rotation': (dtype('O'), 32),\n",
" 'shear': (dtype('O'), 40),\n",
" 'relative_pixel_scale': (dtype('O'), 48),\n",
" 'diffraction_deform_matrix': (dtype('O'), 56),\n",
" 'pixel_size': (dtype('O'), 64),\n",
" 'Np_p': (dtype('O'), 72),\n",
" 'probe': (dtype('O'), 80),\n",
" 'probe_support': (dtype('O'), 88),\n",
" 'probe_support_fft': (dtype('O'), 96),\n",
" 'object': (dtype('O'), 104),\n",
" 'probe_positions_0': (dtype('O'), 112),\n",
" 'probe_positions': (dtype('O'), 120),\n",
" 'Np_o': (dtype('O'), 128),\n",
" 'Npos': (dtype('O'), 136),\n",
" 'affine_matrix': (dtype('O'), 144),\n",
" 'noise': (dtype('O'), 152),\n",
" 'diffraction': (dtype('O'), 160),\n",
" 'mask': (dtype('O'), 168),\n",
" 'filename': (dtype('O'), 176),\n",
" 'path': (dtype('O'), 184),\n",
" 'z_distance': (dtype('O'), 192),\n",
" 'lambda': (dtype('O'), 200),\n",
" 'diff_pattern_blur': (dtype('O'), 208),\n",
" 'modes': (dtype('O'), 216),\n",
" 'probe_evolution': (dtype('O'), 224),\n",
" 'affine_matrix_fit': (dtype('O'), 232),\n",
" 'fourier_error_out': (dtype('O'), 240),\n",
" 'fourier_error_dp': (dtype('O'), 248),\n",
" 'probe_positions_model': (dtype('O'), 256),\n",
" 'affine_matrix_init': (dtype('O'), 264),\n",
" 'probe_positions_weight': (dtype('O'), 272),\n",
" 'detector_rotation': (dtype('O'), 280),\n",
" 'detector_scale': (dtype('O'), 288),\n",
" 'asymmetry': (dtype('O'), 296),\n",
" 'avgTimePerIter': (dtype('O'), 304),\n",
" 'fourier_error_threshold': (dtype('O'), 312)})"
]
},
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"contents['outputs'].dtype.fields"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "lemon",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
File diff suppressed because one or more lines are too long