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

Add event handler #1074

Merged
merged 8 commits into from
Sep 1, 2024
Merged

Add event handler #1074

merged 8 commits into from
Sep 1, 2024

Conversation

rocky
Copy link
Member

@rocky rocky commented Aug 26, 2024

Code in support of event tracing debugging.

Used b y Mathics3 Module pymtathics.debugger in repository Mathics3/mathics-debugger.

@rocky rocky requested a review from mmatera August 26, 2024 22:43
@rocky rocky marked this pull request as draft August 26, 2024 22:55
@rocky
Copy link
Member Author

rocky commented Aug 26, 2024

test/core/test_sympy_python_convert.py and I don't understand it.

@mmatera
Copy link
Contributor

mmatera commented Aug 27, 2024

test/core/test_sympy_python_convert.py and I don't understand it.

do you mean the unit test?

Copy link
Contributor

@mmatera mmatera left a comment

Choose a reason for hiding this comment

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

LGTM

)
self.compare(
Expression(SymbolGamma, Symbol("Global`z"), Symbol("Global`x")),
sympy.uppergamma(
<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a failure in merging, isn't it?

Copy link
Member Author

@rocky rocky Aug 27, 2024

Choose a reason for hiding this comment

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

That was later addressed using the unit test version in master without any changes.

Because there are substantive changes now in the failure, I suspect there is a deeper problem and something that needs conversion (or we need to use the prefix variables substitutions more).

@rocky rocky force-pushed the add_event-handler branch 2 times, most recently from 5650345 to 0a464cd Compare August 27, 2024 12:58
start with running SymPy and mpmath functions.
This follows the pattern run_sympy
And add "debugger" event name.

Possibly the tracing event names should get moved to Debugger.
test doesn't work though...
* Correct and expand comment regarding trace.run_xxx

* And one other comment in trace_fn_call_event
@rocky rocky marked this pull request as ready for review September 1, 2024 02:02
@rocky rocky merged commit 10d9e04 into master Sep 1, 2024
12 checks passed
@rocky rocky deleted the add_event-handler branch September 1, 2024 02:02
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