Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/PotentialAction/FitPotentialAction.def

    r0ea063 r95cfac  
    1818#include "Parameters/Validators/Specific/ElementValidator.hpp"
    1919#include "Parameters/Validators/Specific/EmptyStringValidator.hpp"
     20#include "Parameters/Validators/Specific/FileSuffixValidator.hpp"
     21#include "Parameters/Validators/Specific/FilePresentValidator.hpp"
    2022#include "Parameters/Validators/Specific/PotentialTypeValidator.hpp"
    2123
     
    2325// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    2426// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
    25 #define paramtypes (boost::filesystem::path)(std::string)(std::vector<const element *>)(std::vector<const element *>)(unsigned int)(double)
    26 #define paramtokens ("training-file")("potential-type")("potential-charges")("fragment-charges")("take-best-of")("set-threshold")
    27 #define paramdescriptions ("optional file to write training data to")("potential type to fit")("charges specifying the potential")("charges specifying the fragment")("take the best among this many approximations")("Require L2 error to be smaller than threshold, overrides number of attempts")
    28 #define paramdefaults (PARAM_DEFAULT(""))(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(PARAM_DEFAULT(3))(PARAM_DEFAULT(1.))
    29 #define paramreferences (training_file)(potentialtype)(charges)(fragment)(best_of_howmany)(threshold)
     27#define paramtypes (boost::filesystem::path)(std::string)(boost::filesystem::path)(std::vector<const element *>)(std::vector<const element *>)(unsigned int)(double)
     28#define paramtokens ("training-file")("potential-type")("potential-file")("potential-charges")("fragment-charges")("take-best-of")("set-threshold")
     29#define paramdescriptions ("optional file to write training data to")("potential type to fit")("optional potential file specifying multiple potentials to fit")("charges specifying the potential")("charges specifying the fragment")("take the best among this many approximations")("Require L2 error to be smaller than threshold, overrides number of attempts")
     30#define paramdefaults (PARAM_DEFAULT(""))(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(PARAM_DEFAULT(3))(PARAM_DEFAULT(1.))
     31#define paramreferences (training_file)(potentialtype)(potential_file)(charges)(fragment)(best_of_howmany)(threshold)
    3032#define paramvalids \
    3133(DummyValidator<boost::filesystem::path>()) \
    32 (PotentialTypeValidator()) \
     34(EmptyStringValidator() || PotentialTypeValidator()) \
     35(!FilePresentValidator() || FileSuffixValidator("potentials")) \
    3336(STLVectorValidator< std::vector<const element *> >(0,99, ElementValidator())) \
    3437(STLVectorValidator< std::vector<const element *> >(1,99, ElementValidator())) \
Note: See TracChangeset for help on using the changeset viewer.