Pieter Eendebak

Results 48 issues of Pieter Eendebak

#### Brief description of what is fixed or changed The import waterfall of sympy shows 594 modules imported (command `importtime-waterfall sympy`). The total import time (tested with `/bin/test_import`) is ```...

Performance

#### References to other Issues or PRs Fixes #23848 #### Brief description of what is fixed or changed The assumption rules in `sympy.core.assumptions` have been pre-generated and stored. This improves...

During sympy startup the assumptions rules are generated (see `sympy.core.assumptions` line `_assume_rules = FactRules(...)`. This takes about 30 ms. We can eliminate this 30 ms by generating the data once,...

assumptions
Performance

#### Brief description of what is fixed or changed During the sympy import several Dispatchers are created and methods are registered. On each registration the full set of methods is...

Performance

This prevents problems with temporary directories with special characters in them. Fixes #13678

The exectution of `latex_to_png_dvipng` causes popup windows. This PR prevents that by setting flags to the `subprocess.check_call`. Idea was suggested in https://github.com/jupyter/qtconsole/issues/542#issuecomment-1136297850

windows

The `latex_to_png` command fails in the method `latex_to_png_dvipng`. The reason is the temporary file that is generated, contains a `~` in the path, which is not accepted by the latex...

This PR allows calculation of the average of a numpy array with elements of type `fractions.Fraction`. ``` from numpy import np from fractions import Fraction arr = np.array([Fraction(1, 5), Fraction(3,...

00 - Bug

### Describe the issue: Analysing the import time of numpy using [importtime-waterfal](https://github.com/asottile/importtime-waterfall) shows some parts can be improved. The import time varies with the platform (windows/linux) and whether numpy is...

00 - Bug

This is a followup from #21653 and #21654. In this PR we make the output of `Polynomial.__str__` and `Polynomial._repr_latex_` consistent. Input ``` import numpy as np x = np.arange(10) y...

03 - Maintenance