Skip to content

Commit d7acce2

Browse files
committed
Remove / from augmented InChIKey.
These are used as filenames and having slashes in is bad. Maybe a dash would look nice, but this way (nothing) is consistent with the RMG-Java implementation, which should help future interactions such as sharing gaussian files (if that ever becomes feasible).
1 parent 7460173 commit d7acce2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

rmgpy/molecule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ def toAugmentedInChIKey(self):
10771077
radicalNumber = sum([i.radicalElectrons for i in self.atoms])
10781078

10791079
if radicalNumber >= 2:
1080-
return key+'/mult'+str(radicalNumber+1)
1080+
return key+'mult'+str(radicalNumber+1)
10811081
else:
10821082
return key
10831083

unittest/moleculeTest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,14 +894,14 @@ def testAugmentedInChI(self):
894894

895895
def testAugmentedInChIKey(self):
896896
"""
897-
Test that Augmented InChI Key generation is printing the /mult layer
897+
Test that Augmented InChI Key generation is printing the mult layer
898898
"""
899899
mol = Molecule().fromAdjacencyList("""
900900
1 C 1 {2,S}
901901
2 C 1 {1,S}
902902
""")
903903

904-
self.assertEqual(mol.toAugmentedInChIKey(), 'VGGSQFUCUMXWEO-UHFFFAOYSA/mult3')
904+
self.assertEqual(mol.toAugmentedInChIKey(), 'VGGSQFUCUMXWEO-UHFFFAOYSAmult3')
905905
################################################################################
906906

907907
class TestMoleculeSymmetry(unittest.TestCase):

0 commit comments

Comments
 (0)