223584e2a0b97b006b6ac944253e2573963a7a88,prody/proteins/starfile.py,,parseImagesFromSTAR,#Any#,284

Before Change



    if kw_indices is not None:
    // Convert keyword indices to valid indices if possible
        if isinstance(kw_indices, np.ndarray):
            ndim = kw_indices.ndim
            shape = kw_indices.shape
        else:
            ndim = 0
            shape = []
            portion1 = kw_indices
            while len(portion1 > 1):
                maxLen = 0
                for portion2 in portion1:
                    if len(portion2) > maxLen:
                        portion = portion2
                        maxLen = len(portion)
                portion1 = portion
                shape.append(maxLen)

        if ndim == indices.ndim:
                indices = kw_indices

        elif isinstance(particlesSTAR, StarDict):

After Change


                             "when particlesSTAR is a loop table")

    else:
        indices = np.fromiter((index in indices), 
                              dtype=[("dataBlockNumber", int), 
                                     ("loopNumber", int), 
                                     ("rowNumber", int)])

    if indices == []:
        raise ValueError("particlesSTAR does not contain any loops with image fields")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: prody/ProDy
Commit Name: 223584e2a0b97b006b6ac944253e2573963a7a88
Time: 2018-09-25
Author: jamesmkrieger@gmail.com
File Name: prody/proteins/starfile.py
Class Name:
Method Name: parseImagesFromSTAR


Project Name: sympy/sympy
Commit Name: 24602abe9b89c6b22f77804636de2f109f1c6052
Time: 2020-07-04
Author: smitlunagariya.mat18@itbhu.ac.in
File Name: sympy/stats/symbolic_probability.py
Class Name: Expectation
Method Name: expand


Project Name: sympy/sympy
Commit Name: 24602abe9b89c6b22f77804636de2f109f1c6052
Time: 2020-07-04
Author: smitlunagariya.mat18@itbhu.ac.in
File Name: sympy/stats/symbolic_multivariate_probability.py
Class Name: ExpectationMatrix
Method Name: expand