mirror of
https://github.com/c-sooyoung/lemon-sandbox.git
synced 2026-09-17 19:59:07 +09:00
4.0 KiB
4.0 KiB
In [1]:
from scipy.io import loadmat as scipy_loadmat
from mat73 import loadmat as mat73_loadmat
import numpy as npIn [ ]:
# fold_slice output
f = "/home/swim/shared/Si_project/Si8V2_full/roi1_Ndp256/MLs_L1_p1_g64_Ndp192_pc1_noModel_Ns23_dz14.6087_reg0.2/Niter1000.mat"
contents = scipy_loadmat(f)
print([key for key in contents.keys() if not key.startswith('__')])['outputs', 'probe', 'object', 'p']
In [27]:
contents['outputs'].dtype.fieldsOut [27]:
mappingproxy({'reconstruct_ind': (dtype('O'), 0),
'background': (dtype('O'), 8),
'intensity_corr': (dtype('O'), 16),
'probe_fourier_shift': (dtype('O'), 24),
'rotation': (dtype('O'), 32),
'shear': (dtype('O'), 40),
'relative_pixel_scale': (dtype('O'), 48),
'diffraction_deform_matrix': (dtype('O'), 56),
'pixel_size': (dtype('O'), 64),
'Np_p': (dtype('O'), 72),
'probe': (dtype('O'), 80),
'probe_support': (dtype('O'), 88),
'probe_support_fft': (dtype('O'), 96),
'object': (dtype('O'), 104),
'probe_positions_0': (dtype('O'), 112),
'probe_positions': (dtype('O'), 120),
'Np_o': (dtype('O'), 128),
'Npos': (dtype('O'), 136),
'affine_matrix': (dtype('O'), 144),
'noise': (dtype('O'), 152),
'diffraction': (dtype('O'), 160),
'mask': (dtype('O'), 168),
'filename': (dtype('O'), 176),
'path': (dtype('O'), 184),
'z_distance': (dtype('O'), 192),
'lambda': (dtype('O'), 200),
'diff_pattern_blur': (dtype('O'), 208),
'modes': (dtype('O'), 216),
'probe_evolution': (dtype('O'), 224),
'affine_matrix_fit': (dtype('O'), 232),
'fourier_error_out': (dtype('O'), 240),
'fourier_error_dp': (dtype('O'), 248),
'probe_positions_model': (dtype('O'), 256),
'affine_matrix_init': (dtype('O'), 264),
'probe_positions_weight': (dtype('O'), 272),
'detector_rotation': (dtype('O'), 280),
'detector_scale': (dtype('O'), 288),
'asymmetry': (dtype('O'), 296),
'avgTimePerIter': (dtype('O'), 304),
'fourier_error_threshold': (dtype('O'), 312)})