Skip to content

Commit

Permalink
remove imports
Browse files Browse the repository at this point in the history
  • Loading branch information
killiansheriff committed Aug 16, 2023
1 parent 3a8c910 commit 3b31a55
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/WarrenCowleyParameters/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import itertools
import warnings

import numpy as np
from ovito.data import DataCollection, DataTable, ElementType, NearestNeighborFinder
Expand Down Expand Up @@ -125,7 +124,6 @@ def check_symmetry(arr):
try:
assert np.allclose(arr.T, arr)
except:
# warnings.warn("WCs are not exactly symmetric.")
print("WARNING: WCs are not exactly symmetric.")

def modify(self, data: DataCollection, frame: int, **kwargs):
Expand Down Expand Up @@ -166,6 +164,6 @@ def modify(self, data: DataCollection, frame: int, **kwargs):
)
self.check_symmetry(wc)
wc_for_shells[m] = wc

data.attributes["Warren-Cowley parameters"] = wc_for_shells
self.create_visualization_tables(unique_types, nshells, wc_for_shells, data)

0 comments on commit 3b31a55

Please sign in to comment.