Skip to content

Commit

Permalink
TST: remove random from clip (#748)
Browse files Browse the repository at this point in the history
* TST: remove random from clip

closes #553

* remove unused import
  • Loading branch information
ksunden authored and darienmorrow committed Sep 20, 2018
1 parent 2aefae0 commit 46ff2c3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/dataset/clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

# --- import --------------------------------------------------------------------------------------


import random

import WrightTools as wt
from WrightTools import datasets

Expand All @@ -16,7 +13,7 @@
def test_w1_wa():
p = datasets.PyCMDS.w1_wa_000
data = wt.data.from_PyCMDS(p)
new_max = random.random() * 0.5 * data.array_signal.max() + data.array_signal.min()
new_max = 0.5 * data.array_signal.max() + data.array_signal.min()
data.array_signal.clip(max=new_max)
assert data.array_signal.max() <= new_max
data.close()
Expand Down

0 comments on commit 46ff2c3

Please sign in to comment.