Skip to content

Commit

Permalink
[fix] broken FS: np.shape -> len
Browse files Browse the repository at this point in the history
np.shape behaved behavior for inhomogenous list of lists and crashes in
newer versions
  • Loading branch information
the-hampel committed Mar 22, 2024
1 parent 4e5e120 commit 7cc901a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/solid_dmft/postprocessing/plot_correlated_bands.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def get_kx_ky_FS(lower_right, upper_left, origin, Z, tb, select=None, N_kxy=10,

sheet_ct = 0
for sheet in contours.keys():
for sec_per_sheet in range(np.shape(contours[sheet])[0]):
for sec_per_sheet in range(len(contours[sheet])):
# once on 2D cubic mesh
FS_kx_ky[sheet_ct] = np.vstack([_fract_ind_to_val(kx, contours[sheet][sec_per_sheet][:, 0]),
_fract_ind_to_val(ky, contours[sheet][sec_per_sheet][:, 1]),
Expand Down

0 comments on commit 7cc901a

Please sign in to comment.