diff options
author | Arnur Nigmetov <nigmetov@tugraz.at> | 2020-06-01 18:10:22 -0700 |
---|---|---|
committer | Arnur Nigmetov <nigmetov@tugraz.at> | 2020-06-01 18:10:22 -0700 |
commit | b73ed1face2c609958556e6f2b7704bbd8aaa263 (patch) | |
tree | 07f4b9890fe97363709a8801761e3b56234e8864 /matching/include/bifiltration.hpp | |
parent | b40c98e1a73e52dda6ed918e3c732fa5b428ee65 (diff) |
Remove spdlog and fmt from matching distance code.
Diffstat (limited to 'matching/include/bifiltration.hpp')
-rw-r--r-- | matching/include/bifiltration.hpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/matching/include/bifiltration.hpp b/matching/include/bifiltration.hpp index 9e2a82e..3d20516 100644 --- a/matching/include/bifiltration.hpp +++ b/matching/include/bifiltration.hpp @@ -18,7 +18,7 @@ namespace md { { std::ifstream ifstr {fname.c_str()}; if (!ifstr.good()) { - std::string error_message = fmt::format("Cannot open file {0}", fname); + std::string error_message = "Cannot open file " + fname; std::cerr << error_message << std::endl; throw std::runtime_error(error_message); } @@ -73,7 +73,6 @@ namespace md { template<class Real> void Bifiltration<Real>::phat_like_format_reader(std::ifstream& ifstr) { - spd::debug("Enter phat_like_format_reader"); // read stream line by line; do not use >> operator std::string s; std::getline(ifstr, s); @@ -89,7 +88,6 @@ namespace md { simplices_.emplace_back(index++, s, BifiltrationFormat::phat_like); } } - spd::debug("Read {} simplices from file", n_simplices); } template<class Real> @@ -105,7 +103,6 @@ namespace md { void Bifiltration<Real>::sanity_check() const { #ifdef DEBUG - spd::debug("Enter Bifiltration<Real>::sanity_check"); // check that boundary has correct number of simplices, // each bounding simplex has correct dim // and appears in the filtration before the simplex it bounds @@ -118,7 +115,6 @@ namespace md { assert(bdry_simplex.position().is_less(s.position(), false)); } } - spd::debug("Exit Bifiltration<Real>::sanity_check"); #endif } @@ -137,11 +133,8 @@ namespace md { // simplices.emplace_back(s); // } - spd::debug("Enter slice diagram, line = {}, simplices.size = {}", line, simplices.size()); - for(auto& simplex : simplices) { Real value = line.weighted_push(simplex.position()); -// spd::debug("in slice_diagram, simplex = {}, value = {}\n", simplex, value); simplex.set_value(value); } @@ -187,8 +180,6 @@ namespace md { } } - spdlog::debug("Exiting slice_diagram, #dgm[0] = {}", dgm.get_diagram(0).size()); - return dgm.get_diagram(dim); } |