Skip to content

Commit 5f67924

Browse files
authored
Merge pull request #154 from PythonOT/doc
[WIP] Cleanup documentation and examples
2 parents 53f9f32 + 249d46c commit 5f67924

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
name: circleci-redirector
12
on: [status]
23
jobs:
34
circleci_artifacts_redirector_job:

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
# stop the build if there are Python syntax errors or undefined names
3737
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3838
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
39-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+
flake8 examples/ ot/ test/ --count --max-line-length=127 --statistics
4040
- name: Install POT
4141
run: |
4242
pip install -e .

codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ coverage:
1212
comment:
1313
layout: "header, diff, sunburst, uncovered"
1414
behavior: default
15+
codecov:
16+
token: 057953e4-d263-41c0-913c-5d45c0371df9

docs/rtd/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
<meta http-equiv="refresh" content="0; URL=https://PythonOT.github.io">`
1+
<meta http-equiv="refresh" content="0; URL=https://PythonOT.github.io">
2+
3+
# POT: Python Optimal Transport
4+
5+
The documentation has been moved to : [https://PythonOT.github.io](https://PythonOT.github.io)

examples/plot_gromov_barycenter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ def im2mat(I):
8989
return I.reshape((I.shape[0] * I.shape[1], I.shape[2]))
9090

9191

92-
square = pl.imread('../data/square.png').astype(np.float64)[:, :, 2] / 256
93-
cross = pl.imread('../data/cross.png').astype(np.float64)[:, :, 2] / 256
94-
triangle = pl.imread('../data/triangle.png').astype(np.float64)[:, :, 2] / 256
95-
star = pl.imread('../data/star.png').astype(np.float64)[:, :, 2] / 256
92+
square = pl.imread('../data/square.png').astype(np.float64)[:, :, 2]
93+
cross = pl.imread('../data/cross.png').astype(np.float64)[:, :, 2]
94+
triangle = pl.imread('../data/triangle.png').astype(np.float64)[:, :, 2]
95+
star = pl.imread('../data/star.png').astype(np.float64)[:, :, 2]
9696

9797
shapes = [square, cross, triangle, star]
9898

examples/plot_otda_mapping_colors_images.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
estimation [8].
99
1010
[6] Ferradans, S., Papadakis, N., Peyre, G., & Aujol, J. F. (2014). Regularized
11-
discrete optimal transport. SIAM Journal on Imaging Sciences, 7(3),
12-
1853-1882.
11+
discrete optimal transport. SIAM Journal on Imaging Sciences, 7(3), 1853-1882.
1312
[8] M. Perrot, N. Courty, R. Flamary, A. Habrard, "Mapping estimation for
14-
discrete optimal transport", Neural Information Processing Systems (NIPS),
15-
2016.
13+
discrete optimal transport", Neural Information Processing Systems (NIPS), 2016.
1614
1715
"""
1816

0 commit comments

Comments
 (0)