lsmo-epfl / aiida-zeopp

AiiDA plugin for zeo++
Other
5 stars 8 forks source link

fix "create-code" utility #35

Closed ltalirz closed 5 years ago

ltalirz commented 5 years ago

can currently end up creating new codes every time see https://github.com/ltalirz/aiida-zeopp/pull/33#issuecomment-535910439

one possibility is that it gets confused if there are already 2 localhost-test around (in which case it cannot retrieve by label anymore)

ltalirz commented 5 years ago

@danieleongari I just tried to reproduce your issue and failed. When there is just zero or one localhost-test computers in the database, the utility seems to work fine.

Perhaps the way you got so many localhost-test computers is by importing databases that contained calculations run on localhost-test computers?

Can you check whether the utility in this case adds a new computer when it' s called? The utility might fail in this case, since I'm just catching the NotExistent exception but I would be surprised if it created new computers... let me know!