-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
611 additions
and
223 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile | ||
{ | ||
"name": "Local Development", | ||
"build": { | ||
// Sets the run context to one level up instead of the .devcontainer folder. | ||
"context": "..", | ||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | ||
"dockerfile": "../docker/development.Dockerfile" | ||
}, | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Uncomment the next line to run commands after the container is created. | ||
"postCreateCommand": "poetry install", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. | ||
"mounts": [ | ||
"source=${localWorkspaceFolder},target=/project,type=bind,consistency=cached" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -32,6 +32,25 @@ jobs: | |
with: | ||
pytest-xml-coverage-path: ./coverage.xml | ||
|
||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: cardinalby/export-env-action@v2 | ||
id: cicd_env | ||
with: | ||
envFile: 'github.env' | ||
expand: 'true' | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ env.POETRY_VERSION }} | ||
- run: poetry install --no-interaction | ||
- name: Build docs | ||
run: poetry run mkdocs build | ||
|
||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
|
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ubuntu:20.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update --yes && \ | ||
apt-get install -y python3-pip | ||
|
||
ENV POETRY_VERSION=1.1.11 | ||
RUN pip3 install --upgrade pip && pip3 install "poetry==$POETRY_VERSION" | ||
|
||
|
||
RUN mkdir /src | ||
WORKDIR /src | ||
|
||
RUN poetry config virtualenvs.create false | ||
|
||
# Install dependencies (cached) | ||
COPY pyproject.toml poetry.lock ./ | ||
RUN poetry install | ||
|
||
CMD ["/bin/bash"] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Install Package | ||
|
||
## Install via pip | ||
|
||
PD-DWI package is available on PyPi for installation via pip. Wheels are automatically generated for each release of PD-DWI, allowing you to | ||
install pd-dwi without having to compile anything. | ||
|
||
!!! note | ||
Ensure that you have python 3.8 installed on your machine. | ||
|
||
* Install PD-DWI: | ||
```bash | ||
python -m pip install pd-dwi | ||
``` | ||
|
||
## Install from source | ||
|
||
PD-DWI can also be installed from source code. | ||
|
||
!!! note | ||
Ensure the following pre-prerequisites are installed on your machine: | ||
|
||
* git | ||
* python 3.8 | ||
* poetry 1.1.11 | ||
|
||
1. Clone the repository | ||
```console | ||
git clone https://github.com/TechnionComputationalMRILab/PD-DWI.git | ||
``` | ||
2. Install the project | ||
```console | ||
cd PD-DWI & poetry install --all-extras | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Model | ||
|
||
|
||
## Command-line usage | ||
|
||
This page provides documentation for command line tools. | ||
|
||
::: mkdocs-click | ||
:module: pd_dwi.scripts.cli | ||
:command: pd_dwi_cli | ||
:style: table |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# DWI Pre Processing | ||
|
||
## Command-line Usage | ||
|
||
This page provides documentation for pre-processing command line tools. | ||
|
||
::: mkdocs-click | ||
:module: pd_dwi.scripts.cli | ||
:command: preprocessing_cli | ||
:style: table |
File renamed without changes.
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,12 +1,60 @@ | ||
site_name: PD-DWI | ||
|
||
repo_url: https://github.com/technionComputationalMRILab/PD-DWI/ | ||
|
||
theme: | ||
name: readthedocs | ||
highlightjs: true | ||
include_homepage_in_sidebar: true | ||
|
||
nav: | ||
- Home: index.md | ||
- Installation: installation.md | ||
- Usage: usage.md | ||
- Training Configuration: training_configuration.md | ||
- Dataset Preprocessing: dataset_preprocessing.md | ||
- Installation: | ||
- Install Package: installation/install_package.md | ||
- Usage: | ||
- Getting Started: usage/index.md | ||
- DWI Pre Processing: usage/pre_processing.md | ||
- Model: usage/model.md | ||
- Training Configuration: usage/training_configuration.md | ||
|
||
plugins: | ||
- plotly | ||
- search | ||
|
||
theme: readthedocs | ||
markdown_extensions: | ||
# Python Markdown | ||
- abbr | ||
- admonition | ||
- attr_list | ||
- def_list | ||
- footnotes | ||
- md_in_html | ||
- toc: | ||
permalink: true | ||
|
||
# Python Markdown Extensions | ||
- pymdownx.arithmatex: | ||
generic: true | ||
- pymdownx.betterem: | ||
smart_enable: all | ||
- pymdownx.caret | ||
- pymdownx.details | ||
- pymdownx.highlight | ||
- pymdownx.inlinehilite | ||
- pymdownx.keys | ||
- pymdownx.mark | ||
- pymdownx.smartsymbols | ||
- pymdownx.superfences | ||
- pymdownx.tabbed: | ||
alternate_style: true | ||
- pymdownx.tasklist: | ||
custom_checkbox: true | ||
- pymdownx.tilde | ||
- mkdocs-click | ||
- pymdownx.superfences: | ||
custom_fences: | ||
- name: plotly | ||
class: mkdocs-plotly | ||
format: !!python/name:mkdocs_plotly_plugin.fences.fence_plotly | ||
|
||
|
Oops, something went wrong.
60f98d4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report