Skip to content

Commit

Permalink
Merge branch 'mike/3d_xray' into brendt/3d_xray
Browse files Browse the repository at this point in the history
  • Loading branch information
bwohlberg committed Sep 10, 2024
2 parents 685eef3 + 0b63130 commit 9517fec
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ help:
@echo " doctest to run all doctests embedded in the documentation (if enabled)"

clean:
rm $(AUTOSUMMARYDIR)/*
rm -f $(AUTOSUMMARYDIR)/*
rm -rf $(BUILDDIR)/*

html:
Expand Down
8 changes: 4 additions & 4 deletions docs/source/conf/80-scico_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Improve formatting of jax.numpy warning
f.__doc__ = re.sub(
r"^\*\*\* This function is not yet implemented by jax.numpy, and will "
"raise NotImplementedError \*\*\*",
r"raise NotImplementedError \*\*\*",
"**WARNING**: This function is not yet implemented by jax.numpy, "
" and will raise :exc:`NotImplementedError`.",
f.__doc__,
Expand All @@ -52,14 +52,14 @@
flags=re.M,
)
scico.numpy.testing.break_cycles.__doc__ = re.sub(
" __del__\) inside", "__del__\) inside", scico.numpy.testing.break_cycles.__doc__, flags=re.M
r" __del__\) inside", r"__del__\) inside", scico.numpy.testing.break_cycles.__doc__, flags=re.M
)
scico.numpy.testing.assert_raises_regex.__doc__ = re.sub(
"\*args,\n.*\*\*kwargs",
r"\*args,\n.*\*\*kwargs",
"*args, **kwargs",
scico.numpy.testing.assert_raises_regex.__doc__,
flags=re.M,
)
scico.numpy.BlockArray.global_shards.__doc__ = re.sub(
"`Shard`s", "`Shard`\ s", scico.numpy.BlockArray.global_shards.__doc__, flags=re.M
r"`Shard`s", r"`Shard`\ s", scico.numpy.BlockArray.global_shards.__doc__, flags=re.M
)
4 changes: 2 additions & 2 deletions docs/source/conf/81-scico_scipy.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
# Remove entire numpydoc references section
f.__doc__ = re.sub(r"References\n----------\n.*\n", "", f.__doc__, flags=re.DOTALL)
# Remove problematic citation
f.__doc__ = re.sub("See \[dlmf\]_ for details.", "", f.__doc__, re.M)
f.__doc__ = re.sub("\[dlmf\]_", "NIST DLMF", f.__doc__, re.M)
f.__doc__ = re.sub(r"See \[dlmf\]_ for details.", "", f.__doc__, re.M)
f.__doc__ = re.sub(r"\[dlmf\]_", "NIST DLMF", f.__doc__, re.M)

# Fix indentation problems
scico.scipy.special.sph_harm.__doc__ = re.sub(
Expand Down
6 changes: 3 additions & 3 deletions docs/source/conf/85-dtype_typehints.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def typehints_formatter_function(annotation, config):
DType: ":obj:`~scico.typing.DType`",
# Compound types involving DType must be added here to avoid their DType
# component being expanded in the docs.
Optional[DType]: ":obj:`~typing.Optional`\ [\ :obj:`~scico.typing.DType`\ ]",
Optional[DType]: r":obj:`~typing.Optional`\ [\ :obj:`~scico.typing.DType`\ ]",
Union[DType, Sequence[DType]]: (
":obj:`~typing.Union`\ [\ :obj:`~scico.typing.DType`\ , "
":obj:`~typing.Sequence`\ [\ :obj:`~scico.typing.DType`\ ]]"
r":obj:`~typing.Union`\ [\ :obj:`~scico.typing.DType`\ , "
r":obj:`~typing.Sequence`\ [\ :obj:`~scico.typing.DType`\ ]]"
),
AxisIndex: ":obj:`~scico.typing.AxisIndex`",
ArrayIndex: ":obj:`~scico.typing.ArrayIndex`",
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/ct_large_projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import jax

from scico.examples import create_block_phantom
from scico.linop import XRayTransform3D
from scico.linop.xray import XRayTransform3D

N = 1000
num_views = 10
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/ct_projector_comparison_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import scico.linop.xray.astra as astra
from scico import plot
from scico.linop import XRayTransform2D
from scico.linop.xray import XRayTransform2D
from scico.util import Timer

"""
Expand Down

0 comments on commit 9517fec

Please sign in to comment.