Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Anatomy.format_all with unpadded int values. #1071

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

robin-ynput
Copy link
Contributor

Changelog Description

resolve #1059

Anatomy.format_all is failing with unpadded int raises when attempting to convert int to TemplatePartResult

Additional info

A work-around was to edit the problematic template with a padded int this is the proper code fix.
Fix discussed with @iLLiCiTiT

Testing notes:

  1. Add the following template into your project Anatomy
    image
default_test
{root[work]}/{project[name]}/OUT/DELIVERY/{yyyy_mm_dd}/{product[name]}/{@version}
{originalBasename}_{studio[name]}_{yyyy-mm-dd}_{version}.{ext}
  1. Either run a publish to trigger extract_burnins or run the following
from ayon_core.pipeline import Anatomy

anatomy = Anatomy("Dummy")
formatted = anatomy.format_all({"version": 5})
  1. It failed before the fix, it should not fail anymore after.

@ynbot
Copy link
Contributor

ynbot commented Jan 8, 2025

@ynbot ynbot added size/XS type: bug Something isn't working labels Jan 8, 2025
@iLLiCiTiT iLLiCiTiT merged commit 1608296 into develop Jan 8, 2025
9 of 10 checks passed
@iLLiCiTiT iLLiCiTiT deleted the bugfix/AY-7270_fix_templatePartResult_from_int branch January 8, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AY-7270_Extract burnins - Issue when converting int to "TemplatePartResult" (unpadded {version})
3 participants