Skip to content

Commit

Permalink
Write version into _classes.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ch-sa committed Feb 25, 2023
1 parent 4f485d2 commit 6d25b49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions labelCloud/io/labels/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import numpy as np
import numpy.typing as npt

from ... import __version__
from ...control.config_manager import config
from ...definitions import (
Color3f,
Expand Down Expand Up @@ -78,6 +79,7 @@ def save_config(self) -> None:
"default": self.default,
"type": self.type.value,
"format": self.format,
"created_with": {"name": "labelCloud", "version": __version__},
}
with config.getpath("FILE", "class_definitions").open("w") as stream:
json.dump(data, stream, indent=4)
Expand Down
6 changes: 5 additions & 1 deletion labels/_classes.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@
],
"default": 0,
"type": "object_detection",
"format": "centroid_rel"
"format": "centroid_rel",
"created_with": {
"name": "labelCloud",
"version": "0.7.9"
}
}

0 comments on commit 6d25b49

Please sign in to comment.