Commit 3976c5c6 authored by alexander.dornheim's avatar alexander.dornheim
Browse files

Use loadmat instead of loadtxt in Goettingen_data_processor

parent 9e9d77b7
from pathlib import Path
import numpy as np
from scipy.io import loadmat
def Goettingen_data_processor(config):
# Parameters of the forward problem
......@@ -32,11 +34,11 @@ def Goettingen_data_processor(config):
# parameters see below
# empty waveguide (WG) beam
WG = np.loadtxt('../InputData/Phase/WG_beam.mat')
WG = loadmat('../InputData/Phase/WG_beam.mat')
# hologram
print('Loading data hologram_not-normalized.mat')
I_exp = np.loadtxt('../InputData/Phase/hologram_not-normalized.mat')
I_exp = loadmat('../InputData/Phase/hologram_not-normalized.mat')
I_exp[np.isnan(I_exp)] = 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment