Skip to content

Better imprint for assy#2069

Open
adam-urbanczyk wants to merge 3 commits into
masterfrom
adam-imprint-fix
Open

Better imprint for assy#2069
adam-urbanczyk wants to merge 3 commits into
masterfrom
adam-imprint-fix

Conversation

@adam-urbanczyk

@adam-urbanczyk adam-urbanczyk commented Jul 16, 2026

Copy link
Copy Markdown
Member

Low level fix enabling faster imprints for well behaved models.

NB: this PR also contains a typing fix related to Numba version update.

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.70%. Comparing base (b47f7b7) to head (bd53fc8).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2069   +/-   ##
=======================================
  Coverage   95.70%   95.70%           
=======================================
  Files          30       30           
  Lines        9479     9479           
  Branches     1410     1410           
=======================================
  Hits         9072     9072           
  Misses        253      253           
  Partials      154      154           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lorenzncode lorenzncode left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adam-urbanczyk !

"""
Imprint all the solids and construct a dictionary mapping imprinted solids to names from the input assy.

Depending on the use case, it might be required do use different `glue` option. Moreover, for large models

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps the same comment regarding glue might be added to:

Imprint arbitrary number of shapes.

Depending on the use case, it might be required do use different `glue` option.

ids = tuple(id_map[Solid(el)] for el in bldr.GetOrigins(s.wrapped))
# if GetOrigins yields nothing, solid was not modified
if ocp_origins.IsBound(s.wrapped):
# if GetOrigins yields nothing, solid was not modified

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In comment, GetOrigins was from the old implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants