Skip to content

Conversation

@ymzhang0
Copy link
Collaborator

@ymzhang0 ymzhang0 commented Dec 5, 2025

Replace the usage of ToContext with standard Python dictionaries in
function return values.

This simplifies the data structure, removes unnecessary dependency on
the ToContext wrapper for simple returns, and improves code
readability.

@ymzhang0 ymzhang0 requested a review from mbercx December 5, 2025 10:40
f"launching EpwBaseWorkChain<{workchain_node.pk}> in a2f mode: convergence #{self.ctx.iteration}"
)

return ToContext(epw_interp=append_(workchain_node))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you give this a try to see if it works as expected?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it works normally, just as good as ToContext.

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.

2 participants