Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/register-dois' into new-manual
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Aneurin Tribello authored and Gareth Aneurin Tribello committed Oct 18, 2024
2 parents 14caa86 + c3c14e8 commit 565eb95
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/adjmat/AdjacencyMatrixBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ void AdjacencyMatrixBase::registerKeywords( Keywords& keys ) {
keys.addOutputComponent("y","COMPONENTS","matrix","the projection of the bond on the y axis");
keys.addOutputComponent("z","COMPONENTS","matrix","the projection of the bond on the z axis");
keys.setValueDescription("matrix","a matrix containing the weights for the bonds between each pair of atoms");
keys.addDOI("https://doi.org/10.1021/acs.jctc.6b01073");
}

AdjacencyMatrixBase::AdjacencyMatrixBase(const ActionOptions& ao):
Expand Down
8 changes: 8 additions & 0 deletions src/cltools/GenJson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ int GenJson::main(FILE* in, FILE*out,Communicator& pc) {
// Now output keyword information
Keywords keys; actionRegister().getKeywords( action_names[i], keys );
std::cout<<" \"displayname\" : \""<<keys.getDisplayName()<<"\",\n";
//
std::cout<<" \"dois\" : [";
unsigned ndoi = keys.getDOIList().size();
if( ndoi>0 ) {
std::cout<<"\"" + keys.getDOIList()[0] + "\"";
for(unsigned j=1; j<ndoi; ++j) std::cout<<", \"" + keys.getDOIList()[j] + "\"";
}
std::cout<<"],\n";
std::cout<<" \"syntax\" : {"<<std::endl;
for(unsigned j=0; j<keys.size(); ++j) {
std::string defa = "", desc = keys.getKeywordDescription( keys.getKeyword(j) );
Expand Down
1 change: 1 addition & 0 deletions src/clusters/ClusteringBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ namespace clusters {
void ClusteringBase::registerKeywords( Keywords& keys ) {
matrixtools::MatrixOperationBase::registerKeywords( keys );
keys.setValueDescription("vector","vector with length that is equal to the number of rows in the input matrix. Elements of this vector are equal to the cluster that each node is a part of");
keys.addDOI("https://doi.org/10.1021/acs.jctc.6b01073");
}

ClusteringBase::ClusteringBase(const ActionOptions&ao):
Expand Down
8 changes: 8 additions & 0 deletions src/tools/Keywords.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -776,4 +776,12 @@ std::string Keywords::getDisplayName() const {
return thisactname;
}

void Keywords::addDOI( const std::string& doi ) {
doilist.push_back( doi );
}

const std::vector<std::string>& Keywords::getDOIList() const {
return doilist;
}

}
6 changes: 6 additions & 0 deletions src/tools/Keywords.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ class Keywords {
std::vector<std::string> neededActions;
/// List of suffixes that can be used with this action
std::vector<std::string> actionNameSuffixes;
/// List of doi's that should appear in the manual
std::vector<std::string> doilist;
/// Print the documentation for the jth keyword in html
void print_html_item( const std::string& ) const;
public:
Expand Down Expand Up @@ -217,6 +219,10 @@ class Keywords {
std::string getDisplayName() const ;
/// Set the display name
void setDisplayName( const std::string& name );
/// Add a DOI to the list in the manual page for this action
void addDOI( const std::string& doi );
/// Get the list of DOI
const std::vector<std::string>& getDOIList() const ;
};

}
Expand Down

1 comment on commit 565eb95

@PlumedBot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found broken examples in automatic/ANGLES.tmp
Found broken examples in automatic/ANN.tmp
Found broken examples in automatic/CAVITY.tmp
Found broken examples in automatic/CLASSICAL_MDS.tmp
Found broken examples in automatic/CLUSTER_DIAMETER.tmp
Found broken examples in automatic/CLUSTER_DISTRIBUTION.tmp
Found broken examples in automatic/CLUSTER_PROPERTIES.tmp
Found broken examples in automatic/CONSTANT.tmp
Found broken examples in automatic/CONVERT_TO_FES.tmp
Found broken examples in automatic/COORDINATIONNUMBER.tmp
Found broken examples in automatic/DFSCLUSTERING.tmp
Found broken examples in automatic/DISTANCE_FROM_CONTOUR.tmp
Found broken examples in automatic/DUMPCUBE.tmp
Found broken examples in automatic/DUMPGRID.tmp
Found broken examples in automatic/EDS.tmp
Found broken examples in automatic/EMMI.tmp
Found broken examples in automatic/ENVIRONMENTSIMILARITY.tmp
Found broken examples in automatic/FIND_CONTOUR.tmp
Found broken examples in automatic/FIND_CONTOUR_SURFACE.tmp
Found broken examples in automatic/FIND_SPHERICAL_CONTOUR.tmp
Found broken examples in automatic/FOURIER_TRANSFORM.tmp
Found broken examples in automatic/FUNCPATHGENERAL.tmp
Found broken examples in automatic/FUNCPATHMSD.tmp
Found broken examples in automatic/FUNNEL.tmp
Found broken examples in automatic/FUNNEL_PS.tmp
Found broken examples in automatic/GHBFIX.tmp
Found broken examples in automatic/GPROPERTYMAP.tmp
Found broken examples in automatic/HISTOGRAM.tmp
Found broken examples in automatic/INCLUDE.tmp
Found broken examples in automatic/INCYLINDER.tmp
Found broken examples in automatic/INENVELOPE.tmp
Found broken examples in automatic/INTERPOLATE_GRID.tmp
Found broken examples in automatic/LOCAL_AVERAGE.tmp
Found broken examples in automatic/MAZE_OPTIMIZER_BIAS.tmp
Found broken examples in automatic/MAZE_RANDOM_ACCELERATION_MD.tmp
Found broken examples in automatic/MAZE_SIMULATED_ANNEALING.tmp
Found broken examples in automatic/MAZE_STEERED_MD.tmp
Found broken examples in automatic/METATENSOR.tmp
Found broken examples in automatic/MULTICOLVARDENS.tmp
Found broken examples in automatic/OUTPUT_CLUSTER.tmp
Found broken examples in automatic/PAMM.tmp
Found broken examples in automatic/PCA.tmp
Found broken examples in automatic/PCAVARS.tmp
Found broken examples in automatic/PIV.tmp
Found broken examples in automatic/PLUMED.tmp
Found broken examples in automatic/PYCVINTERFACE.tmp
Found broken examples in automatic/PYTHONFUNCTION.tmp
Found broken examples in automatic/Q3.tmp
Found broken examples in automatic/Q4.tmp
Found broken examples in automatic/Q6.tmp
Found broken examples in automatic/QUATERNION.tmp
Found broken examples in automatic/REWEIGHT_BIAS.tmp
Found broken examples in automatic/REWEIGHT_METAD.tmp
Found broken examples in automatic/SIZESHAPE_POSITION_LINEAR_PROJ.tmp
Found broken examples in automatic/SIZESHAPE_POSITION_MAHA_DIST.tmp
Found broken examples in automatic/SPRINT.tmp
Found broken examples in automatic/TETRAHEDRALPORE.tmp
Found broken examples in automatic/TORSIONS.tmp
Found broken examples in automatic/WHAM_HISTOGRAM.tmp
Found broken examples in automatic/WHAM_WEIGHTS.tmp
Found broken examples in AnalysisPP.md
Found broken examples in CollectiveVariablesPP.md
Found broken examples in MiscelaneousPP.md

Please sign in to comment.