Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
hainm committed Nov 22, 2024
1 parent fbdd325 commit f2898fd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nglview/tests/test_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,17 @@ def __init__(self):

@property
def n_frames(self):
return 10
return 5

def get_coordinates(self, frame):
return np.random.rand(10, 3, 3)
coordinates = [
[[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [0.0, 1.0, 0.0]],
[[0.1, 0.1, 0.1], [1.1, 0.1, 0.1], [0.1, 1.1, 0.1]],
[[0.2, 0.2, 0.2], [1.2, 0.2, 0.2], [0.2, 1.2, 0.2]],
[[0.3, 0.3, 0.3], [1.3, 0.3, 0.3], [0.3, 1.3, 0.3]],
[[0.4, 0.4, 0.4], [1.4, 0.4, 0.4], [0.4, 1.4, 0.4]]
]
return np.array(coordinates)[frame]

def get_structure_string(self):
return 'hello'
Expand Down

0 comments on commit f2898fd

Please sign in to comment.