From 8c0a5bc1e362737b2fb6b5d1b5544a55914e8675 Mon Sep 17 00:00:00 2001 From: deepanshs <21365911+deepanshs@users.noreply.github.com> Date: Fri, 17 May 2024 02:29:58 -0400 Subject: [PATCH 1/4] update sphinx requirement --- .readthedocs.yaml | 2 +- docs/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 4c06beb..35d5bdd 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,7 +10,7 @@ sphinx: configuration: docs/conf.py build: - os: "ubuntu-20.04" + os: ubuntu-22.04 tools: python: "3.12" diff --git a/docs/requirements.txt b/docs/requirements.txt index 06971f2..d2ba0f6 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -9,7 +9,7 @@ requests>=2.21.0 # Building Docs requirements sphinxjp.themes.basicstrap -sphinx<5.0.0 +sphinx>5.0.0 sphinx-gallery>0.6.2 pillow>=7.1.2 breathe>=4.34.0 From 20755a7b222c3f6a50621b08ee86f31565537472 Mon Sep 17 00:00:00 2001 From: deepanshs <21365911+deepanshs@users.noreply.github.com> Date: Sun, 19 May 2024 17:24:12 -0400 Subject: [PATCH 2/4] update sphinx version requirement --- docs/conf.py | 2 +- docs/requirements.txt | 2 +- requirements-dev.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 4199b8e..5166650 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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( [ diff --git a/docs/requirements.txt b/docs/requirements.txt index d2ba0f6..fdf1ace 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -9,7 +9,7 @@ requests>=2.21.0 # Building Docs requirements sphinxjp.themes.basicstrap -sphinx>5.0.0 +sphinx<7 sphinx-gallery>0.6.2 pillow>=7.1.2 breathe>=4.34.0 diff --git a/requirements-dev.txt b/requirements-dev.txt index 6bf3f36..54b59d7 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -23,7 +23,7 @@ codecov # doc build sphinxjp.themes.basicstrap -sphinx>=2.0 +sphinx<7.0 sphinx-gallery>=0.6.2 pillow>=7.1.2 # for sphinx-gallery images sphinx_copybutton>=0.3.0 From 9d440e4ffcc607b72c256e28175fb5c7d9558576 Mon Sep 17 00:00:00 2001 From: deepanshs <21365911+deepanshs@users.noreply.github.com> Date: Sun, 19 May 2024 18:24:24 -0400 Subject: [PATCH 3/4] fix image plot issue with latest matplotlib --- examples/pixel/plot_0_image.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/pixel/plot_0_image.py b/examples/pixel/plot_0_image.py index 34e8ab4..6b0043e 100644 --- a/examples/pixel/plot_0_image.py +++ b/examples/pixel/plot_0_image.py @@ -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() From b8e33e9ea985ff3f08c2c2140807067cf5e5b135 Mon Sep 17 00:00:00 2001 From: deepanshs <21365911+deepanshs@users.noreply.github.com> Date: Sun, 19 May 2024 18:31:57 -0400 Subject: [PATCH 4/4] update sphinx version --- docs/requirements.txt | 2 +- requirements-dev.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index fdf1ace..bbaf013 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -9,7 +9,7 @@ requests>=2.21.0 # Building Docs requirements sphinxjp.themes.basicstrap -sphinx<7 +sphinx<6.0 sphinx-gallery>0.6.2 pillow>=7.1.2 breathe>=4.34.0 diff --git a/requirements-dev.txt b/requirements-dev.txt index 54b59d7..4bfda29 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -23,7 +23,7 @@ codecov # doc build sphinxjp.themes.basicstrap -sphinx<7.0 +sphinx<6.0 sphinx-gallery>=0.6.2 pillow>=7.1.2 # for sphinx-gallery images sphinx_copybutton>=0.3.0