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")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
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: jazzband/django-debug-toolbar
Commit Name: ad110e020cbae062ba024d91223df519af3adc96
Time: 2011-07-12
Author: dcramer@gmail.com
File Name: debug_toolbar/panels/template.py
Class Name: TemplateDebugPanel
Method Name: content
Project Name: keras-team/keras
Commit Name: e24625095a33a5c9a2d016018203938e9bb2ccbf
Time: 2018-04-14
Author: nisargjhaveri@users.noreply.github.com
File Name: keras/backend/cntk_backend.py
Class Name:
Method Name: rnn