Skip to content

Commit

Permalink
Update PhaseRecovery.py
Browse files Browse the repository at this point in the history
added data=list(np.float64(data))
changed np.asfarray to np.asarray
  • Loading branch information
FredvanGoor committed Aug 5, 2024
1 parent 8436e8f commit f0ae2f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Examples/PhaseRecovery/PhaseRecovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
lines=f.readlines()
f.close()
data = [line.split() for line in lines]
Inear = np.asfarray(data)
data=list(np.float64(data))
Inear = np.asarray(data)

f=open('Ifar.prn','r')
lines=f.readlines()
f.close()
data = [line.split() for line in lines]
Ifar = np.asfarray(data)
data=list(np.float64(data))
Ifar = np.asarray(data)

N=len(Inear)
N_new=256;size_new=40*mm;
Expand Down

0 comments on commit f0ae2f0

Please sign in to comment.