Skip to content

Commit

Permalink
Update convert_h5_to_aps.py
Browse files Browse the repository at this point in the history
h5 syntax is being depricated
  • Loading branch information
matthewware committed Jun 9, 2020
1 parent a690d91 commit 9b34faa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/convert_h5_to_aps.py
Expand Up @@ -66,9 +66,9 @@ def read_aps2_from_h5(fileName):
data["instrument"] = FID['/'].attrs['target hardware']
data["file_version"] = FID["/"].attrs["Version"]
data["fw_version"] = FID['/'].attrs['minimum firmware version']
data["chan1"] = FID['/chan_1/waveforms'].value.flatten()
data["chan2"] = FID['/chan_2/waveforms'].value.flatten()
data["instructions"] = FID['/chan_1/instructions'].value.flatten()
data["chan1"] = FID['/chan_1/waveforms'][()].flatten()
data["chan2"] = FID['/chan_2/waveforms'][()].flatten()
data["instructions"] = FID['/chan_1/instructions'][()].flatten()
return data

def read_aps1_from_h5(fileName):
Expand Down

0 comments on commit 9b34faa

Please sign in to comment.