Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Modules/DynamicalLanczos.py
Original file line number Diff line number Diff line change
Expand Up @@ -3658,12 +3658,12 @@ def save_abc(self, file):
In this way the calculation cannot be restarted.
"""

total_len = len(self.c_coeffs)
total_len = len(self.a_coeffs)

abc = np.zeros( (total_len, 3), dtype = np.double)
abc[:,0] = self.a_coeffs[:total_len]
abc[:,1] = self.b_coeffs
abc[:,2] = self.c_coeffs
abc[:,0] = self.a_coeffs
abc[:len(self.b_coeffs),1] = self.b_coeffs
abc[:len(self.c_coeffs),2] = self.c_coeffs

np.savetxt(file, abc, header = "a; b; c")

Expand Down
Loading