Skip to content

Commit af97d31

Browse files
committed
bump version to v0.1.0
2 parents f610b6f + a34f143 commit af97d31

File tree

14 files changed

+494
-63
lines changed

14 files changed

+494
-63
lines changed

.github/workflows/links.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: DocLinks
2+
3+
on:
4+
push:
5+
branches: [ "main", "docs" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
schedule:
9+
- cron: '0 0 1 * *'
10+
11+
jobs:
12+
markdown-link-check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@master
16+
- uses: gaurav-nelson/github-action-markdown-link-check@v1

.github/workflows/nb-pkg.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Notebooks-pkg
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
build_linux:
7+
name: Build ubuntu wheel for python${{ matrix.python-version }}
8+
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python-version: ['3.8', '3.9', '3.10']
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
python -m pip install forestplot
23+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
24+
if [ -f examples/requirements.txt ]; then pip install -r examples/requirements.txt; fi
25+
- name: Test notebook(s)
26+
run: |
27+
cd examples && runpynb readme-examples --sequence

.github/workflows/nb.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Notebooks
2+
3+
on:
4+
push:
5+
branches: [ "main", "patch", "feature" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build_linux:
11+
name: Build ubuntu wheel for python${{ matrix.python-version }}
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: ['3.9']
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install .
27+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28+
if [ -f examples/requirements.txt ]; then pip install -r examples/requirements.txt; fi
29+
- name: Test notebook(s)
30+
run: |
31+
cd examples
32+
runpynb get-sleep --sequence
33+
runpynb readme-examples --sequence

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*.xlsx
44
scratch/*
55
forestplot/scratch/*
6-
examples/*
76

87
# Created by https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks
98
# Edit at https://www.toptal.com/developers/gitignore?templates=python,jupyternotebooks

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Lucas Shen Y. S.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 351 additions & 21 deletions
Large diffs are not rendered by default.
-235 Bytes
Loading
39 Bytes
Loading

docs/images/main.png

192 Bytes
Loading

examples/get-sleep.ipynb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"id": "e05019fe",
2828
"metadata": {
2929
"ExecuteTime": {
30-
"end_time": "2022-07-30T10:58:51.984970Z",
31-
"start_time": "2022-07-30T10:58:29.358300Z"
30+
"end_time": "2022-09-18T05:01:11.859723Z",
31+
"start_time": "2022-09-18T05:01:04.107411Z"
3232
}
3333
},
3434
"outputs": [
@@ -199,8 +199,8 @@
199199
"id": "e66b467a",
200200
"metadata": {
201201
"ExecuteTime": {
202-
"end_time": "2022-07-30T10:58:52.025067Z",
203-
"start_time": "2022-07-30T10:58:51.984970Z"
202+
"end_time": "2022-09-18T05:01:11.892027Z",
203+
"start_time": "2022-09-18T05:01:11.862006Z"
204204
},
205205
"code_folding": [],
206206
"scrolled": true
@@ -270,7 +270,7 @@
270270
"source": [
271271
"# Prep variable lablels (fold cell)\n",
272272
"# varlabels: http://fmwww.bc.edu/ec-p/data/wooldridge/sleep75.des\n",
273-
"df_label = (pd.read_csv('data/sleep75-des.csv')\n",
273+
"df_label = (pd.read_csv('data/sleep75-des.csv', encoding=\"ISO-8859-1\")\n",
274274
" .assign(label=lambda df: df['des'].str.encode('ascii', 'ignore').str.decode('ascii'))\n",
275275
" .drop(['des'], axis=1)\n",
276276
" .set_index('var')\n",
@@ -287,8 +287,8 @@
287287
"id": "efdb6621",
288288
"metadata": {
289289
"ExecuteTime": {
290-
"end_time": "2022-07-30T10:58:56.694344Z",
291-
"start_time": "2022-07-30T10:58:52.025067Z"
290+
"end_time": "2022-09-18T05:01:14.801972Z",
291+
"start_time": "2022-09-18T05:01:11.897008Z"
292292
},
293293
"scrolled": true
294294
},
@@ -865,8 +865,8 @@
865865
"id": "c988902c",
866866
"metadata": {
867867
"ExecuteTime": {
868-
"end_time": "2022-07-30T10:58:56.758504Z",
869-
"start_time": "2022-07-30T10:58:56.694344Z"
868+
"end_time": "2022-09-18T05:01:14.852081Z",
869+
"start_time": "2022-09-18T05:01:14.801972Z"
870870
}
871871
},
872872
"outputs": [],
@@ -884,8 +884,8 @@
884884
"id": "d0b63fbd",
885885
"metadata": {
886886
"ExecuteTime": {
887-
"end_time": "2022-07-30T10:58:56.790581Z",
888-
"start_time": "2022-07-30T10:58:56.766535Z"
887+
"end_time": "2022-09-18T05:01:14.876068Z",
888+
"start_time": "2022-09-18T05:01:14.852081Z"
889889
},
890890
"scrolled": true
891891
},

0 commit comments

Comments
 (0)