Skip to content

Commit ac29bdc

Browse files
authored
open file in binary mode
1 parent fd24f61 commit ac29bdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

joint_control/add_training_data.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"\n",
8686
"pose_name = 'Back'\n",
8787
"data_file = path.join('robot_pose_data', pose_name)\n",
88-
"data = pickle.load(open(data_file))"
88+
"data = pickle.load(open(data_file, 'rb'))"
8989
]
9090
},
9191
{
@@ -122,7 +122,7 @@
122122
"source": [
123123
"new_data = [0, 0, 0, 0, 0, 0, 0, 0, 0, -1.5707963267948966]\n",
124124
"data.append(new_data)\n",
125-
"pickle.dump(data, open(data_file, 'w'))"
125+
"pickle.dump(data, open(data_file, 'wb'))"
126126
]
127127
},
128128
{

0 commit comments

Comments
 (0)