-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* xdate works for overall series correlation * Added code for creating bins and dividing series into segments * Cleaning up and commenting related to xdate * series_corr works but is inefficient * WIP changes * Added comments, updated working jupyter notebook * Changes since start of fall semester * variance stabiliization produces accurate values * Unit tests for readers, summary, stats and tbrm * Added unit tests for detrend and chron * Added tests for chron_stabilized, series_corr and writers * Fixed merge conflicts * v0.1 release * Fixing the rwl reader and writer problem * Create pypi_release.yml * push for workflow (#54) * Update pypi_release.yml * Update pyproject.toml * xdate works for overall series correlation * series_corr works but is inefficient * WIP changes * Added comments, updated working jupyter notebook * Changes since start of fall semester * variance stabiliization produces accurate values * Unit tests for readers, summary, stats and tbrm * Added tests for chron_stabilized, series_corr and writers * v0.1 release * Attempt at fixing dependency issues * Create pypi_release.yml * Update pypi_release.yml * Modification to readers plus small changes to dplpy and pyproject (#55) * mostly change to readers for RWL files 1. change readers to handle series IDs of different lengths and the potential for negative (B.C.) years 2. removed directory change in __init__ so that default is path where the notebook or script is * Update __init__.py * Update readers.py --------- Co-authored-by: Michele Cosi <[email protected]> * Revert "Modification to readers plus small changes to dplpy and pyproject (#55)" This reverts commit 68b9aa1. * Update pyproject.toml (#57) * Update update.txt * Github workflow for unit testing * Added github workflow to run integration tests * Fixed issue that caused integs to fail in previous commit * Changed write function in writers.py to writers * Fixed deprecation warning for \d regex expression --------- Co-authored-by: Ifeoluwa Ale <[email protected]> Co-authored-by: cosimichele <[email protected]> Co-authored-by: Ifeoluwa Ale <[email protected]> Co-authored-by: Michele Cosi <[email protected]> Co-authored-by: Kevin Anchukaitis <[email protected]>
- Loading branch information
1 parent
9b6bf02
commit 2cdb217
Showing
16 changed files
with
95 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Python package | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] # Goal is to run tests for different python versions | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r ${{ matrix.python-version }}-requirements.txt | ||
pip install pytest pytest-cov | ||
- name: Run unit tests | ||
run: | | ||
pytest tests/unit --cov=dplpy | ||
- name: Run integ tests | ||
run: | | ||
pytest tests/integs -rA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
numpy==1.22.4 | ||
statsmodels==0.13.5 | ||
matplotlib==3.8.0 | ||
csaps==1.1.0 | ||
pandas==2.0.0 | ||
scipy==1.11.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
numpy==1.23.2 | ||
statsmodels==0.13.5 | ||
matplotlib==3.8.0 | ||
csaps==1.1.0 | ||
pandas==2.0.0 | ||
scipy==1.11.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
numpy==1.26.0 | ||
statsmodels==0.14.0 | ||
matplotlib==3.8.0 | ||
csaps==1.1.0 | ||
pandas==2.0.0 | ||
scipy==1.11.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters