Forum Navigation
You need to log in to create posts and topics.

Trouble with File Source

analysis = WignerSeitzAnalysisModifier(per_type_occupancies = True, output_displaced=True)
analysis.reference = FileSource()
analysis.reference.load(filename2)
pipeline.modifiers.append(analysis)
pipeline.compute()




NameError: name 'FileSource' is not defined

Hello,

I was trying to source the reference file for Wigner-Seitz analysis and somehow I got this error. I was wondering if you can help me with that? I just followed the instruction on the ovito website.

Thank you.

 

The FileSource class is defined in the ovito.pipeline module. Please add

from ovito.pipeline import *

to the top of your script to fix the error.

新的OVITO微信频道!
New for our users in China: OVITO on WeChat 

Official OVITO WeChat channel operated by Foshan Diesi Technology Co., Ltd.