Commit 03e3344c authored by TYAGIRIS's avatar TYAGIRIS
Browse files

Merge branch 'dlb_np_intersect_issue' into 'main'

non-BE conformance--fix intersect 1d RAM usage issue

See merge request !2405
parents 37d31a67 ae8a7ffb
Loading
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -914,11 +914,17 @@ class MLDConformance:
        mldDict = dict[str, list]()
        failed = False

        intersection, indRef, indDut = np.intersect1d(
            mldRefWithTags["pyTestTag"],
            mldCutWithTags["pyTestTag"],
            return_indices=True,
        )
        #intersection, indRef, indDut = np.intersect1d(
        #    mldRefWithTags["pyTestTag"],
        #    mldCutWithTags["pyTestTag"],
        #    assume_unique=True,
        #    return_indices=True,
        #)
        
        indRef = np.argsort(mldRefWithTags["pyTestTag"])
        indDut = np.argsort(mldCutWithTags["pyTestTag"])
        intersection = mldRefWithTags["pyTestTag"][indRef]
       
        refMLD = mldRefWithTags["MLD"][indRef]
        dutMLD = mldCutWithTags["MLD"][indDut]