Skip to content

Commit f7a48c9

Browse files
Merge pull request #11 from PPPLDeepLearning/python3_compatibility
Python3 compatibility
2 parents 66f62d9 + 73b1052 commit f7a48c9

File tree

8 files changed

+235
-235
lines changed

8 files changed

+235
-235
lines changed

examples/guarantee_preprocessed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
pp = Preprocessor(conf)
1919
pp.clean_shot_lists()
2020
shot_list = pp.preprocess_all()
21-
sorted(shot_list)
21+
sorted(shot_list,key = lambda shot: shot.get_number())
2222
shot_list_train,shot_list_test = shot_list.split_train_test(conf)
2323
num_shots = len(shot_list_train) + len(shot_list_test)
2424
validation_frac = conf['training']['validation_frac']

0 commit comments

Comments
 (0)