-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add autoinformation Add code from https://github.com/Frederic-vW/AIF-PAIF * wip * wip * WIP * Update autoinformation.py * wip * Change entropy to use joint_entropy_history for easier maintenance * Add ais, aif, paif Finish implementation skeleton and test against original lib * wip * [wip] Add excess_entropy_rate * WIP * WIP * WIP * WIP * Fix style * Add changes to changelog * Fix residuals * WIP * WIP * WIP * Fix style * fix style * Fix import * Fix docs (wip) * Fix style and docs * clean-up and fix type-hints in entropy * Update docs/source/dev/changes/latest.rst Co-authored-by: Mathieu Scheltienne <[email protected]> * Update pycrostates/segmentation/_base.py Co-authored-by: Mathieu Scheltienne <[email protected]> * Fix @mscheltienne review * Update _typing.py * Update docs/source/dev/changes/latest.rst Co-authored-by: Mathieu Scheltienne <[email protected]> * refractor public and private API * Fix unused import * Fix bib file * Fix segmentation.entropy * Fix docstring * Fix test name * Fix footcite ? * Use :t: instead of :p: * Fix citation in autosummary * Change ignore_self to ignore_repetitions * Add ignore_repetitions docstring * Deprecate ignore_self in favour of ignore_repetitions * Add test for deprecated * Fix style * Fix docs * nitpick and typos * better deprecation * tutorial fixes * fix tutorial title * fix more * fix ruff * rm deprecation test function * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add state_to_ignore in docdict * Add log_base and labels_info to docdict * Add segmentation to docdict * Dev aifpaif (#152) * updating 10_entropy notebook * updating 10_entropy notebook * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update tutorial export ipynb to .py Add references * Update 10_entropy.py * Update 10_entropy.py * Update 10_entropy.py * Update 10_entropy.py * Update 10_entropy.py * Update 10_entropy.py * Update 10_entropy.py * Update 10_entropy.py * Update 10_entropy.py * updating 10_entropy notebook * Add authors * Update 10_entropy.py * Update 10_entropy.py * Update 10_entropy.py --------- Co-authored-by: “Frederic-vW” <“[email protected]”> Co-authored-by: Victor Férat <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * rm file =61.0.0 * better docstring format * rm unused bibliographic item * clean-up tutorial format * better documentation makefiles * a couple more clean-ups * better documentation build configuration * fix missed * fix dead links * fix missed * Add optipng dependency * Update .readthedocs.yaml --------- Co-authored-by: Mathieu Scheltienne <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Frederic-vW <[email protected]> Co-authored-by: “Frederic-vW” <“[email protected]”>
- Loading branch information
1 parent
8c495f7
commit 146cad9
Showing
16 changed files
with
1,326 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,5 @@ build: | |
os: ubuntu-20.04 | ||
tools: | ||
python: "3.10" | ||
apt_packages: | ||
- optipng |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXOPTS ?= -nWT --keep-going | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
.PHONY: help Makefile clean html html-noplot linkcheck linkcheck-grep view | ||
|
||
first_target: help | ||
|
||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
@echo "Please use \`make <target>' where <target> is one of" | ||
@echo " html to make standalone HTML files" | ||
@echo " html-noplot to make standalone HTML files without plotting" | ||
@echo " clean to clean HTML files" | ||
@echo " linkcheck to check all external links for integrity" | ||
@echo " linkcheck-grep to grep the linkcheck result" | ||
@echo " view to view the built HTML" | ||
|
||
html: | ||
$(SPHINXBUILD) source build -b html $(SPHINXOPTS) | ||
|
||
html-noplot: | ||
$(SPHINXBUILD) source build -b html $(SPHINXOPTS) -D plot_gallery=0 | ||
|
||
clean: | ||
rm -rf build linkcheck source/generated source/api/generated | ||
|
||
linkcheck: | ||
$(SPHINXBUILD) source linkcheck -b linkcheck -D plot_gallery=0 | ||
|
||
.PHONY: help Makefile | ||
linkcheck-grep: | ||
@! grep -h "^.*:.*: \[\(\(local\)\|\(broken\)\)\]" linkcheck/output.txt | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
view: | ||
@python -c "import webbrowser; webbrowser.open_new_tab('file://$(PWD)/build/index.html')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,55 @@ | ||
@ECHO OFF | ||
@echo off | ||
|
||
pushd %~dp0 | ||
REM Minimal makefile for Sphinx documentation | ||
|
||
REM Command file for Sphinx documentation | ||
REM Set default options and commands | ||
set SPHINXOPTS=-nWT --keep-going | ||
set SPHINXBUILD=sphinx-build | ||
|
||
if "%SPHINXBUILD%" == "" ( | ||
set SPHINXBUILD=sphinx-build | ||
) | ||
set SOURCEDIR=source | ||
set BUILDDIR=build | ||
|
||
if "%1" == "" goto help | ||
|
||
%SPHINXBUILD% >NUL 2>NUL | ||
if errorlevel 9009 ( | ||
echo. | ||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx | ||
echo.installed, then set the SPHINXBUILD environment variable to point | ||
echo.to the full path of the 'sphinx-build' executable. Alternatively you | ||
echo.may add the Sphinx directory to PATH. | ||
echo. | ||
echo.If you don't have Sphinx installed, grab it from | ||
echo.http://sphinx-doc.org/ | ||
exit /b 1 | ||
) | ||
|
||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
goto end | ||
if "%1" == "html" goto html | ||
if "%1" == "html-noplot" goto html-noplot | ||
if "%1" == "clean" goto clean | ||
if "%1" == "linkcheck" goto linkcheck | ||
if "%1" == "linkcheck-grep" goto linkcheck-grep | ||
if "%1" == "view" goto view | ||
|
||
REM Define targets | ||
:help | ||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
echo Please use `make ^<target^>` where ^<target^> is one of | ||
echo html to make standalone HTML files | ||
echo html-noplot to make standalone HTML files without plotting | ||
echo clean to clean HTML files | ||
echo linkcheck to check all external links for integrity | ||
echo linkcheck-grep to grep the linkcheck result | ||
echo view to view the built HTML | ||
goto :eof | ||
|
||
:html | ||
%SPHINXBUILD% source build -b html %SPHINXOPTS% | ||
goto :eof | ||
|
||
:html-noplot | ||
%SPHINXBUILD% source build -b html %SPHINXOPTS% -D plot_gallery=0 | ||
goto :eof | ||
|
||
:clean | ||
rmdir /s /q build linkcheck source\generated source\api\generated | ||
goto :eof | ||
|
||
:linkcheck | ||
%SPHINXBUILD% source linkcheck -b linkcheck -D plot_gallery=0 | ||
goto :eof | ||
|
||
:linkcheck-grep | ||
findstr /C:"[broken]" linkcheck\output.txt > nul | ||
if %errorlevel% equ 0 ( | ||
echo Lines with [broken]: | ||
findstr /C:"[broken]" linkcheck\output.txt | ||
) else ( | ||
echo No lines with [broken] found. | ||
) | ||
goto :eof | ||
|
||
:end | ||
popd | ||
:view | ||
python -c "import webbrowser; webbrowser.open_new_tab(r'file:///%cd%\build\index.html')" | ||
goto :eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.