Skip to content

Commit eea88cc

Browse files
committed
trying to fix a few build problems and the logging of nodify
1 parent 90fea5c commit eea88cc

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

docs/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import os
2222
import pathlib
2323
import sys
24+
import typing
2425
from datetime import date
2526
from functools import wraps
2627
from textwrap import indent
@@ -31,7 +32,8 @@
3132

3233
# Currently disabling logging.INFO because of nodify, it would likely be best
3334
# if we are only removing that one!
34-
logging.disable(logging.INFO)
35+
_nodify_logging = logging.getLogger("nodify")
36+
_nodify_logging.setLevel(logging.WARNING)
3537

3638
_doc_root = pathlib.Path(__file__).absolute().parent
3739
# If extensions (or modules to document with autodoc) are in another directory,
@@ -977,7 +979,7 @@ def _setup_autodoc(app):
977979
"""Patch and fix autodoc so we get the correct formatting of the environment"""
978980
from sphinx.ext import autodoc, autosummary
979981
from sphinx.locale import _
980-
from sphinx.util import typing
982+
from sphinx.util import typing as sphinx_typing
981983

982984
# These subsequent class and methods originate from mpi4py
983985
# which is released under BSD-3 clause.
@@ -1023,7 +1025,7 @@ def update_content(self, more_content):
10231025
more_content.append(content, "")
10241026
more_content.append("", "")
10251027
if istypealias(obj, self.name):
1026-
content = _("alias of %s") % typing.restify(obj)
1028+
content = _("alias of %s") % sphinx_typing.restify(obj)
10271029
more_content.append(content, "")
10281030
more_content.append("", "")
10291031
super().update_content(more_content)

docs/release/0.16.0-notes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Changes and improvements
9393
Finally we can write Hamiltonians from `sisl` in the ``HSX``
9494
file format.
9595

96-
For further details see: `https://gitlab.com/siesta-project/siesta/-/issues/183`__
96+
For further details see: `here <https://gitlab.com/siesta-project/siesta/-/issues/183>`__
9797

9898
(:pull:`884`)
9999

src/sisl/physics/bloch.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class Bloch:
3333
The general idea may be summarized in the following equation:
3434
3535
.. math::
36+
3637
\mathbf M_{K}^N =\frac1N
3738
\;
3839
\sum_{
@@ -74,12 +75,14 @@ class Bloch:
7475
Examples
7576
--------
7677
Auto-use finalize of the Toeplitz matrix.
78+
7779
>>> bloch = Bloch([2, 1, 2])
7880
>>> k_unfold = bloch.unfold_points([0] * 3)
7981
>>> M = [func(*args, k=k) for k in k_unfold]
8082
>>> M = bloch.unfold(M, k_unfold)
8183
8284
Manual finalization of the Toeplitz matrix.
85+
8386
>>> bloch = Bloch([2, 1, 2], finalize=False)
8487
>>> k_unfold = bloch.unfold_points([0] * 3)
8588
>>> M = [func(*args, k=k) for k in k_unfold]

0 commit comments

Comments
 (0)