8bd52393b1026d2b2e29dc1e102126d48563f3c4,src/biotite/sequence/annotation.py,Annotation,__getitem__,#Annotation#Any#,124
Before Change
in_scope = True
////// Handle defects //////
if in_scope:
sub_annot.add_feature(feature.copy())
return sub_annot
else:
raise TypeError("{:} instances are invalid Annotation indices"
.format(type(index).__name__))
After Change
if in_scope:
// Create copy for new annotation
new_feature = feature.copy()
for loc in new_feature.locs:
// Handle defects
if loc.first < i_first:
print("test1")
loc.defect |= Location.Defect.MISS_LEFT
loc.first = i_first
if loc.last > i_last:
print("test2")
loc.defect |= Location.Defect.MISS_RIGHT
loc.last = i_last
sub_annot.add_feature(new_feature)
return sub_annot
else:
raise TypeError("{:} instances are invalid Annotation indices"
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: biotite-dev/biotite
Commit Name: 8bd52393b1026d2b2e29dc1e102126d48563f3c4
Time: 2017-12-10
Author: patrick.kunzm@gmail.com
File Name: src/biotite/sequence/annotation.py
Class Name: Annotation
Method Name: __getitem__
Project Name: sentinel-hub/eo-learn
Commit Name: 807a1bd887a930ed442aa4847240091073d281ba
Time: 2018-07-20
Author: matej.aleksandrov@sinergise.com
File Name: core/eolearn/tests/test_eodata.py
Class Name: TestEOPatch
Method Name: test_check_dims
Project Name: sentinel-hub/eo-learn
Commit Name: bf49375b5f60b5668f874a2f704fa718735e2ded
Time: 2018-08-08
Author: matej.aleksandrov@sinergise.com
File Name: features/eolearn/features/feature_extractor.py
Class Name: FeatureExtractionTask
Method Name: execute