Merge pull request #3021 from RosettaCommons/BYachnin/fix_EnzScore_filter_bug
Fix EnzScore filter bug
A recent refactoring of the EnzScore filter code caused get_ligand_id to be called whenever res_num or pdb_num were not provided. This normally does not pose a problem, but if the pose is too complex for get_ligand_id to work, execution would fail even if whole_pose=1 or cstid was specified (i.e. there is no need to determine resnum because the whole pose is being examine or it is being specified via cstid). This fix causes the get_ligand_id code to be executed only if whole_pose=0, cstid="", and res_num/pdb_num are not provided, resolving the issue.
Failed tests (KIC_with_fragments and rotamer_recovery) are pre-existing and unrelated to this merge.