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/unittests/ExtractorsUnitTest.cpp

    r6ffdf2 rc93e58  
    8585
    8686  // create charges
    87   Fragment::charges_t charges;
    88   charges += 6., 6., 1., 1., 1.;
     87  Fragment::atomicnumbers_t atomicnumbers;
     88  atomicnumbers += 6, 6, 1, 1, 1;
    8989
    9090  // create distances
    9191  FunctionModel::arguments_t args =
    92       Extractors::gatherAllSymmetricDistances(positions, charges, 0);
     92      Extractors::gatherAllSymmetricDistances(positions, atomicnumbers, 0);
    9393  CPPUNIT_ASSERT_EQUAL( (size_t)(5*4/2), args.size() );
    9494
Note: See TracChangeset for help on using the changeset viewer.