@@ -183,7 +183,9 @@ async def tick(self) -> None:
183183 # ----------------------------------------------------------------------------------------
184184 async def scrape_plates_directories (self ) -> None :
185185 """
186- Scrape all the configured directories looking for new files.
186+ Scrape all the configured directories looking in each one for new plate directories.
187+
188+ Normally there is only one in the configured list of these places where plates arrive.
187189 """
188190
189191 # TODO: Use asyncio tasks to paralellize scraping plates directories.
@@ -268,10 +270,7 @@ async def scrape_plate_directory(
268270 self .__visits_directory ,
269271 )
270272
271- logger .debug (
272- f"[CRYERR] for plate_barcode { plate_barcode } crystal_plate_model.error is { crystal_plate_model .error } "
273- )
274-
273+ # The model has not been marked as being in error?
275274 if crystal_plate_model .error is None :
276275 visit_directory = get_xchem_directory (
277276 self .__visits_directory , crystal_plate_model .visit
@@ -283,8 +282,14 @@ async def scrape_plate_directory(
283282 crystal_plate_model ,
284283 visit_directory ,
285284 )
285+
286+ # The model has been marked as being in error?
286287 else :
287- # Remember we "handled" this one.
288+ logger .debug (
289+ f"[ROCKDIR] for plate_barcode { plate_barcode } crystal_plate_model.error is: { crystal_plate_model .error } "
290+ )
291+ # Remember we "handled" this one within the current instance.
292+ # Keeping this list could be obviated if we could move the files out of the plates directory after we process them.
288293 self .__handled_plate_names .append (plate_name )
289294
290295 # ----------------------------------------------------------------------------------------
@@ -318,7 +323,7 @@ async def scrape_plate_directory_if_complete(
318323 if target .is_dir ():
319324 # Presumably this is done, so no error but log it.
320325 logger .debug (
321- f"[ROCKDIR] plate_barcode { plate_directory .name } is apparently already copied to { target } "
326+ f"[ROCKDIR] plate directory { plate_directory .name } is apparently already copied to { target } "
322327 )
323328 self .__handled_plate_names .append (plate_directory .stem )
324329 return
0 commit comments