evolutionaryscale / esm

Other
1.17k stars 128 forks source link

'ESMProtein' object has no attribute 'structure' #3

Closed ag8 closed 3 months ago

ag8 commented 3 months ago

Hi! I am trying to run the example code, but I am getting the following error:

Traceback (most recent call last):
  line 23, in <module>
    protein.structure = None
    ^^^^^^^^^^^^^^^^^
AttributeError: 'ESMProtein' object has no attribute 'structure'

But since there's no such attribute, it's already None; as such, this line can probably just be removed from the example code, right?

santiag0m commented 3 months ago

Nice catch!

The code should use protein.coordinates = None instead. Pushed the fix here: https://github.com/evolutionaryscale/esm/pull/4