mirror of
				https://github.com/qurator-spk/eynollah.git
				synced 2025-10-31 17:54:12 +01:00 
			
		
		
		
	run: also write out XML in single filename mode
This commit is contained in:
		
							parent
							
								
									fe77171d45
								
							
						
					
					
						commit
						dcf2ed5e22
					
				
					 2 changed files with 2 additions and 6 deletions
				
			
		|  | @ -314,8 +314,7 @@ def layout(image, out, overwrite, dir_in, model, save_images, save_layout, save_ | |||
|     if dir_in: | ||||
|         eynollah.run(dir_in=dir_in, overwrite=overwrite) | ||||
|     else: | ||||
|         pcgts = eynollah.run(image_filename=image) | ||||
|         eynollah.writer.write_pagexml(pcgts) | ||||
|         eynollah.run(image_filename=image) | ||||
| 
 | ||||
| 
 | ||||
| @main.command() | ||||
|  |  | |||
|  | @ -4223,10 +4223,7 @@ class Eynollah: | |||
|             pcgts = self.run_single() | ||||
|             self.logger.info("Job done in %.1fs", time.time() - t0) | ||||
|             #print("Job done in %.1fs" % (time.time() - t0)) | ||||
|             if dir_in: | ||||
|                 self.writer.write_pagexml(pcgts) | ||||
|             else: | ||||
|                 return pcgts | ||||
|             self.writer.write_pagexml(pcgts) | ||||
| 
 | ||||
|         if dir_in: | ||||
|             self.logger.info("All jobs done in %.1fs", time.time() - t0_tot) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue