Skip to content

Commit

Permalink
adding coverage report badge
Browse files Browse the repository at this point in the history
  • Loading branch information
mcencini committed Mar 29, 2024
1 parent 4f3f4d8 commit 589617a
Show file tree
Hide file tree
Showing 17 changed files with 80 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Style checking

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

workflow_dispatch:

env:
PYTHON_VERSION: "3.10"

jobs:
linter-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip

- name: Install Python deps
shell: bash
run: |
python -m pip install --upgrade pip
python -m pip install -e .[test,dev]
- name: Black Check
shell: bash
run: black . --diff --color --check

- name: ruff Check
shell: bash
run: ruff src
1 change: 1 addition & 0 deletions _README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<p align="left">
<a href="https://www.codefactor.io/repository/github/infn-predator/deep-mr"><img src="https://www.codefactor.io/repository/github/infn-predator/deep-mr/badge" alt="CodeFactor" /></a>
<a href="https://codecov.io/gh/INFN-PREDATOR/deep-mr" ><img src="https://codecov.io/gh/INFN-PREDATOR/deep-mr/graph/badge.svg?token=OCVA8NGK0E"/></a>
</p>
A framework to accelerate the development of modern MR acquisition and reconstruction methods, focused on quantitative MRI.

Expand Down
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ myst-nb
myst-parser
sphinx==6.2.1
sphinx-autoapi
sphinx-book-theme
sphinx-book-theme
sphinx-gallery
29 changes: 29 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,18 @@
"sphinx.ext.autosummary",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinx.ext.intersphinx",
"sphinx_gallery.gen_gallery",
]
autosummary_generate = True
autosummary_imported_members = True

intersphinx_mapping = {
"numpy": ("http://docs.scipy.org/doc/numpy/", None),
"torch": ("https://docs.pytorch.org/2.0/", None),
"python": ("https://docs.python.org/3.4", None),
}

autodoc_mock_imports = [
"dacite",
"deepinv",
Expand All @@ -56,6 +64,27 @@
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

sphinx_gallery_conf = {
"examples_dirs": ["../../tutorials/"],
"gallery_dirs": "auto_examples", # path to where to save gallery generated output
"filename_pattern": "/demo_",
"run_stale_examples": True,
"ignore_pattern": r"__init__\.py",
"reference_url": {
# The module you locally document uses None
"sphinx_gallery": None
},
# directory where function/class granular galleries are stored
"backreferences_dir": "gen_modules/backreferences",
# Modules for which function/class level galleries are created. In
# this case sphinx_gallery and numpy in a tuple of strings.
"doc_module": ("deepmr"),
# objects to exclude from implicit backreferences. The default option
# is an empty set, i.e. exclude nothing.
"exclude_implicit_doc": {},
"nested_sections": False,
}

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
2 changes: 1 addition & 1 deletion docs/source/core/prox.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ iterative reconstructions as regularizars (aka, PnP reconstruction).
DeepMR expose denoisers both as ``torch.nn`` objects (to be chained in DL-based reconstructions)
and functional forms (e.g., for simple standalone denoising).

Currently available denoisers are Wavelet (``WaveletDenoiser``, ``WaveletDictDenoiser`),
Currently available denoisers are Wavelet (``WaveletDenoiser``, ``WaveletDictDenoiser``),
Local Low Rank (``LLRDenoiser``) and Total (Generalized) Variation (``TVDenoiser``, ``TGVDenoiser`).

Both ``WaveletDenoiser`` / ``WaveletDictDenoiser`` and ``TVDenoiser`` / ``TGVDenoiser`` are adapted for complex-value inputs from the corresponding [DeepInverse](https://deepinv.github.io/deepinv/) implementations.
Expand Down
Empty file added tutorials/README.md
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
9 changes: 9 additions & 0 deletions tutorials/basics/demo_data_format.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""
===========
Data Format
===========
Overview of DeepMR data format.
"""

Empty file added tutorials/basics/demo_linops.py
Empty file.
Empty file added tutorials/basics/demo_nlops.py
Empty file.
Empty file added tutorials/basics/demo_qmap.py
Empty file.
Empty file.
Empty file added tutorials/basics/demo_vobj.py
Empty file.

0 comments on commit 589617a

Please sign in to comment.