@@ -257,7 +257,6 @@ class MainBrain(object):
257
257
)
258
258
259
259
class RemoteAPI :
260
-
261
260
# ================================================================
262
261
#
263
262
# Methods called locally
@@ -492,7 +491,6 @@ def receive_missing_data(self, cam_id, framenumber_offset, missing_data):
492
491
camn_received_time ,
493
492
points_distorted ,
494
493
) in missing_data :
495
-
496
494
corrected_framenumber = framenumber - framenumber_offset
497
495
if len (points_distorted ) == 0 :
498
496
# No point was tracked that frame, send nan values.
@@ -915,8 +913,8 @@ def get_all_params(self):
915
913
return all
916
914
917
915
def start_listening (self ):
918
- """ the last thing called before we work - give the config callback watchers a callback
919
- to check on the state of the mainbrain post __init__ """
916
+ """the last thing called before we work - give the config callback watchers a callback
917
+ to check on the state of the mainbrain post __init__"""
920
918
self .save_config ()
921
919
922
920
def set_config_change_callback (self , handler ):
@@ -1039,10 +1037,14 @@ def start_recording(self, raw_file_basename=None, *cam_ids):
1039
1037
if not raw_file_basename :
1040
1038
if self .experiment_uuid is not None :
1041
1039
raw_file_basename = os .path .join (
1042
- self .config ["save_movie_dir" ], self .experiment_uuid ,
1040
+ self .config ["save_movie_dir" ],
1041
+ self .experiment_uuid ,
1043
1042
)
1044
1043
else :
1045
- raw_file_basename = os .path .join (self .config ["save_movie_dir" ], nowstr ,)
1044
+ raw_file_basename = os .path .join (
1045
+ self .config ["save_movie_dir" ],
1046
+ nowstr ,
1047
+ )
1046
1048
1047
1049
if len (cam_ids ) == 0 :
1048
1050
cam_ids = self .remote_api .external_get_cam_ids ()
@@ -1106,10 +1108,14 @@ def start_small_recording(self, raw_file_basename=None, *cam_ids):
1106
1108
if not raw_file_basename :
1107
1109
if self .experiment_uuid is not None :
1108
1110
raw_file_basename = os .path .join (
1109
- self .config ["save_movie_dir" ], self .experiment_uuid ,
1111
+ self .config ["save_movie_dir" ],
1112
+ self .experiment_uuid ,
1110
1113
)
1111
1114
else :
1112
- raw_file_basename = os .path .join (self .config ["save_movie_dir" ], nowstr ,)
1115
+ raw_file_basename = os .path .join (
1116
+ self .config ["save_movie_dir" ],
1117
+ nowstr ,
1118
+ )
1113
1119
1114
1120
if len (cam_ids ) == 0 :
1115
1121
cam_ids = self .remote_api .external_get_cam_ids ()
@@ -1224,7 +1230,7 @@ def __del__(self):
1224
1230
self .quit ()
1225
1231
1226
1232
def _safe_makedir (self , path ):
1227
- """ raises OSError if path cannot be made """
1233
+ """raises OSError if path cannot be made"""
1228
1234
if not os .path .exists (path ):
1229
1235
os .makedirs (path )
1230
1236
return path
@@ -1551,7 +1557,6 @@ def _service_save_data(self):
1551
1557
observations_2d ,
1552
1558
obs_Lcoords ,
1553
1559
) in list_of_3d_data :
1554
-
1555
1560
if len (obs_frames ) < MIN_KALMAN_OBSERVATIONS_TO_SAVE :
1556
1561
# only save data with at least N observations
1557
1562
continue
0 commit comments