Skip to content

Fix missing import in legacy model loading - #77

Merged
kellrott merged 1 commit into
ohsu-comp-bio:developfrom
kbcoulter:fix-layer-import
Sep 22, 2026
Merged

kellrott merged 1 commit into
ohsu-comp-bio:developfrom
kbcoulter:fix-layer-import

Conversation

@kbcoulter

Copy link
Copy Markdown
Contributor

Adds the missing Layer import.

Loading legacy models uses build_layer_list(), which requires Layer to be imported (new models bypass this and never touch Layer). Layer is missing and NameError is thrown whenever legacy is loaded.

Should just need to add Layer import to fix.

Fixes #76

@kbcoulter

Copy link
Copy Markdown
Contributor Author

The legacy models aren't covered by tests, which is likely how this slipped through. Since the older model format is being replaced, I'm thinking of leaving test coverage as-is.

Happy to add tests if it's worthwhile

@kellrott
kellrott merged commit efc2d7c into ohsu-comp-bio:develop Sep 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NameError when loading legacy models (Missing Import)

2 participants