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 evaluate atom #835

Merged
merged 3 commits into from
Jan 15, 2025
Merged

Fix evaluate atom #835

merged 3 commits into from
Jan 15, 2025

Conversation

vsbogd
Copy link
Collaborator

@vsbogd vsbogd commented Jan 15, 2025

Fix #834. Root cause is that top module space is different from space which is passed to the Metta constructor. Module space additionally wrapped by ModuleSpace which contains dependencies and know how to work with them. evaluate_atom used original space instead of modules space it is why it cannot use dependencies. Fix is to get top module space instead.

@vsbogd vsbogd requested a review from Necr0x0Der January 15, 2025 17:44
Copy link
Collaborator

@Necr0x0Der Necr0x0Der left a comment

Choose a reason for hiding this comment

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

Seems to fix tests in metta-motto. Thanks for quick update.

@Necr0x0Der Necr0x0Der merged commit 69730e3 into trueagi-io:main Jan 15, 2025
1 check passed
@vsbogd vsbogd deleted the fix-evaluate-atom branch January 15, 2025 20:16
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.

metta.evaluate_atom is broken
2 participants