Ignore:
Timestamp:
Oct 2, 2016, 2:03:57 PM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Fix_FitPotential_needs_atomicnumbers
Children:
be20db
Parents:
6ffdf2
Message:

FIX: TrainingData used charges instead of atomic numbers to recognize fragments.

  • this only works if we do not DoSampleValenceOnly. Otherwise charges are no longer directly associable with the atomic number of the nuclei.
  • Extractors::gatherAllSymmetricDistanceArguments now needs atomicnumbers instead of charges.
  • TESTFIX: needed to adapt ExtractorsUnitTest.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/FunctionApproximation/TrainingData.cpp

    r6ffdf2 rc93e58  
    5858  for (HomologyContainer::const_iterator iter = range.first; iter != range.second; ++iter) {
    5959    const Fragment &fragment = iter->second.fragment;
    60     // create internal list of arguments
    6160    FunctionModel::arguments_t all_args = Extractors::gatherAllSymmetricDistances(
    6261        fragment.getPositions(),
    63         fragment.getCharges(),
     62        fragment.getAtomicNumbers(),
    6463        DistanceVector.size()
    6564        );
Note: See TracChangeset for help on using the changeset viewer.