Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Commit 5479ac1

Browse files
authored
imports + strict & fixing Docs (#5)
* absolute imports * rise Sphinx warnings * fixing docs & config * docs: fix links & API folder * move figures * pandas: fix as_matrix * update CI * pep8
1 parent 68c7ffa commit 5479ac1

29 files changed

Lines changed: 243 additions & 124 deletions

.pep8speaks.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# File : .pep8speaks.yml
2+
3+
scanner:
4+
diff_only: True # If False, the entire file touched by the Pull Request is scanned for errors. If True, only the diff is scanned.
5+
linter: pycodestyle # Other option is flake8
6+
7+
pycodestyle: # Same as scanner.linter value. Other option is flake8
8+
max-line-length: 110 # Default is 79 in PEP 8
9+
ignore: # Errors and warnings to ignore
10+
- W504 # line break after binary operator
11+
- E402 # module level import not at top of file
12+
- E731 # do not assign a lambda expression, use a def
13+
- C406 # Unnecessary list literal - rewrite as a dict literal.
14+
- E741 # ambiguous variable name
15+
16+
no_blank_comment: True # If True, no comment is made on PR without any errors.
17+
descending_issues_order: False # If True, PEP 8 issues in message will be displayed in descending order of line numbers in the file
18+
19+
message: # Customize the comment made by the bot,
20+
opened: # Messages when a new PR is submitted
21+
header: "Hello @{name}! Thanks for opening this PR. "
22+
# The keyword {name} is converted into the author's username
23+
footer: "Do see the [Hitchhiker's guide to code style](https://goo.gl/hqbW4r)"
24+
# The messages can be written as they would over GitHub
25+
updated: # Messages when new commits are added to the PR
26+
header: "Hello @{name}! Thanks for updating this PR. "
27+
footer: "" # Why to comment the link to the style guide everytime? :)
28+
no_errors: "There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: "

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ sudo: false
1818
python:
1919
- 2.7
2020
# - 3.4 # will be deprecated for pandas
21-
- 3.5
2221
- 3.6
2322
- 3.7
23+
- 3.8
2424

2525
# See http://docs.travis-ci.com/user/caching/#pip-cache
2626
cache: pip

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ recursive-include figures *.png
3232
# Include the sample data
3333
recursive-include data_images *.yml *.yaml
3434

35+
recursive-include assets *.png
36+
3537
prune .git
3638
prune venv
3739
prune build

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
We present a final step of image processing pipeline which accepts a large number of images, containing spatial expression information for thousands of genes in Drosophila imaginal discs. We assume that the gene activations are binary and can be expressed as a union of a small set of non-overlapping spatial patterns, yielding a compact representation of the spatial activation of each gene. This lends itself well to further automatic analysis, with the hope of discovering new biological relationships. Traditionally, the images were labelled manually, which was very time-consuming. The key part of our work is a binary pattern dictionary learning algorithm, that takes a set of binary images and determines a set of patterns, which can be used to represent the input images with a small error.
1616

17-
![schema](figures/pipeline_schema.png)
17+
![schema](assets/pipeline_schema.png)
1818

1919
For the image segmentation and individual object detection, we used [Image segmentation toolbox](https://borda.github.io/pyImSegm/).
2020

@@ -86,13 +86,13 @@ python experiments/run_dataset_generate.py \
8686
```
8787

8888
**Sample atlases**
89-
![atlases](figures/synth_atlases.png)
89+
![atlases](assets/synth_atlases.png)
9090

9191
**Sample binary images**
92-
![binary samples](figures/synth_samples_binary.png)
92+
![binary samples](assets/synth_samples_binary.png)
9393

9494
**Sample fuzzy images**
95-
![fuzzy samples](figures/synth_samples_fuzzy.png)
95+
![fuzzy samples](assets/synth_samples_fuzzy.png)
9696

9797
For adding Gaussian noise with given sigmas use following script:
9898
```bash
@@ -101,7 +101,7 @@ python experiments/run_dataset_add_noise.py \
101101
-d apdDataset_vX --sigma 0.01 0.1 0.2
102102
```
103103

104-
![gauss noise](figures/synth_gauss-noise.png)
104+
![gauss noise](assets/synth_gauss-noise.png)
105105

106106
### Real images
107107

@@ -226,7 +226,7 @@ python experiments/run_reconstruction.py \
226226
--nb_workers 1 --visual
227227
```
228228

229-
![reconstruction](figures/reconst_imag-disc.png)
229+
![reconstruction](assets/reconst_imag-disc.png)
230230

231231
### Aggregating results
232232

0 commit comments

Comments
 (0)