-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for embedding images in .pkg.slp (#91)
* Add serialization to dict at the video object level * Store and retrieve video backend metadata * Try to restore source video when available * Rename symbol * Use backend metadata when available when serializing * Fix backend metadata factory * Re-embed videos when saving labels with embedded videos * Fix serialization and logic for checking for embedded images * Fix multi-frame decoding * Fix docstring order * Add method to embed a list of frames and update the objects * Fix order of operations * Add embed_videos * Fix mid-level embedding function * Hash videos by ID * Add property to return embedded frame indices * Hash LabeledFrame by ID and add convenience checks for instance types * Labels.user_labeled_frames * Fix JABS * Tests * Add live coverage support * Expose high level embedding * Separate replace video and support restoring source * Lint * Add Video(filename) syntactic sugar * Coverage * Windows test fix * Windows test fix again * Fix test
- Loading branch information
Showing
15 changed files
with
700 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ coverage.xml | |
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
lcov.info | ||
|
||
# Translations | ||
*.mo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,7 @@ name = "sleap-io" | |
authors = [ | ||
{name = "Liezl Maree", email = "[email protected]"}, | ||
{name = "David Samy", email = "[email protected]"}, | ||
{name = "Talmo Pereira", email = "[email protected]"} | ||
] | ||
{name = "Talmo Pereira", email = "[email protected]"}] | ||
description="Standalone utilities for working with pose data from SLEAP and other tools." | ||
requires-python = ">=3.7" | ||
keywords = ["sleap", "pose tracking", "pose estimation", "behavior"] | ||
|
@@ -19,8 +18,7 @@ classifiers = [ | |
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12" | ||
] | ||
"Programming Language :: Python :: 3.12"] | ||
dependencies = [ | ||
"numpy", | ||
"attrs", | ||
|
@@ -31,8 +29,7 @@ dependencies = [ | |
"simplejson", | ||
"imageio", | ||
"imageio-ffmpeg", | ||
"av" | ||
] | ||
"av"] | ||
dynamic = ["version", "readme"] | ||
|
||
[tool.setuptools.dynamic] | ||
|
@@ -43,6 +40,7 @@ readme = {file = ["README.md"], content-type="text/markdown"} | |
dev = [ | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-watch", | ||
"black", | ||
"pydocstyle", | ||
"toml", | ||
|
@@ -52,16 +50,24 @@ dev = [ | |
"mkdocs-jupyter", | ||
"mkdocstrings[python]>=0.18", | ||
"mkdocs-gen-files", | ||
"mkdocs-literate-nav" | ||
] | ||
"mkdocs-literate-nav"] | ||
|
||
[project.urls] | ||
Homepage = "https://sleap.ai" | ||
Homepage = "https://io.sleap.ai" | ||
Repository = "https://github.com/talmolab/sleap-io" | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["site"] | ||
|
||
[tool.black] | ||
line-length = 88 | ||
|
||
[pydocstyle] | ||
convention = "google" | ||
match-dir = "sleap_io" | ||
|
||
[tool.coverage.run] | ||
source = ["livecov"] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "--cov sleap_io --cov-report=lcov:lcov.info --cov-report=term" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.