Skip to content

Commit

Permalink
Merge pull request #95 from kmjohnson3/bugfixes
Browse files Browse the repository at this point in the history
Fix casting for complex GE RF
  • Loading branch information
sidward committed Aug 30, 2021
2 parents 15343d6 + d6199e9 commit 9c4723d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sigpy/mri/rf/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ def signa(wav, filename, scale=-1):
fid = open(filename + '.r', 'wb')

for x in np.nditer(wav):
fid.write(struct.pack('>h', np.real(x)))
fid.write(struct.pack('>h', int(np.real(x))))

fid.close()

fid = open(filename + '.i', 'wb')

for x in np.nditer(wav):
fid.write(struct.pack('>h', np.imag(x)))
fid.write(struct.pack('>h', int(np.imag(x))))

fid.close()

Expand Down

0 comments on commit 9c4723d

Please sign in to comment.