Skip to content
Snippets Groups Projects
Commit 6a281ade authored by Gareth Tribello's avatar Gareth Tribello
Browse files

Fixed bug that appears if you try to use read in weights for dimensionality reduction

parent 237d8109
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,8 @@ ReadAnalysisFrames::ReadAnalysisFrames( const ActionOptions& ao ):
if( wwstr.size()>0 ) {
log.printf("\n");
wham_pointer = dynamic_cast<bias::ReweightBase*>( weight_vals[0]->getPntrToAction() );
if( !wham_pointer->buildsWeightStore() ) wham_pointer = NULL;
if( !wham_pointer ) wham_pointer = NULL;
else if( !wham_pointer->buildsWeightStore() ) wham_pointer = NULL;
if( wham_pointer && weight_vals.size()!=1 ) error("can only extract weights from one wham object");
} else log.printf(" weights are all equal to one\n");
requestArguments( arg );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment