Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
PUB-867: Make sure the objects are unique
Browse files Browse the repository at this point in the history
  • Loading branch information
lscheinkman committed Oct 17, 2018
1 parent 262b377 commit 60bb552
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ def reset(self, params, repetition):
distribution=params["feature_distribution"])

# Make sure the objects are unique
assert len(np.unique(self.objects)) == len(self.objects)
uniqueObjs = np.unique([{"features": obj["features"]}
for obj in self.objects])
assert len(uniqueObjs) == len(self.objects)

self.sdrSize = L2Params["sdrSize"]

Expand Down

0 comments on commit 60bb552

Please sign in to comment.