DislocationAnalysis.length.1/3<001>

Quote from Huang Qi on October 17, 2019, 1:31 pmDislocationAnalysis.length.1/n<ijk> indicates the length of dislocations broken down by Burgers vector type.
DislocationAnalysis.length.1/6<112> means shockley dislocation.
DislocationAnalysis.length.1/3<111> means frank dislocation.
But I can't get hirth dislocation.
When I put 'data.attributes['DislocationAnalysis.length.1/3<001>']', It returns 'KeyError: "DataCollection contains no attribute named 'DislocationAnalysis.length.1/3<001>'."'
DislocationAnalysis.length.1/n<ijk> indicates the length of dislocations broken down by Burgers vector type.
DislocationAnalysis.length.1/6<112> means shockley dislocation.
DislocationAnalysis.length.1/3<111> means frank dislocation.
But I can't get hirth dislocation.
When I put 'data.attributes['DislocationAnalysis.length.1/3<001>']', It returns 'KeyError: "DataCollection contains no attribute named 'DislocationAnalysis.length.1/3<001>'."'

Quote from Constanze Kalcher on October 17, 2019, 1:50 pmHi,
that's because the global attribute is called 'DislocationAnalysis.length.1/3<100>' not 'DislocationAnalysis.length.1/3<001>'.
You can look up the names of your global attributes by opening the Data inspector panel in the GUI, or in a script by adding the following:def modify(frame, data): for attribute in data.attributes: print(attribute)Hope that helps,
Constanze
Hi,
that's because the global attribute is called 'DislocationAnalysis.length.1/3<100>' not 'DislocationAnalysis.length.1/3<001>'.
You can look up the names of your global attributes by opening the Data inspector panel in the GUI, or in a script by adding the following:
def modify(frame, data): for attribute in data.attributes: print(attribute)
Hope that helps,
Constanze

Quote from Huang Qi on October 19, 2019, 5:07 pmOK, I got it!
Thanks!
OK, I got it!
Thanks!
新的OVITO微信频道!
New for our users in China: OVITO on WeChat
Official OVITO WeChat channel operated by Foshan Diesi Technology Co., Ltd.
