plumed : fixed name clash on attribute

This commit is contained in:
alalazo 2016-08-05 07:49:47 +02:00
parent 15d9fb1879
commit 5362864cc9

View File

@ -58,7 +58,7 @@ class Plumed(Package):
# Dictionary mapping PLUMED versions to the patches it provides # Dictionary mapping PLUMED versions to the patches it provides
# interactively # interactively
patches = { plumed_patches = {
'2.2.3': { '2.2.3': {
'amber-14': '1', 'amber-14': '1',
'gromacs-4.5.7': '2', 'gromacs-4.5.7': '2',
@ -77,7 +77,7 @@ def apply_patch(self, other):
[join_path(self.spec.prefix.bin, 'plumed'), 'patch', '-p'], [join_path(self.spec.prefix.bin, 'plumed'), 'patch', '-p'],
stdin=subprocess.PIPE stdin=subprocess.PIPE
) )
opts = Plumed.patches[str(self.version)] opts = Plumed.plumed_patches[str(self.version)]
search = '{0.name}-{0.version}'.format(other) search = '{0.name}-{0.version}'.format(other)
choice = opts[search] + '\n' choice = opts[search] + '\n'
plumed.stdin.write(choice) plumed.stdin.write(choice)