Skip to content

Commit e1f73cc

Browse files
Updates to Readme (#258)
* updated readme * reformatted with new black * update pylint * updated pytest * remove py3.9 from matrix build * fix formatting * Update README.md Co-authored-by: Norman Rzepka <[email protected]> Co-authored-by: Norman Rzepka <[email protected]>
1 parent 7837485 commit e1f73cc

File tree

13 files changed

+253
-99
lines changed

13 files changed

+253
-99
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
max-parallel: 4
1010
matrix:
11-
python-version: [3.6, 3.7]
11+
python-version: [3.6, 3.7, 3.8]
1212

1313
steps:
1414
- uses: actions/checkout@v1
@@ -30,13 +30,13 @@ jobs:
3030
run: tar -xzvf testdata/WT1_wkw.tar.gz
3131

3232
- name: Check formatting
33-
run: black --check .
33+
run: poetry run black --check .
3434

3535
- name: Lint code
36-
run: python -m pylint -j4 wkcuber
36+
run: poetry run pylint -j4 wkcuber
3737

3838
- name: Python tests
39-
run: py.test tests
39+
run: poetry run pytest tests
4040

4141
- name: Smoke test docker
4242
run: |

README.md

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# webKnossos cuber
1+
# webKnossos cuber (wkcuber)
2+
[![PyPI version](https://img.shields.io/pypi/v/wkcuber)](https://pypi.python.org/pypi/wkcuber)
3+
[![Supported Python Versions](https://img.shields.io/pypi/pyversions/wkcuber.svg)](https://pypi.python.org/pypi/wkcuber)
4+
[![Build Status](https://img.shields.io/github/workflow/status/scalableminds/wkcuber/CI/master)](https://github.com/scalableminds/wkcuber/actions?query=workflow%3A%22CI%22)
5+
[![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
26

3-
[![CircleCI Status](https://circleci.com/gh/scalableminds/webknossos-cuber.svg?&style=shield)](https://circleci.com/gh/scalableminds/webknossos-cuber)
4-
5-
Easily create [WKW](https://github.com/scalableminds/webknossos-wrap) datasets for [webKnossos](https://webknossos.org).
7+
Python library for creating and working with [webKnossos](https://webknossos.org) [WKW](https://github.com/scalableminds/webknossos-wrap) datasets. WKW is a container format for efficiently storing large, scale 3D image data as found in (electron) microscopy.
68

79
The tools are modular components to allow easy integration into existing pipelines and workflows.
810

9-
Created with [Python3](https://www.python.org/).
10-
1111
## Features
1212

1313
* `wkcuber`: Convert image stacks to fully ready WKW datasets (includes downsampling, compressing and metadata generation)
@@ -32,7 +32,9 @@ Created with [Python3](https://www.python.org/).
3232
* NIFTI files
3333

3434
## Installation
35-
### Python3 with pip
35+
### Python 3 with pip from PyPi
36+
- `wkcuber` requires at least Python 3.6+
37+
3638
```
3739
# Make sure to have lz4 installed:
3840
# Mac: brew install lz4
@@ -99,11 +101,32 @@ python -m wkcuber.check_equality /data/source /data/target
99101

100102
Most tasks can be configured to be executed in a parallelized manner. Via `--distribution_strategy` you can pass `multiprocessing` or `slurm`. The first can be further configured with `--jobs` and the latter via `--job_resources='{"mem": "10M"}'`. Use `--help` to get more information.
101103

102-
## Test data credits
104+
## Development
105+
Make sure to install all the required dependencies using Poetry:
106+
```
107+
pip install poetry
108+
poetry install
109+
```
110+
111+
Please, format, lint, and unit test your code changes before merging them.
112+
```
113+
poetry run black .
114+
poetry run pylint -j4 wkcuber
115+
poetry run pytest tests
116+
```
117+
118+
Please, run the extended test suite:
119+
```
120+
tests/scripts/all_tests.sh
121+
```
122+
123+
PyPi releases are automatically pushed when creating a new Git tag/Github release.
124+
125+
## Test Data Credits
103126
Excerpts for testing purposes have been sampled from:
104127
- Dow Jacobo Hossain Siletti Hudspeth (2018). **Connectomics of the zebrafish's lateral-line neuromast reveals wiring and miswiring in a simple microcircuit.** eLife. [DOI:10.7554/eLife.33988](https://elifesciences.org/articles/33988)
105128
- Zheng Lauritzen Perlman Robinson Nichols Milkie Torrens Price Fisher Sharifi Calle-Schuler Kmecova Ali Karsh Trautman Bogovic Hanslovsky Jefferis Kazhdan Khairy Saalfeld Fetter Bock (2018). **A Complete Electron Microscopy Volume of the Brain of Adult Drosophila melanogaster.** Cell. [DOI:10.1016/j.cell.2018.06.019](https://www.cell.com/cell/fulltext/S0092-8674(18)30787-6). License: [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/)
106129

107130
## License
108-
AGPLv3
131+
AGPLv3
109132
Copyright scalable minds

0 commit comments

Comments
 (0)