Skip to content

Replace left, right with ref in Unit Tests #235

@seanlaw

Description

@seanlaw

Currently, when we perform unit test assertions we do something like:

left = naive.stump(T, m)
right = stumpy.stump(T, m)

np.assert_almost_equal(left, right)

However,left and right are also overloaded since we have left and right matrix profiles and indices. It has been proposed that we replace left with ref instead and either replace right or just name it appropriately (maybe comp for "computed"/"comparison"):

ref_mp = naive.stump(T, m)
mp = stumpy.stump(T, m)

np.assert_almost_equal(ref_mp, mp)

or

ref_mp = naive.stump(T, m)
comp_mp = stumpy.stump(T, m)

np.assert_almost_equal(ref_mp, comp_mp)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions