Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

polars #1

Open
wants to merge 86 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
e2a94b8
Update
rinarakaki Aug 18, 2023
4a0c11c
Update
rinarakaki Aug 18, 2023
e1329a1
Update
rinarakaki Aug 18, 2023
a552128
Update
rinarakaki Aug 18, 2023
ca93892
Update
rinarakaki Aug 18, 2023
92c9078
Update
rinarakaki Aug 18, 2023
5b00763
Update
rinarakaki Aug 18, 2023
54fd427
Update
rinarakaki Aug 18, 2023
ea49a2b
Update
rinarakaki Aug 18, 2023
7ddd2fd
Update
rinarakaki Aug 18, 2023
23d971b
Update
rinarakaki Aug 18, 2023
e191b54
Update
rinarakaki Aug 19, 2023
26618ec
Update
rinarakaki Aug 19, 2023
79f1a99
Update
rinarakaki Aug 19, 2023
5ec15fd
Update
rinarakaki Aug 21, 2023
94bfd16
Update
rinarakaki Aug 21, 2023
ab1e1c4
Update
rinarakaki Aug 21, 2023
bb6c333
Update
rinarakaki Aug 21, 2023
b6d249f
Update
rinarakaki Aug 21, 2023
e172bb0
Update
rinarakaki Aug 21, 2023
10566fa
Update
rinarakaki Aug 21, 2023
459b923
Update
rinarakaki Aug 21, 2023
4ff9603
Update
rinarakaki Aug 21, 2023
f538e83
Update
rinarakaki Aug 21, 2023
eb070af
Update
rinarakaki Aug 21, 2023
94ed708
Update
rinarakaki Aug 21, 2023
6999bb0
Update utils.py
rinarakaki Aug 21, 2023
31b93ba
Update ca.py
rinarakaki Aug 21, 2023
b714699
Update test_pca.py
rinarakaki Aug 21, 2023
cd25357
Update
rinarakaki Aug 21, 2023
4041421
Update
rinarakaki Aug 21, 2023
1cf4e23
Update
rinarakaki Aug 21, 2023
122ac5c
Update
rinarakaki Aug 21, 2023
224289f
Merge branch 'main' into polars
rinarakaki Aug 21, 2023
bb20ed8
Update
rinarakaki Aug 21, 2023
529a611
Update
rinarakaki Aug 21, 2023
a39cf93
Update
rinarakaki Aug 21, 2023
bc1c34b
Update
rinarakaki Aug 21, 2023
36b5444
Update
rinarakaki Aug 21, 2023
1a41815
Update
rinarakaki Aug 21, 2023
f4961f6
Update
rinarakaki Aug 21, 2023
9a99335
Update
rinarakaki Aug 21, 2023
e89a689
Merge branch 'main' into polars
rinarakaki Aug 21, 2023
9be037e
Update
rinarakaki Aug 21, 2023
262f0f7
Update
rinarakaki Aug 21, 2023
3452bbc
Update
rinarakaki Aug 21, 2023
edea0fa
Update
rinarakaki Aug 21, 2023
f939e0a
Update
rinarakaki Aug 21, 2023
32092a1
Update
rinarakaki Aug 21, 2023
da23de2
Update
rinarakaki Aug 21, 2023
407c003
Update
rinarakaki Aug 21, 2023
447b3a3
Update
rinarakaki Aug 21, 2023
b84ddb9
Update
rinarakaki Aug 21, 2023
22a0d3a
Update
rinarakaki Aug 21, 2023
dcc2bc3
Update
rinarakaki Aug 21, 2023
b5b61c8
Update
rinarakaki Aug 21, 2023
3c1d2f8
Update test_pca.py
rinarakaki Aug 21, 2023
06cf847
Update
rinarakaki Aug 21, 2023
5dfa183
Update action.yaml
rinarakaki Aug 23, 2023
27a11a1
Update svd.py
rinarakaki Aug 23, 2023
a9ddc88
Update ca.py
rinarakaki Aug 23, 2023
6a683f8
Update famd.py
rinarakaki Aug 23, 2023
7f0a595
Update gpa.py
rinarakaki Aug 23, 2023
c4beadf
Update mca.py
rinarakaki Aug 23, 2023
e45abff
Update mfa.py
rinarakaki Aug 23, 2023
7f8d3e6
Update pca.py
rinarakaki Aug 23, 2023
7d906ad
Update utils.py
rinarakaki Aug 23, 2023
14fbc7f
Update plot.py
rinarakaki Aug 23, 2023
cb64eec
Update __init__.py
rinarakaki Aug 23, 2023
e2efde9
Update pyproject.toml
rinarakaki Aug 23, 2023
01200a9
Update unit-tests.yml
rinarakaki Aug 23, 2023
48be566
Rename unit-tests.yml to unit-tests.yaml
rinarakaki Aug 23, 2023
a2235da
Update pyproject.toml
rinarakaki Aug 23, 2023
b4b73cb
Update Makefile
rinarakaki Aug 23, 2023
f5ab482
Update action.yaml
rinarakaki Aug 23, 2023
3a142b9
Update and rename unit-tests.yaml to pytest.yaml
rinarakaki Aug 23, 2023
003cb7b
Update and rename action.yaml to action.yaml
rinarakaki Aug 23, 2023
4d8dc73
Update and rename code-quality.yml to ruff.yaml
rinarakaki Aug 23, 2023
a09bde2
Update and rename hugo.yml to hugo.yaml
rinarakaki Aug 23, 2023
b5024cd
Update
rinarakaki Aug 23, 2023
e41740d
Update action.yaml
rinarakaki Aug 23, 2023
fb82548
Update action.yaml
rinarakaki Aug 23, 2023
4f6bbd3
Update ruff.yaml
rinarakaki Aug 23, 2023
86f1435
Update pyproject.toml
rinarakaki Aug 23, 2023
f16f9d1
Update .pre-commit-config.yaml
rinarakaki Aug 23, 2023
b09349f
Update pytest.yaml
rinarakaki Aug 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions .github/actions/install-env/action.yaml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/actions/install/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: install
runs:
using: "composite"
steps:
- name: actions/checkout@v3
uses: actions/checkout@v3

- name: actions/setup-python@v4
# id: setup-python
uses: actions/setup-python@v4
with:
python-version: |
3.10
3.11
cache: pip

# - name: actions/cache@v3
# uses: actions/cache@v3
# with:
# path: .venv
# key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: pip3-install
shell: bash
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: pip3 install .

- name: Install xarray
shell: bash
run: pip3 install xarray

- name: Install R
uses: r-lib/actions/setup-r@v2

- name: Install R packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 1
working-directory: tests
17 changes: 0 additions & 17 deletions .github/workflows/code-quality.yml

This file was deleted.

18 changes: 9 additions & 9 deletions .github/workflows/hugo.yml → .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,24 @@ jobs:
- name: Install Dart Sass Embedded
run: sudo snap install dart-sass-embedded

- name: Checkout
- name: actions/checkout@v3
uses: actions/checkout@v3
with:
submodules: recursive

- name: Install environment
uses: ./.github/actions/install-env
uses: ./.github/actions/install

- name: Execute notebooks
run: poetry run jupyter nbconvert --execute --to notebook --inplace docs/content/*.ipynb
run: python3 -m jupyter nbconvert --execute --to notebook --inplace docs/content/*.ipynb

- name: Convert notebooks
run: poetry run jupyter nbconvert --to markdown docs/content/*.ipynb
run: python3 -m jupyter nbconvert --to markdown docs/content/*.ipynb

- name: Clean MarkDown
run: (for f in docs/content/*.md; do sed -e '/<script/,/<\/script>/{/^$/d;}' ${f} > ${f}.tmp; mv ${f}.tmp ${f}; done)

- name: Setup Pages
- name: actions/configure-pages@v3
id: pages
uses: actions/configure-pages@v3

Expand All @@ -70,8 +70,8 @@ jobs:
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
- name: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v2
with:
path: ./docs/public

Expand All @@ -83,6 +83,6 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
- name: actions/deploy-pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v2
14 changes: 14 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: pytest

on: [push]

jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: actions/checkout@v3
uses: actions/checkout@v3
- name: actions/install
uses: ./.github/actions/install
- run: pip3 install pytest
- run: python3 -m pytest
17 changes: 17 additions & 0 deletions .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: ruff

on: [push]

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
- run: pip3 install ruff
- name: ruff
run: |
# stop the build if there are Python syntax errors or undefined names
python3 -m ruff --format=github --select=E9,F63,F7,F82 --target-version=py37 .
# default set of ruff rules with GitHub Annotations
python3 -m ruff --format=github --target-version=py37 .
17 changes: 0 additions & 17 deletions .github/workflows/unit-tests.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ docs/content/*.md
!docs/content/*.ipynb
dist
public
*.egg-info
14 changes: 0 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,3 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending

- repo: local
hooks:
- id: black
name: black
language: python
types: [python]
entry: black

- id: ruff
name: ruff
language: python
types: [python]
entry: ruff
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
execute-notebooks:
poetry run jupyter nbconvert --execute --to notebook --inplace docs/content/*.ipynb
python3 -m jupyter nbconvert --execute --to notebook --inplace docs/content/*.ipynb

render-notebooks:
poetry run jupyter nbconvert --to markdown docs/content/*.ipynb
python3 -m jupyter nbconvert --to markdown docs/content/*.ipynb
(for f in docs/content/*.md; do sed -e '/<script/,/<\/script>/{/^$/d;}' ${f} > ${f}.tmp; mv ${f}.tmp ${f}; done)
Loading
Loading