diff --git a/src/eynollah/cli.py b/src/eynollah/cli.py index 852f06b..22613a9 100644 --- a/src/eynollah/cli.py +++ b/src/eynollah/cli.py @@ -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() diff --git a/src/eynollah/eynollah.py b/src/eynollah/eynollah.py index 02ddf99..23e2458 100644 --- a/src/eynollah/eynollah.py +++ b/src/eynollah/eynollah.py @@ -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)