Skip to content

Commit

Permalink
Merge pull request #119 from dule1322/CTX-5383
Browse files Browse the repository at this point in the history
  • Loading branch information
igorperic17 authored Jan 30, 2024
2 parents aae9981 + 12a11aa commit 79aed22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coretex/entities/sample/image_sample/image_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def annotationPath(self) -> Path:
return Path(self.path) / "annotations.json"

def saveAnnotation(self, coretexAnnotation: CoretexImageAnnotation) -> bool:
super().saveAnnotation(coretexAnnotation)
# Only save annotation locally if it is downloaded
if self.zipPath.exists() and self.path.exists():
super().saveAnnotation(coretexAnnotation)

parameters = {
"id": self.id,
Expand Down

0 comments on commit 79aed22

Please sign in to comment.