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()

NameError: name 'FileSource' is not defined


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.

New for our users in China: OVITO on WeChat 

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