@@ -380,7 +380,7 @@ def test_mismatched_atom_composition(self):
380
380
mol_matcher = HungarianOrderMatcher (mol1 )
381
381
382
382
with pytest .raises (ValueError , match = "The number of the same species aren't matching" ):
383
- _ , rmsd = mol_matcher .fit (mol2 )
383
+ mol_matcher .fit (mol2 )
384
384
385
385
def test_fit (self ):
386
386
mol1 = Molecule .from_file (f"{ test_dir } /benzene1.xyz" )
@@ -485,7 +485,7 @@ def test_mismatched_atom_composition(self):
485
485
mol_matcher = GeneticOrderMatcher (mol1 , threshold = 0.3 )
486
486
487
487
with pytest .raises (ValueError , match = "The number of the same species aren't matching" ):
488
- _ , rmsd = mol_matcher .fit (mol2 )[0 ]
488
+ mol_matcher .fit (mol2 )[0 ]
489
489
490
490
def test_fit (self ):
491
491
mol1 = Molecule .from_file (f"{ test_dir } /benzene1.xyz" )
@@ -562,7 +562,7 @@ def test_mismatched_atoms(self):
562
562
with pytest .raises (
563
563
ValueError , match = "The order of the species aren't matching! Please try using PermInvMatcher"
564
564
):
565
- _ , rmsd = self .mol_matcher .fit (mol2 )
565
+ self .mol_matcher .fit (mol2 )
566
566
567
567
def test_rotated_molecule (self ):
568
568
mol2 = Molecule .from_file (f"{ test_dir } /Si_cluster_rotated.xyz" )
@@ -600,7 +600,7 @@ def test_random_match(self):
600
600
ValueError ,
601
601
match = "The number of all possible permutations \\ (20922789888000\\ ) is not feasible to run this method" ,
602
602
):
603
- _ , rmsd = self .mol_matcher .fit (mol2 )
603
+ self .mol_matcher .fit (mol2 )
604
604
605
605
606
606
class TestHungarianOrderMatcherSi (unittest .TestCase ):
@@ -617,7 +617,7 @@ def test_to_and_from_dict(self):
617
617
def test_mismatched_atoms (self ):
618
618
mol2 = Molecule .from_file (f"{ test_dir } /Si2O_cluster_rotated.xyz" )
619
619
with pytest .raises (ValueError , match = "The number of the same species aren't matching" ):
620
- _ , rmsd = self .mol_matcher .fit (mol2 )
620
+ self .mol_matcher .fit (mol2 )
621
621
622
622
def test_rotated_molecule (self ):
623
623
# TODO: Checking the cause of the large deviation
@@ -690,7 +690,7 @@ def test_mismatched_atoms(self):
690
690
with pytest .raises (
691
691
ValueError , match = "The order of the species aren't matching! Please try using PermInvMatcher"
692
692
):
693
- _ , rmsd = self .mol_matcher .fit (mol2 )
693
+ self .mol_matcher .fit (mol2 )
694
694
695
695
def test_rotated_molecule (self ):
696
696
mol2 = Molecule .from_file (f"{ test_dir } /Si2O_cluster_rotated.xyz" )
@@ -709,7 +709,7 @@ def test_permuted_atoms_order(self):
709
709
with pytest .raises (
710
710
ValueError , match = "The order of the species aren't matching! Please try using PermInvMatcher"
711
711
):
712
- _ , rmsd = self .mol_matcher .fit (mol2 )
712
+ self .mol_matcher .fit (mol2 )
713
713
714
714
715
715
class TestBruteForceOrderMatcherSi2O (unittest .TestCase ):
@@ -721,7 +721,7 @@ def setUpClass(cls):
721
721
def test_mismatched_atoms (self ):
722
722
mol2 = Molecule .from_file (f"{ test_dir } /Si_cluster_rotated.xyz" )
723
723
with pytest .raises (ValueError , match = "The number of the same species aren't matching" ):
724
- _ , rmsd = self .mol_matcher .fit (mol2 )
724
+ self .mol_matcher .fit (mol2 )
725
725
726
726
def test_rotated_molecule (self ):
727
727
mol2 = Molecule .from_file (f"{ test_dir } /Si2O_cluster_rotated.xyz" )
@@ -753,7 +753,7 @@ def setUpClass(cls):
753
753
def test_mismatched_atoms (self ):
754
754
mol2 = Molecule .from_file (f"{ test_dir } /Si_cluster_rotated.xyz" )
755
755
with pytest .raises (ValueError , match = "The number of the same species aren't matching" ):
756
- _ , rmsd = self .mol_matcher .fit (mol2 )
756
+ self .mol_matcher .fit (mol2 )
757
757
758
758
def test_rotated_molecule (self ):
759
759
mol2 = Molecule .from_file (f"{ test_dir } /Si2O_cluster_rotated.xyz" )
0 commit comments