Skip to content

Commit

Permalink
Merge pull request #109 from deepanshs/djs/update_requirements
Browse files Browse the repository at this point in the history
update sphinx requirement
  • Loading branch information
deepanshs authored May 19, 2024
2 parents b3cac04 + b8e33e9 commit 887a36c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sphinx:
configuration: docs/conf.py

build:
os: "ubuntu-20.04"
os: ubuntu-22.04
tools:
python: "3.12"

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"gallery_dirs": [
"auto_examples",
"auto_tutorials",
], # path to where to save gallery generated output
], # path to where to save gallery-generated output
"within_subsection_order": FileNameSortKey,
"subsection_order": ExplicitOrder(
[
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ requests>=2.21.0

# Building Docs requirements
sphinxjp.themes.basicstrap
sphinx<5.0.0
sphinx<6.0
sphinx-gallery>0.6.2
pillow>=7.1.2
breathe>=4.34.0
Expand Down
4 changes: 3 additions & 1 deletion examples/pixel/plot_0_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@
# Now, to visualize the dataset as an RGB image,
import matplotlib.pyplot as plt

img_float = ImageData.astype(float)
img_float /= 256.0 # convert int8 values to [0, 1] range for image plot
ax = plt.subplot(projection="csdm")
ax.imshow(ImageData, origin="upper")
ax.imshow(img_float, origin="upper")
plt.tight_layout()

plt.show()
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ codecov

# doc build
sphinxjp.themes.basicstrap
sphinx>=2.0
sphinx<6.0
sphinx-gallery>=0.6.2
pillow>=7.1.2 # for sphinx-gallery images
sphinx_copybutton>=0.3.0

0 comments on commit 887a36c

Please sign in to comment.