Skip to content

Commit

Permalink
fix compatibility with Numpy>=1.24.2
Browse files Browse the repository at this point in the history
(issue #165, issue #162)
  • Loading branch information
nikolasibalic committed May 15, 2024
1 parent 36b86d1 commit c65573b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions arc/calculations_atom_pairstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,12 @@ def __updateAngularMatrixElementsFile(self):
fileHandle = gzip.GzipFile(
os.path.join(self.dataFolder, self.angularMatrixFile), "wb"
)
np.save(fileHandle, self.savedAngularMatrix_matrix)
np.save(
fileHandle,
np.array(self.savedAngularMatrix_matrix, dtype=object),
)
fileHandle.close()
except IOError as e:
except (IOError, ValueError) as e:
print(
"Error while updating angularMatrix \
data File "
Expand Down

0 comments on commit c65573b

Please sign in to comment.