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

Merged
merged 4 commits into from
Aug 4, 2025
Merged

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.

@bjodah bjodah requested a review from isuruf August 4, 2025 21:30
@bjodah
Copy link
Contributor Author

bjodah commented Aug 4, 2025

whenever you feel you have the time for this one @isuruf, no stress.

@bjodah bjodah merged commit 0b5d49e into symengine:master Aug 4, 2025
19 of 20 checks passed
@bjodah
Copy link
Contributor Author

bjodah commented Aug 4, 2025

Thanks!

@bjodah bjodah deleted the dummy_index branch August 4, 2025 21:56
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
2 participants