11#include < algorithm>
22
3+ #include " quickdigest5.hpp"
34#include " YamlCheck.H"
45#include " EXPException.H"
56#include " BiorthBasis.H"
@@ -1654,7 +1655,7 @@ namespace BasisClasses
16541655
16551656 // Get the md5sum for requested Python module
16561657 try {
1657- current_md5 = get_md5sum (pyname);
1658+ current_md5 = QuickDigest5::fileToHash (pyname);
16581659 } catch (const std::runtime_error& e) {
16591660 std::cerr << " Error: " << e.what () << std::endl;
16601661 }
@@ -1720,7 +1721,7 @@ namespace BasisClasses
17201721
17211722 // Get the md5sum for requested Python projection module
17221723 try {
1723- current_md5 = get_md5sum (pyproj);
1724+ current_md5 = QuickDigest5::fileToHash (pyproj);
17241725 } catch (const std::runtime_error& e) {
17251726 std::cerr << " Error: " << e.what () << std::endl;
17261727 }
@@ -1933,7 +1934,8 @@ namespace BasisClasses
19331934 // Write the md5sum for the Python module
19341935 if (DTYPE == DiskType::python) {
19351936 try {
1936- std::vector<std::string> pyinfo = {pyname, get_md5sum (pyname)};
1937+ std::string hash = QuickDigest5::fileToHash (pyname);
1938+ std::vector<std::string> pyinfo = {pyname, hash};
19371939 file.createAttribute <std::string>
19381940 (" pythonDiskType" , HighFive::DataSpace::From (pyinfo)).write (pyinfo);
19391941 } catch (const std::runtime_error& e) {
@@ -1954,7 +1956,8 @@ namespace BasisClasses
19541956
19551957 if (PTYPE == DeprojType::python) {
19561958 try {
1957- std::vector<std::string> pyinfo = {pyproj, get_md5sum (pyproj)};
1959+ std::string hash = QuickDigest5::fileToHash (pyproj);
1960+ std::vector<std::string> pyinfo = {pyproj, hash};
19581961 file.createAttribute <std::string>
19591962 (" pythonProjType" ,
19601963 HighFive::DataSpace::From (pyinfo)).write (pyinfo);
0 commit comments