mirror of
https://github.com/c-sooyoung/bo-ptycho.git
synced 2026-09-17 22:29:07 +09:00
test
This commit is contained in:
+22
-13
@@ -2,28 +2,29 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": 17,
|
||||
"id": "5c8aa3fd",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from scipy.io import loadmat as scipy_loadmat\n",
|
||||
"from mat73 import loadmat as mat73_loadmat"
|
||||
"from mat73 import loadmat as mat73_loadmat\n",
|
||||
"import numpy as np"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"execution_count": 2,
|
||||
"id": "1d3c8601",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'/mnt/ptycho_data_share/Si_project/wrapper/utilities'"
|
||||
"'/home/swim/bo-ptycho/notebooks'"
|
||||
]
|
||||
},
|
||||
"execution_count": 5,
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@@ -34,17 +35,17 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"execution_count": 5,
|
||||
"id": "4a419040",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"f = \"../results/fold_slice/1/roi0_Ndp64/MLs_L1_p1_g128_Ndp192_Ns20_dz8.6391_reg0.1/Niter10.mat\""
|
||||
"f = \"/home/swim/Si_project/Si8V2_full/roi1_Ndp256/MLs_L1_p1_g64_Ndp192_pc1_noModel_Ns23_dz14.6087_reg0.2/Niter1000.mat\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"execution_count": 6,
|
||||
"id": "405b77b4",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@@ -54,7 +55,7 @@
|
||||
"dict_keys(['__header__', '__version__', '__globals__', 'outputs', 'probe', 'object', 'p', '__function_workspace__'])"
|
||||
]
|
||||
},
|
||||
"execution_count": 9,
|
||||
"execution_count": 6,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@@ -66,23 +67,31 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 25,
|
||||
"id": "8a7b58b2",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"np.float32(35.53711)"
|
||||
"mappingproxy({'object_ROI': (dtype('O'), 0),\n",
|
||||
" 'binning': (dtype('O'), 8),\n",
|
||||
" 'detector': (dtype('O'), 16),\n",
|
||||
" 'dx_spec': (dtype('O'), 24),\n",
|
||||
" 'lambda': (dtype('O'), 32),\n",
|
||||
" 'multi_slice_param': (dtype('O'), 40),\n",
|
||||
" 'obj_init_param': (dtype('O'), 48),\n",
|
||||
" 'init_probe_file': (dtype('O'), 56),\n",
|
||||
" 'normalize_init_probe': (dtype('O'), 64)})"
|
||||
]
|
||||
},
|
||||
"execution_count": 18,
|
||||
"execution_count": 25,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"contents['outputs']['fourier_error_out'][0][0].squeeze()"
|
||||
"contents['p'].dtype.fields"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user