Skip to content

Add attribute to Dummy: dummy_index #517

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bjodah
Copy link
Contributor

@bjodah bjodah commented Jul 11, 2025

Fixes gh-516

@bjodah bjodah force-pushed the dummy_index branch 2 times, most recently from c24387d to ae97832 Compare July 23, 2025 08:22
@@ -278,10 +278,10 @@ def sympy2symengine(a, raise_error=False):
"""
import sympy
from sympy.core.function import AppliedUndef as sympy_AppliedUndef
if isinstance(a, sympy.Symbol):
if isinstance(a, sympy.Dummy):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since Dummy is a subclass of Symbol, we need to check for it first.

@bjodah
Copy link
Contributor Author

bjodah commented Jul 23, 2025

Tests pass (excluding AppVeyor which we should fix separately). This is ready for review.

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.

Inconsistencies between sympy.Dummy and symengine.Dummy
1 participant