ttadano / alamode

Ab initio simulator for thermal transport and lattice anharmonicity
http://sourceforge.net/projects/alamode
MIT License
132 stars 53 forks source link

`np.int` was a deprecated alias #167

Closed nim-hrkn closed 4 months ago

nim-hrkn commented 5 months ago

I use numpy 1.26.3.

tools/interface/LAMMPS.py use np.int. It doesn't work. np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information.

ttadano commented 4 months ago

Thank you for letting me know this. I've fixed it.