Skip to content

Commit

Permalink
Add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Oct 21, 2024
1 parent d3caba2 commit 603c0a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions readux_ingest_ecds/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ def create_canvases(self):
images.sort()

for index, image in enumerate(images):
LOGGER.info(f"Creating canvas {image}")
position = index + 1
image_name = os.path.splitext(image)[0]
canvas_pid = f"{image_name}.tiff"
Expand Down Expand Up @@ -432,6 +433,7 @@ def ingest(self):
pid = row["pid"]
if pid is None:
continue
LOGGER.info(f"Creating manifest {pid}")
manifest = create_manifest_from_pid(pid, self.image_server)
metadata = dict(row)
for key, value in metadata.items():
Expand Down Expand Up @@ -466,6 +468,7 @@ def ingest(self):
t_file.write(f"{image_file}\n")

local_ingest.create_canvases()
LOGGER.info(f"Canvases created for {pid}")
manifest.save()
from .tasks import add_ocr_task_local

Expand Down

0 comments on commit 603c0a4

Please sign in to comment.