Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
killiansheriff committed Aug 21, 2023
1 parent 2f86f49 commit 6f35f4f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/WarrenCowleyParameters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@


class WarrenCowleyParameters(ModifierInterface):
"""Compute the Warren-Cowley parameters.
```python
from ovito.io import import_file
import WarrenCowleyParameters as WarrenCowleyParameters
pipeline = import_file("fcc.dump")
mod = WarrenCowleyParameters(nneigh=[0, 12, 18])
pipeline.modifiers.append(mod)
data = pipeline.compute()
wc_for_shells = data.attributes["Warren-Cowley parameters"]
print(f"1NN Warren-Cowley parameters: \n {wc_for_shells[0]}")
print(f"2NN Warren-Cowley parameters: \n {wc_for_shells[1]}")
```
"""
# List of integers representing the maximum number of atoms in shells
nneigh = List(Int, value=[0, 12], label="Max atoms in shells", minlen=2)

Expand Down

0 comments on commit 6f35f4f

Please sign in to comment.