Ignore:
Timestamp:
Apr 23, 2021, 8:55:19 PM (5 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
5196ca
Parents:
9171d8
git-author:
Frederik Heber <frederik.heber@…> (03/28/21 11:47:07)
git-committer:
Frederik Heber <frederik.heber@…> (04/23/21 20:55:19)
Message:

ParseHomologies action lists values and their energy range per key.

  • i.e. we get how many values are stored per homology graph.
  • DOCU: Added note in userguide.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/GraphAction/ChemicalSpaceEvaluatorAction.cpp

    r9171d8 rff2c52  
    299299}
    300300
    301 
    302 bool compareEnergyContribution(
    303       const std::pair<const HomologyGraph, HomologyContainer::value_t> &a,
    304       const std::pair<const HomologyGraph, HomologyContainer::value_t> &b) {
    305   return a.second.energy < b.second.energy;
    306 }
    307 
    308301ActionState::ptr GraphChemicalSpaceEvaluatorAction::performCall() {
    309302  /// 1. create boost::graph from graph6 string
     
    538531        // list lowest energy
    539532        const HomologyContainer::const_iterator lowest_contribution_graph =
    540             std::min_element(range.first, range.second, compareEnergyContribution);
     533            std::min_element(range.first, range.second, HomologyContainer::compareEnergyContribution);
    541534        const HomologyContainer::const_iterator highest_contribution_graph =
    542             std::max_element(range.first, range.second, compareEnergyContribution);
     535            std::max_element(range.first, range.second, HomologyContainer::compareEnergyContribution);
    543536        LOG(2, "INFO: Fragment graph " << nodes_graph << " has energy contributions from "
    544537            << lowest_contribution_graph->second.energy << " Ht till "
Note: See TracChangeset for help on using the changeset viewer.