Skip to content

Commit 830bb27

Browse files
committed
Merge branch 'main' into DAMP
2 parents 5c110a1 + 534488d commit 830bb27

File tree

127 files changed

+358931
-223643
lines changed

Some content is hidden

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

127 files changed

+358931
-223643
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ exclude =
1616
setup.py
1717
per-file-ignores =
1818
stumpy/__init__.py:D104
19-
stumpy/stumpi.py:E743
19+
build/lib/stumpy/__init__.py:D104
2020
tests/*:D101,D102,D103
2121
stumpy/cache.py:D414

.fossa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 2
55
cli:
66
server: https://app.fossa.com
77
fetcher: custom
8-
project: https://github.com/TDAmeritrade/stumpy
8+
project: https://github.com/stumpy-dev/stumpy
99
analyze:
1010
modules:
1111
- name: .

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @seanlaw

.github/workflows/github-actions.yml

Lines changed: 46 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,21 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [ubuntu-latest, macos-latest, windows-latest]
13-
python-version: ['3.8']
13+
python-version: ['3.9']
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Set Up Python
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Display Python Version
2121
run: python -c "import sys; print(sys.version)"
2222
shell: bash
23+
- name: Upgrade Pip
24+
run: python -m pip install --upgrade pip
25+
shell: bash
2326
- name: Generate Minimum Requirements File
24-
run: sed 's/>/=/g' requirements.txt | sed 's/$/\.*/g' > requirements.min.txt
27+
run: sed 's/>/=/g' requirements.txt | sed 's/$/\.*/g' > requirements.min.txt
2528
shell: bash
2629
- name: Install Minimum Requirements
2730
run: python -m pip install --upgrade -r requirements.min.txt
@@ -35,10 +38,18 @@ jobs:
3538
- name: Run Flake8
3639
run: flake8 ./
3740
shell: bash
38-
- name: Link OpenMP
41+
- name: Install and Link OpenMP
3942
run: |
4043
if [ "$RUNNER_OS" == "macOS" ]; then
44+
echo "Installing OpenMP"
45+
brew install libomp
46+
echo "Linking OpenMP"
4147
brew link --force libomp
48+
echo "Find OpenMP Linking Location"
49+
libfile=`brew list libomp --verbose | grep libomp.dylib`
50+
echo $libfile
51+
echo "Changing @rpath for the omppool.cpython-x-darwin.so shared object to look in $libfile"
52+
ls "$(python -c 'import site; print(site.getsitepackages()[0])')"/numba/np/ufunc/omppool.*.so | xargs install_name_tool -change @rpath/libomp.dylib $libfile
4253
fi
4354
shell: bash
4455
- name: Show Full Numba Environment
@@ -52,16 +63,19 @@ jobs:
5263
strategy:
5364
matrix:
5465
os: [ubuntu-latest, macos-latest, windows-latest]
55-
python-version: ['3.8', '3.9', '3.10', '3.11']
66+
python-version: ['3.9', '3.10', '3.11', '3.12']
5667
steps:
57-
- uses: actions/checkout@v3
68+
- uses: actions/checkout@v4
5869
- name: Set Up Python
59-
uses: actions/setup-python@v4
70+
uses: actions/setup-python@v5
6071
with:
6172
python-version: ${{ matrix.python-version }}
6273
- name: Display Python Version
6374
run: python -c "import sys; print(sys.version)"
6475
shell: bash
76+
- name: Upgrade Pip
77+
run: python -m pip install --upgrade pip
78+
shell: bash
6579
- name: Install STUMPY And Other Dependencies
6680
run: python -m pip install --editable .[ci]
6781
shell: bash
@@ -71,26 +85,19 @@ jobs:
7185
- name: Run Flake8
7286
run: flake8 ./
7387
shell: bash
74-
- name: Link OpenMP
88+
- name: Install OpenMP
7589
run: |
7690
if [ "$RUNNER_OS" == "macOS" ]; then
77-
# Fix libiomp5.dylib
78-
echo "Install OpenMP via Conda"
79-
conda install -c intel -y openmp
80-
echo "Checking $CONDA/lib for OpenMP"
81-
ls $CONDA/lib/libiomp5.dylib
82-
echo "Changing @rpath for the omppool.cpython-x-darwin.so shared object to look in $CONDA/lib"
83-
ls "$(python -c 'import site; print(site.getsitepackages()[0])')"/numba/np/ufunc/omppool.*.so | xargs install_name_tool -change @rpath/libiomp5.dylib $CONDA/lib/libiomp5.dylib
84-
# Fix libomp.dylib
85-
echo "Linking OpenMP into /usr/local/lib"
91+
echo "Installing OpenMP"
92+
brew install libomp
93+
echo "Linking OpenMP"
8694
brew link --force libomp
87-
echo "Checking /usr/local/lib for OpenMP"
88-
ls /usr/local/lib/libomp.dylib
89-
echo "Changing @rpath for the omppool.cpython-x-darwin.so shared object to look in /usr/local/lib"
90-
ls "$(python -c 'import site; print(site.getsitepackages()[0])')"/numba/np/ufunc/omppool.*.so | xargs install_name_tool -change @rpath/libomp.dylib /usr/local/lib/libomp.dylib
91-
echo "Checking Numba OpenMP Access"
92-
python -c "from numba.np.ufunc import omppool"
93-
fi
95+
echo "Find OpenMP Linking Location"
96+
libfile=`brew list libomp --verbose | grep libomp.dylib`
97+
echo $libfile
98+
echo "Changing @rpath for the omppool.cpython-x-darwin.so shared object to look in $libfile"
99+
ls "$(python -c 'import site; print(site.getsitepackages()[0])')"/numba/np/ufunc/omppool.*.so | xargs install_name_tool -change @rpath/libomp.dylib $libfile
100+
fi
94101
shell: bash
95102
- name: Show Full Numba Environment
96103
run: python -m numba -s
@@ -103,16 +110,19 @@ jobs:
103110
strategy:
104111
matrix:
105112
os: [ubuntu-latest, macos-latest, windows-latest]
106-
python-version: ['3.8', '3.9', '3.10', '3.11']
113+
python-version: ['3.9', '3.10', '3.11', '3.12']
107114
steps:
108-
- uses: actions/checkout@v3
115+
- uses: actions/checkout@v4
109116
- name: Set Up Python
110-
uses: actions/setup-python@v4
117+
uses: actions/setup-python@v5
111118
with:
112119
python-version: ${{ matrix.python-version }}
113120
- name: Display Python Version
114121
run: python -c "import sys; print(sys.version)"
115122
shell: bash
123+
- name: Upgrade Pip
124+
run: python -m pip install --upgrade pip
125+
shell: bash
116126
- name: Install STUMPY And Other Dependencies
117127
run: python -m pip install --editable .[ci]
118128
shell: bash
@@ -125,7 +135,15 @@ jobs:
125135
- name: Link OpenMP
126136
run: |
127137
if [ "$RUNNER_OS" == "macOS" ]; then
138+
echo "Installing OpenMP"
139+
brew install libomp
140+
echo "Linking OpenMP"
128141
brew link --force libomp
142+
echo "Find OpenMP Linking Location"
143+
libfile=`brew list libomp --verbose | grep libomp.dylib`
144+
echo $libfile
145+
echo "Changing @rpath for the omppool.cpython-x-darwin.so shared object to look in $libfile"
146+
ls "$(python -c 'import site; print(site.getsitepackages()[0])')"/numba/np/ufunc/omppool.*.so | xargs install_name_tool -change @rpath/libomp.dylib $libfile
129147
fi
130148
shell: bash
131149
- name: Show Full Numba Environment
@@ -134,8 +152,3 @@ jobs:
134152
- name: Run Coverage Tests
135153
run: ./test.sh coverage
136154
shell: bash
137-
- name: Check Coverage Report
138-
run: coverage report -m --fail-under=100 --skip-covered --omit=setup.py,docstring.py,min.py,stumpy/cache.py
139-
shell: bash
140-
- name: Upload Coverage Tests Results
141-
uses: codecov/codecov-action@v3

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
LOG*
99
PID
1010
.coverage*
11-
coverage.xml
11+
coverage.json
12+
coverage.stumpy.json
1213
dask-worker-space
1314
stumpy.egg-info
1415
build
@@ -20,4 +21,4 @@ docs/_build
2021
.mypy_cache
2122
.directory
2223
test.py
23-
*.nbconvert.ipynb
24+
*.nbconvert.ipynb

.readthedocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
version: 2
2+
sphinx:
3+
configuration: docs/conf.py
24
formats: []
35
build:
46
os: ubuntu-22.04

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
# 2024-07-08 [ 1.13.0 ]:
2+
---------------------------
3+
* bugfixes
4+
- Fixed Ostinato overwriting original time series
5+
* features
6+
- Added Ray support
7+
- Added `numpy` 2.0 support
8+
- Added named attributes to matrix profile array
9+
- Added Python 3.12 support
10+
- Migrated setup.py, setuptools to pyproject.toml
11+
* tasks
12+
- Added version mismatch checker
13+
- Added `copy` param to `preprocess`-related functions
14+
- Disabled bokeh dashboard in dask
15+
- Added `numba` channel to environment.yml
16+
- Replace `np.INF` with `-np.infg`
17+
- Fixed inability to import packages in tutorials
18+
- Added matplotlib to RTD requirements
19+
- Removed unnecessary comments in code
20+
- Added `tests/__pycache__` to `clean_up` process
21+
- Added option to display current dev environment in `test.sh`
22+
- Added keyword `test.sh` to only execute `gpu` containing tests
23+
- Added "upgrade pip" to Github Actions workflow
24+
- Removed Twitter and Zenodo badges, added NumFOCUS badge
25+
- Added Github Discussions link
26+
- Updated codecove version for Github Actions
27+
- Removed `pkg_resources` as a dependency
28+
- Added codeowners file
29+
* documentation
30+
- Improved syntax highlighting
31+
- Updated class docstrings
32+
- Removed napoleon extension
33+
- Switched to Myst
34+
- Relocated notebooks/tutorials
35+
- Fixed named attributes being displayed incorrectly
36+
- Fixed typos
37+
38+
139
# 2023-08-20 [ 1.12.0 ]:
240
---------------------------
341
* bugfixes

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ Contributions of all kinds are welcome. In particular pull requests are apprecia
44

55
## Issues
66

7-
The easiest contribution to make is to [file an issue](https://github.com/TDAmeritrade/stumpy/issues/new). It is beneficial if you perform a cursory search of [existing issues](https://github.com/TDAmeritrade/stumpy/issues?q=is%3Aissue) and it is also helpful, but not necessary, if you can provide clear instruction for how to reproduce a problem. If you have resolved an issue yourself please consider contributing to this repository so others can benefit from your work.
7+
The easiest contribution to make is to [file an issue](https://github.com/stumpy-dev/stumpy/issues/new). It is beneficial if you perform a cursory search of [existing issues](https://github.com/stumpy-dev/stumpy/issues?q=is%3Aissue) and it is also helpful, but not necessary, if you can provide clear instruction for how to reproduce a problem. If you have resolved an issue yourself please consider contributing to this repository so others can benefit from your work.
88

99
## Documentation
1010

1111
Contributing to documentation is the easiest way to get started. Providing simple clear or helpful documentation for new users is critical. Anything that *you* as a new user found hard to understand, or difficult to work out, are excellent places to begin. Contributions to more detailed and descriptive error messages is especially appreciated. To contribute to the documentation please
12-
[fork the project](https://github.com/TDAmeritrade/stumpy/fork) into your own repository, make changes there, and then submit a pull request.
12+
[fork the project](https://github.com/stumpy-dev/stumpy/fork) into your own repository, make changes there, and then submit a pull request.
1313

1414
## Code
1515

16-
Code contributions are always welcome, from simple bug fixes, to new features. To contribute code please [fork the project](https://github.com/TDAmeritrade/stumpy/fork) into your own repository, make changes there, run [black](https://github.com/python/black) and [flake8](http://flake8.pycqa.org/en/latest/) on your code, add tests for bugs/new features, and then submit a pull request. If you are fixing a known issue please add the issue number to the PR message. If you are fixing a new issue feel free to file an issue and then reference it in the PR. You can [browse open issues](https://github.com/TDAmeritrade/stumpy/issues), or consult the [project roadmap](https://github.com/TDAmeritrade/stumpy/issues/1), for potential code contributions. Fixes for issues tagged with 'help wanted' are especially appreciated.
16+
Code contributions are always welcome, from simple bug fixes, to new features. To contribute code please [fork the project](https://github.com/stumpy-dev/stumpy/fork) into your own repository, make changes there, run [black](https://github.com/python/black) and [flake8](http://flake8.pycqa.org/en/latest/) on your code, add tests for bugs/new features, and then submit a pull request. If you are fixing a known issue please add the issue number to the PR message. If you are fixing a new issue feel free to file an issue and then reference it in the PR. You can [browse open issues](https://github.com/stumpy-dev/stumpy/issues) for potential code contributions. Fixes for issues tagged with 'help wanted' are especially appreciated.
1717

1818

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
include LICENSE.txt
2+
prune docs
3+
prune notebooks

0 commit comments

Comments
 (0)