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 a9fd4ec commit c9259f7
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 @@ -481,7 +481,7 @@ def get_kx_ky_FS(lower_right, upper_left, Z, tb, select=None, N_kxy=10, kz=0.0,

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 c9259f7

Please sign in to comment.