-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from BMCV/dev/fix-4
`giatools.io.imread` will automatically use `tifffile` for loading TIFF images, when available
- Loading branch information
Showing
15 changed files
with
146 additions
and
27 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,3 @@ | ||
[run] | ||
|
||
omit = tests/* |
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,3 +1,5 @@ | ||
[flake8] | ||
|
||
extend-ignore = E221,E211,E222,E202,F541,E201,E203,E501 | ||
max-line-length = 120 | ||
|
||
extend-ignore = E221,E211,E222,E202,F541,E201,E203 |
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ __pycache__ | |
/build | ||
*.swp | ||
tests/*-out-* | ||
/.venv | ||
/.venv | ||
/.coverage |
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,9 @@ | ||
[settings] | ||
|
||
multi_line_output = 3 | ||
|
||
force_grid_wrap = 2 | ||
|
||
include_trailing_comma = true | ||
|
||
skip_glob = docs/source/conf.py |
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,9 @@ | ||
{ | ||
"[git-commit]": { | ||
"editor.rulers": [50] | ||
}, | ||
|
||
"[python]": { | ||
"editor.rulers": [119] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
VERSION_MAJOR = 0 | ||
VERSION_MINOR = 1 | ||
VERSION_PATCH = 2 | ||
VERSION_MINOR = 2 | ||
VERSION_PATCH = 0 | ||
|
||
VERSION = '%d.%d%s' % (VERSION_MAJOR, VERSION_MINOR, '.%d' % VERSION_PATCH if VERSION_PATCH > 0 else '') |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,12 @@ | |
|
||
|
||
setup( | ||
name = 'giatools', | ||
version = giatools.VERSION, | ||
description = 'Tools required for Galaxy Image Analysis', | ||
author = 'Leonid Kostrykin', | ||
author_email = '[email protected]', | ||
url = 'https://kostrykin.com', | ||
license = 'MIT', | ||
packages = ['giatools'], | ||
name='giatools', | ||
version=giatools.VERSION, | ||
description='Tools required for Galaxy Image Analysis', | ||
author='Leonid Kostrykin', | ||
author_email='[email protected]', | ||
url='https://kostrykin.com', | ||
license='MIT', | ||
packages=['giatools'], | ||
) |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import contextlib | ||
import io | ||
|
||
|
||
class CaptureStderr: | ||
|
||
def __init__(self): | ||
self.stdout_buf = io.StringIO() | ||
|
||
def __enter__(self): | ||
self.redirect = contextlib.redirect_stderr(self.stdout_buf) | ||
self.redirect.__enter__() | ||
return self | ||
|
||
def __exit__(self, exc_type, exc_value, traceback): | ||
self.redirect.__exit__(exc_type, exc_value, traceback) | ||
|
||
def __str__(self): | ||
return self.stdout_buf.getvalue() |