Skip to content

Commit 01b33a5

Browse files
authored
doc: added logo (#125)
New pyproximal logo is added, and some numpy types are fixed based on changes introduced in numpy 1.20.0
1 parent c9a7e06 commit 01b33a5

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

docs/source/_static/pyproximal.png

16.2 KB
Loading
17.1 KB
Loading

docs/source/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@
7777

7878
# Sphinx project configuration
7979
templates_path = ['_templates']
80-
exclude_patterns = ['_build', '**.ipynb_checkpoints']
80+
exclude_patterns = ["_build", "**.ipynb_checkpoints", "**.ipynb", "**.md5"]
8181
source_suffix = '.rst'
82+
8283
# The encoding of source files.
8384
source_encoding = 'utf-8-sig'
8485
master_doc = 'index'
@@ -102,7 +103,7 @@
102103
html_last_updated_fmt = '%b %d, %Y'
103104
html_title = 'PyProximal'
104105
html_short_title = 'PyProximal'
105-
html_logo = 'pyproximal.png'
106+
html_logo = '_static/pyproximal.png'
106107
html_favicon = 'favicon.ico'
107108
html_extra_path = []
108109
pygments_style = 'default'
@@ -116,6 +117,10 @@
116117
html_theme_options = {
117118
'logo_only': True,
118119
'display_version': True,
120+
"logo": {
121+
"image_light": "pyproximal_b.png",
122+
"image_dark": "pyproximal.png",
123+
}
119124
}
120125
html_context = {
121126
'menu_links_name': 'Repository',

pyproximal/proximal/Simplex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __call__(self, x, tol=1e-8):
4949
x = x.reshape(self.dims)
5050
if self.axis == 0:
5151
x = x.T
52-
c = np.zeros(self.dims[self.otheraxis], dtype=np.bool)
52+
c = np.zeros(self.dims[self.otheraxis], dtype=bool)
5353
for i in range(self.dims[self.otheraxis]):
5454
c[i] = not (np.abs(np.sum(x)) - self.radius < tol or np.any(x[i] < 0))
5555
c = np.all(c)

tutorials/brainmri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
sigma = 0.04
9797
l1 = pyproximal.proximal.L21(ndim=2)
9898
l2 = pyproximal.proximal.L2(Op=Dop, b=d.ravel(), niter=50, warm=True)
99-
Gop = sigma * pylops.Gradient(dims=gt.shape, edge=True, kind='forward', dtype=np.complex)
99+
Gop = sigma * pylops.Gradient(dims=gt.shape, edge=True, kind='forward', dtype=np.complex128)
100100

101101
L = sigma ** 2 * 8
102102
tau = .99 / np.sqrt(L)

tutorials/segmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
# closest class. This is equivalent to solving our cost function and ignoring
4747
# the term that minimizes the total interface between the sets. As a result
4848
# our segmentation boundaries will be very crisp.
49-
ic = np.floor(ig / dcl).astype(np.int)
49+
ic = np.floor(ig / dcl).astype(np.int64)
5050

5151
###############################################################################
5252
# On the other hand, we can choose to get much smoother boundaries if we use

0 commit comments

Comments
 (0)