Skip to content

Commit

Permalink
Numpy Versioning/Deprecation Error - Updates for GE HBCD
Browse files Browse the repository at this point in the history
  • Loading branch information
agudmundson committed Sep 12, 2024
1 parent 26ff5f3 commit fb89169
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec2nii/GE/ge_pfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,11 @@ def _process_hbcd(pfile):
new_shape[4] = new_shape[4] // 4 # Closest multiple of 4
new_shape.insert(5, edit_cases) # Include Subscans

lTE_metab_ = np.zeros(new_shape, dtype=np.complex_) # New lTE Metab Array
lTE_metab_[:, :, :, :, :, 0, :] = lTE_metab[:, :, :, :, 0::4, :] # Subscan 1
lTE_metab_[:, :, :, :, :, 1, :] = lTE_metab[:, :, :, :, 1::4, :] # Subscan 2
lTE_metab_[:, :, :, :, :, 2, :] = lTE_metab[:, :, :, :, 2::4, :] # Subscan 3
lTE_metab_[:, :, :, :, :, 3, :] = lTE_metab[:, :, :, :, 3::4, :] # Subscan 4
lTE_metab_ = np.zeros(new_shape, dtype=np.complex128) # New lTE Metab Array
lTE_metab_[:, :, :, :, :, 0, :] = lTE_metab[:, :, :, :, 0::4, :] # Subscan 1
lTE_metab_[:, :, :, :, :, 1, :] = lTE_metab[:, :, :, :, 1::4, :] # Subscan 2
lTE_metab_[:, :, :, :, :, 2, :] = lTE_metab[:, :, :, :, 2::4, :] # Subscan 3
lTE_metab_[:, :, :, :, :, 3, :] = lTE_metab[:, :, :, :, 3::4, :] # Subscan 4
lTE_metab = lTE_metab_ # With Subscan Dim

lTE_metab_meta = _populate_metadata(pfile, water_suppressed=True) # Acquisition Information
Expand Down

0 comments on commit fb89169

Please sign in to comment.