Skip to content

Commit 19e1a98

Browse files
pymc-devsmichaelosthege
pymc-devs
authored andcommitted
Rename Aesara→pytensor
Changes * Aesara → Pytensor * aesara → pytensor * AESARA → PYTENSOR * Applied pre-commit * GitHub repository URLs * Contact email addresses * Headline length in RST files
1 parent d88f3f9 commit 19e1a98

File tree

552 files changed

+8804
-8703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

552 files changed

+8804
-8703
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
aesara/_version.py export-subst
1+
pytensor/_version.py export-subst

.github/ISSUE_TEMPLATE.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
## Description of your problem or feature request
22

3-
First, carefully read the following to determine whether or not you have a valid Aesara issue:
3+
First, carefully read the following to determine whether or not you have a valid Pytensor issue:
44

5-
- Does your issue only arise in a library that uses Aesara (e.g. PyMC)? If so, submit your issue to that library's issue tracker. From there, the Aesara-specific details can be worked out and a valid Aesara issue can be identified. **Issues framed primarily in third-party libraries are liable to being marked as invalid and closed.**
6-
- Does your issue involve OS and/or environment-specific settings (e.g. installation and/or compilation issues)? If so, create a [Discussion](https://github.com/aesara-devs/aesara/discussions) instead. From there, we can help determine whether or not the issue is due to faulty logic in Aesara (i.e. a valid issue) or something specific to your local setup.
5+
- Does your issue only arise in a library that uses Pytensor (e.g. PyMC)? If so, submit your issue to that library's issue tracker. From there, the Pytensor-specific details can be worked out and a valid Pytensor issue can be identified. **Issues framed primarily in third-party libraries are liable to being marked as invalid and closed.**
6+
- Does your issue involve OS and/or environment-specific settings (e.g. installation and/or compilation issues)? If so, create a [Discussion](https://github.com/pymc-devs/pytensor/discussions) instead. From there, we can help determine whether or not the issue is due to faulty logic in Pytensor (i.e. a valid issue) or something specific to your local setup.
77

88

9-
If the above does not apply, and you have an issue or feature request that's specific to Aesara, provide a minimal, self-contained, and reproducible example (i.e. an [MWE](https://en.wikipedia.org/wiki/Minimal_reproducible_example)):
9+
If the above does not apply, and you have an issue or feature request that's specific to Pytensor, provide a minimal, self-contained, and reproducible example (i.e. an [MWE](https://en.wikipedia.org/wiki/Minimal_reproducible_example)):
1010

1111
```python
1212
[Your code here]
@@ -24,13 +24,13 @@ If the above does not apply, and you have an issue or feature request that's spe
2424

2525
## Versions and main components
2626

27-
* Aesara version:
27+
* Pytensor version:
2828
* Python version:
2929
* Operating system:
30-
* How did you install Aesara: (conda/pip)
30+
* How did you install Pytensor: (conda/pip)
3131

32-
<details> <summary> Aesara config: </summary>
32+
<details> <summary> Pytensor config: </summary>
3333

34-
Place the results of `python -c "import aesara; print(aesara.config)"` here.
34+
Place the results of `python -c "import pytensor; print(pytensor.config)"` here.
3535

3636
</details>

.github/SECURITY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
To report a security vulnerability to Aesara, please go to
1+
To report a security vulnerability to Pytensor, please go to
22
https://tidelift.com/security and see the instructions there.
33

.github/workflows/nightly.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
build_and_publish:
88
name: Build source distribution
9-
if: github.repository == 'aesara-devs/aesara'
9+
if: github.repository == 'pymc-devs/pytensor'
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
@@ -22,7 +22,7 @@ jobs:
2222
- name: Build the sdist
2323
run: python -m build --sdist .
2424
env:
25-
BUILD_AESARA_NIGHTLY: true
25+
BUILD_PYTENSOR_NIGHTLY: true
2626
- uses: pypa/[email protected]
2727
with:
2828
user: __token__

.github/workflows/pypi.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
mkdir -p test-sdist
3737
cd test-sdist
3838
python -m venv venv-sdist
39-
venv-sdist/bin/python -m pip install ../dist/aesara-*.tar.gz
40-
venv-sdist/bin/python -c "import aesara;print(aesara.__version__)"
39+
venv-sdist/bin/python -m pip install ../dist/pytensor-*.tar.gz
40+
venv-sdist/bin/python -c "import pytensor;print(pytensor.__version__)"
4141
- uses: actions/upload-artifact@v2
4242
with:
4343
name: artifact

.github/workflows/test.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ jobs:
3131
with:
3232
filters: |
3333
python: &python
34-
- 'aesara/**/*.py'
34+
- 'pytensor/**/*.py'
3535
- 'tests/**/*.py'
36-
- 'aesara/**/*.pyx'
36+
- 'pytensor/**/*.pyx'
3737
- 'tests/**/*.pyx'
3838
- '*.py'
3939
src:
4040
- *python
41-
- 'aesara/**/*.c'
41+
- 'pytensor/**/*.c'
4242
- 'tests/**/*.c'
43-
- 'aesara/**/*.h'
43+
- 'pytensor/**/*.h'
4444
- 'tests/**/*.h'
4545
- '.github/workflows/*.yml'
4646
- 'setup.cfg'
@@ -120,19 +120,19 @@ jobs:
120120
mamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" jax jaxlib
121121
pip install -e ./
122122
mamba list && pip freeze
123-
python -c 'import aesara; print(aesara.config.__str__(print_doc=False))'
124-
python -c 'import aesara; assert(aesara.config.blas__ldflags != "")'
123+
python -c 'import pytensor; print(pytensor.config.__str__(print_doc=False))'
124+
python -c 'import pytensor; assert(pytensor.config.blas__ldflags != "")'
125125
env:
126126
PYTHON_VERSION: ${{ matrix.python-version }}
127127
INSTALL_NUMBA: ${{ matrix.install-numba }}
128128

129129
- name: Run tests
130130
shell: bash -l {0}
131131
run: |
132-
if [[ $FAST_COMPILE == "1" ]]; then export AESARA_FLAGS=$AESARA_FLAGS,mode=FAST_COMPILE; fi
133-
if [[ $FLOAT32 == "1" ]]; then export AESARA_FLAGS=$AESARA_FLAGS,floatX=float32; fi
134-
export AESARA_FLAGS=$AESARA_FLAGS,warn__ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise,gcc__cxxflags=-pipe
135-
python -m pytest -x -r A --verbose --runslow --cov=aesara/ --cov-report=xml:coverage/coverage-${MATRIX_ID}.xml --no-cov-on-fail $PART
132+
if [[ $FAST_COMPILE == "1" ]]; then export PYTENSOR_FLAGS=$PYTENSOR_FLAGS,mode=FAST_COMPILE; fi
133+
if [[ $FLOAT32 == "1" ]]; then export PYTENSOR_FLAGS=$PYTENSOR_FLAGS,floatX=float32; fi
134+
export PYTENSOR_FLAGS=$PYTENSOR_FLAGS,warn__ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise,gcc__cxxflags=-pipe
135+
python -m pytest -x -r A --verbose --runslow --cov=pytensor/ --cov-report=xml:coverage/coverage-${MATRIX_ID}.xml --no-cov-on-fail $PART
136136
env:
137137
MATRIX_ID: ${{ steps.matrix-id.outputs.id }}
138138
MKL_THREADING_LAYER: GNU

.gitignore

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ doc/indexes/typelist.txt
3535
html
3636
pdf
3737
setuptools-*.egg
38-
aesara/generated_version.py
39-
aesara/generated_version.py.out
38+
pytensor/generated_version.py
39+
pytensor/generated_version.py.out
4040
distribute-*.egg
4141
distribute-*.tar.gz
42-
Aesara.suo
42+
Pytensor.suo
4343
.ipynb_checkpoints
4444
.pydevproject
4545
.ropeproject
@@ -49,7 +49,7 @@ core
4949
.mypy_cache/
5050
/htmlcov/
5151

52-
aesara-venv/
52+
pytensor-venv/
5353
/notebooks/Sandbox*
5454
.vscode/
5555
testing-report.html

.pre-commit-config.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exclude: |
22
(?x)^(
33
versioneer\.py|
4-
aesara/_version\.py|
4+
pytensor/_version\.py|
55
doc/.*|
66
bin/.*
77
)$
@@ -12,11 +12,11 @@ repos:
1212
- id: debug-statements
1313
exclude: |
1414
(?x)^(
15-
aesara/breakpoint\.py|
16-
aesara/graph/op\.py|
17-
aesara/compile/nanguardmode\.py|
18-
aesara/graph/rewriting/basic\.py|
19-
aesara/tensor/var\.py|
15+
pytensor/breakpoint\.py|
16+
pytensor/graph/op\.py|
17+
pytensor/compile/nanguardmode\.py|
18+
pytensor/graph/rewriting/basic\.py|
19+
pytensor/tensor/var\.py|
2020
)$
2121
- id: check-merge-conflict
2222
- repo: https://github.com/psf/black
@@ -39,11 +39,11 @@ repos:
3939
exclude: |
4040
(?x)^(
4141
.*/?__init__\.py|
42-
aesara/graph/toolbox\.py|
43-
aesara/link/jax/jax_dispatch\.py|
44-
aesara/link/jax/jax_linker\.py|
45-
aesara/scalar/basic_scipy\.py|
46-
aesara/tensor/linalg\.py
42+
pytensor/graph/toolbox\.py|
43+
pytensor/link/jax/jax_dispatch\.py|
44+
pytensor/link/jax/jax_linker\.py|
45+
pytensor/scalar/basic_scipy\.py|
46+
pytensor/tensor/linalg\.py
4747
)$
4848
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
4949
- repo: https://github.com/pre-commit/mirrors-mypy

CODE_OF_CONDUCT.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Aesara Code of Conduct
1+
# Pytensor Code of Conduct
22

3-
Like the technical community as a whole, the Aesara team and community is made
3+
Like the technical community as a whole, the Pytensor team and community is made
44
up of a mixture of professionals and volunteers from all over the world, working
55
on every aspect of the mission&mdash;including mentorship, teaching, and connecting
66
people.
@@ -13,14 +13,14 @@ This isn’t an exhaustive list of things that you can’t do. Rather, take it i
1313
the spirit in which it’s intended&mdash;a guide to make it easier to enrich all of
1414
us and the technical communities in which we participate.
1515

16-
This code of conduct applies to all spaces managed by the Aesara project. This
17-
includes Gitter, mailing lists, the issue tracker, Aesara events, and any other
16+
This code of conduct applies to all spaces managed by the Pytensor project. This
17+
includes Gitter, mailing lists, the issue tracker, Pytensor events, and any other
1818
forums created by the project team that the community uses for communication.
1919
In addition, violations of this code outside these spaces may affect a person's
2020
ability to participate within them.
2121

2222
If you believe someone is violating the code of conduct, we ask that you report
23-
it by emailing aesara[email protected].
23+
it by emailing pymc[email protected].
2424

2525
- __Be friendly and patient.__
2626

@@ -41,9 +41,9 @@ it by emailing [email protected].
4141
excuse for poor behavior and poor manners. We might all experience some
4242
frustration now and then, but we cannot allow that frustration to turn into a
4343
personal attack. It’s important to remember that a community where people feel
44-
uncomfortable or threatened is not a productive one. Members of the Aesara
44+
uncomfortable or threatened is not a productive one. Members of the Pytensor
4545
community should be respectful when dealing with other members as well as with
46-
people outside the Aesara community.
46+
people outside the Pytensor community.
4747

4848
- __Be careful in the words that you choose.__ We are a community of professionals,
4949
and we conduct ourselves professionally. Be kind to others. Do not insult or
@@ -62,9 +62,9 @@ it by emailing [email protected].
6262
then stop.
6363

6464
- __When we disagree, try to understand why.__ Disagreements, both social and
65-
technical, happen all the time and Aesara is no exception. It is important
65+
technical, happen all the time and Pytensor is no exception. It is important
6666
that we resolve disagreements and differing views constructively. Remember
67-
that we’re different. Aesara benefits from its varied community and
67+
that we’re different. Pytensor benefits from its varied community and
6868
people from a wide range of backgrounds. Different people have different
6969
perspectives on issues. Being unable to understand why someone holds a
7070
viewpoint doesn’t mean that they’re wrong. Don’t forget that it is human to

CONTRIBUTING.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
If you want to contribute to Aesara, have a look at the instructions here:
2-
https://aesara.readthedocs.io/en/latest/dev_start_guide.html
1+
If you want to contribute to Pytensor, have a look at the instructions here:
2+
https://pytensor.readthedocs.io/en/latest/dev_start_guide.html
33

44
## Contribution Expectations
55

66
This "Contribution Expectations" section is adapted from [Open Source
77
Archetypes](https://opentechstrategies.com/archetypes) and released under a
88
[CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/) license.
99

10-
The current focus of the Aesara project is rapid, high quality development of a
10+
The current focus of the Pytensor project is rapid, high quality development of a
1111
hackable, pure-Python symbolic tensor library with strong support for graph
1212
rewrites and transpilation to multiple backends including C,
1313
[JAX](https://github.com/google/jax>), and
@@ -27,16 +27,16 @@ source archetypes).
2727

2828
## Issues and Discussions
2929

30-
We expect that Github Issues ("issues") indicate work that should be in Aesara
30+
We expect that Github Issues ("issues") indicate work that should be in Pytensor
3131
and can be picked up immediately by a contributor. This includes bugs, which
3232
indicate something not working as advertised.
3333

3434
Discussions should be created when the scope or direction of the work, though
35-
within the stated goals of the Aesara project, require additional clarification
35+
within the stated goals of the Pytensor project, require additional clarification
3636
or consideration before a course of action is chosen.
3737

3838
For issues a minimal working example (MWE) is strongly recommended when relevant
3939
(fixing a typo in the documentation does not require a MWE). For discussions,
40-
MWEs are generally required. All MWEs must be implemented using Aesara. Please
41-
do not submit MWEs if they are not implemented in Aesara. In certain cases,
42-
pseudocode may be acceptable, but an Aesara implementation is always preferable.
40+
MWEs are generally required. All MWEs must be implemented using Pytensor. Please
41+
do not submit MWEs if they are not implemented in Pytensor. In certain cases,
42+
pseudocode may be acceptable, but an Pytensor implementation is always preferable.

DESCRIPTION.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Aesara is a Python library that allows you to define, optimize, and efficiently evaluate mathematical expressions involving multi-dimensional arrays. It is built on top of NumPy_. Aesara features:
1+
Pytensor is a Python library that allows you to define, optimize, and efficiently evaluate mathematical expressions involving multi-dimensional arrays. It is built on top of NumPy_. Pytensor features:
22

3-
* **tight integration with NumPy:** a similar interface to NumPy's. numpy.ndarrays are also used internally in Aesara-compiled functions.
4-
* **efficient symbolic differentiation:** Aesara can compute derivatives for functions of one or many inputs.
3+
* **tight integration with NumPy:** a similar interface to NumPy's. numpy.ndarrays are also used internally in Pytensor-compiled functions.
4+
* **efficient symbolic differentiation:** Pytensor can compute derivatives for functions of one or many inputs.
55
* **speed and stability optimizations:** avoid nasty bugs when computing expressions such as log(1 + exp(x)) for large values of x.
66
* **dynamic C code generation:** evaluate expressions faster.
77
* **extensive unit-testing and self-verification:** includes tools for detecting and diagnosing bugs and/or potential problems.

MANIFEST.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ global-include *.cpp
66
global-include *.h
77
global-include *.sh
88
recursive-include doc *
9-
include bin/aesara-cache
9+
include bin/pytensor-cache
1010
include versioneer.py
11-
include aesara/_version.py
11+
include pytensor/_version.py

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.PHONY: help venv conda docker check-docstyle check-format check-style format style test lint check coverage pypi
22
.DEFAULT_GOAL = help
33

4-
PROJECT_NAME = aesara
5-
PROJECT_DIR = aesara/
4+
PROJECT_NAME = pytensor
5+
PROJECT_DIR = pytensor/
66
PYTHON = python
77
PIP = pip
88
CONDA = conda

0 commit comments

Comments
 (0)