Skip to content

Commit 78cab3c

Browse files
Rename to stats
1 parent 78bc324 commit 78cab3c

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

docs/changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _This project uses semantic versioning_
44

55
## UNRELEASED
66

7-
- Add `egraph.run_report()` method to print overall stats [#339](https://github.com/egraphs-good/egglog-python/pull/339)
7+
- Add `egraph.stats()` method to print overall stats [#339](https://github.com/egraphs-good/egglog-python/pull/339)
88
- Add `all_function_sizes` and `function_size` EGraph methods [#338](https://github.com/egraphs-good/egglog-python/pull/338)
99
- Fix execution of docs [#337](https://github.com/egraphs-good/egglog-python/pull/337)
1010
- Emit warnings when functions omitted when visualizing [#336](https://github.com/egraphs-good/egglog-python/pull/336)
@@ -15,6 +15,7 @@ _This project uses semantic versioning_
1515
- Allow changing number of threads with env variable [#330](https://github.com/egraphs-good/egglog-python/pull/330)
1616

1717
## 11.0.0 (2025-08-08)
18+
1819
- Change conversion between binary operators to consider converting both types [#320](https://github.com/egraphs-good/egglog-python/pull/320)
1920
- Add ability to parse egglog expressions into Python values [#319](https://github.com/egraphs-good/egglog-python/pull/319)
2021
- Deprecates `.eval()` method on primitives in favor of `.value` which can be used with pattern matching.

docs/reference/egglog-translation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,11 +524,11 @@ egraph.all_function_sizes()
524524

525525
## Overall Statistics
526526

527-
The `(print-stats)` command is translated into `egraph.run_report()` to get overall statistics about the EGraph.
527+
The `(print-stats)` command is translated into `egraph.stats()` to get overall statistics about the EGraph.
528528

529529
```{code-cell} python
530530
# (print-stats)
531-
egraph.run_report()
531+
egraph.stats()
532532
```
533533

534534
## Include

python/egglog/egraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ def _run_schedule(self, schedule: Schedule) -> bindings.RunReport:
909909
assert isinstance(command_output, bindings.RunScheduleOutput)
910910
return command_output.report
911911

912-
def run_report(self) -> bindings.RunReport:
912+
def stats(self) -> bindings.RunReport:
913913
"""
914914
Returns the overall run report for the egraph.
915915
"""

python/tests/test_high_level.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,4 +1051,4 @@ def test_all_function_size():
10511051

10521052

10531053
def test_overall_run_report():
1054-
assert EGraph().run_report()
1054+
assert EGraph().stats()

0 commit comments

Comments
 (0)