Author Topic: The example of python scripts  (Read 222 times)

ZIYU CONG

  • Newbie
  • *
  • Posts: 2
The example of python scripts
« on: July 15, 2019, 12:38:06 PM »
The example of python scripts
I'm a new user of OVITO,
but when I follow the example of python scripts,
I cannot find the data file in the example.
Can you show me the directory of these examples?

Constanze Kalcher

  • Administrator
  • Sr. Member
  • *****
  • Posts: 301
Re: The example of python scripts
« Reply #1 on: July 16, 2019, 10:06:56 AM »
Hello ZIYU CONG,

I'm not sure what you mean by "I cannot find the data file in the example". Could you please explain again what you're problem is?

-Constanze

ZIYU CONG

  • Newbie
  • *
  • Posts: 2
Re: The example of python scripts
« Reply #2 on: July 17, 2019, 01:47:39 PM »
Actually,
I did follow the example on python ovito 2.9.0 documents.
In the computing Voronoi indices part,
the Python script wrote like

# Load a simulation snapshot of a Cu-Zr metallic glass.
node = import_file("../data/CuZr_metallic_glass.dump.gz")

But, I did find any example data file.
So, can you show me the directory of these data files?

Thank you so much

Constanze Kalcher

  • Administrator
  • Sr. Member
  • *****
  • Posts: 301
Re: The example of python scripts
« Reply #3 on: July 17, 2019, 04:20:35 PM »
I see. This example dump file is indeed only available on gitlab, where the source code is hosted.
You can download it from here:
https://gitlab.com/stuko/ovito/blob/master/examples/data/CuZr_metallic_glass.dump.gz

-Constanze