diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5c94de9b..b694b8cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,7 +52,7 @@ jobs: mkdir gh-pages touch gh-pages/.nojekyll cd docs/ - poetry run sphinx-build -b html . _build + poetry run sphinx-build --keep-going -b html . _build cp -r _build/* ../gh-pages/ - name: Deploy documentation diff --git a/mtbp3/stdiso/pdfsummary.py b/mtbp3/stdiso/pdfsummary.py index d6ac4876..d36d6c4f 100644 --- a/mtbp3/stdiso/pdfsummary.py +++ b/mtbp3/stdiso/pdfsummary.py @@ -83,19 +83,6 @@ def __init__(self, path=None): self.outline_list = [] def get_image(self, page_index=0, image_index=0, outfolder=""): - """ - Retrieves an image from the PDF summary. - Args: - page_index (int, optional): The index of the page containing the image. Defaults to 0. - image_index (int, optional): The index of the image within the page. Defaults to 0. - outfolder (str, optional): The folder to save the image file. Defaults to "". - Returns: - str or PIL.Image: If `outfolder` is provided, the function saves the image file and returns the file path as a string. - Otherwise, it returns the image as a PIL.Image object. - Raises: - ValueError: If `page_index` or `image_index` is not a non-negative integer, or if they are out of range. - """ - if (not isinstance(page_index, int)) or (not isinstance(page_index, int)): raise ValueError("page_index and image_index must be non-negative integers") if page_index < 0 or page_index >= self.summary['n_page']: diff --git a/pyproject.toml b/pyproject.toml index c120f3d5..813c0e52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ pandas = "^2.0.0" seaborn = "^0.13.2" [tool.poetry.dev-dependencies] -sphinx = { version = "*", optional = false } +sphinx = { version = "7.4.7", optional = false } myst-nb = { version = "*", optional = false } sphinx-autoapi = { version = "*", optional = false } sphinx_rtd_theme = { version = "*", optional = false }