-
Notifications
You must be signed in to change notification settings - Fork 47
IO-496: Request: Add support for importing polygons in Dataloop format #497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
bc431a2
WIP Dataloop transformer and tests
6f0b97d
WIP tests
959fa7d
WIP: issue still in place with pycache
054cb52
All tests now passing.
a46de70
Linting and formatting
fd0d950
Added dev tools to setup.py to allow "pip install 'darwin-py[dev]'"
ca04f4c
Remove print statement
bf79de7
Added specific, bubbling test, that can be caught at CLI
5ba66b7
Unexpected error catcher for CLI
668f0a2
Added the dataloop example after removing it from the gitignore
1b9188d
Removing python version because I think it's breaking the build
6970c0e
Trying to get 3.6 JIT to understand
c628046
Added type hints to help
410970c
Fix for versions below 3.8
227d0ec
Added EOL
e753898
WIP Adding tests and fix.
5a06f2e
Extra tests and functions
13518e1
Revert "Extra tests and functions"
3eaf12a
Revert "WIP Adding tests and fix."
af1522f
Merge branch 'master' into IO-496
882963e
Fix and linting
99cc693
Test fix for Py 3.8
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,6 +6,7 @@ __pycache__/ | |
|
|
||
| output/ | ||
| data/ | ||
| !tests/darwin/data | ||
| darwin_py.egg-info/PKG-INFO | ||
|
|
||
| *.png | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,2 @@ | ||
| [flake8] | ||
| max-line-length = 160 |
This file contains hidden or 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,7 +6,7 @@ | |
| with open(Path(__file__).parent / "darwin" / "version" / "__init__.py", "r") as f: | ||
| content = f.read() | ||
| # from https://www.py4u.net/discuss/139845 | ||
| version = re.search(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', content).group(1) | ||
| version = re.search(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', content).group(1) # type: ignore | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prevents mypy complaining about this - rather than refactor type, when we have to replace |
||
|
|
||
| with open("README.md", "rb") as f: | ||
| long_description = f.read().decode("utf-8") | ||
|
|
@@ -37,6 +37,7 @@ | |
| ], | ||
| extras_require={ | ||
| "test": ["responses", "pytest", "pytest-describe", "scikit-learn"], | ||
| "dev": ["black", "flake8", "isort", "mypy", "responses", "pytest", "pytest-describe", "scikit-learn"], | ||
| "ml": ["scikit-learn", "torch", "torchvision"], | ||
| "medical": ["nibabel", "connected-components-3d"], | ||
| }, | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just formatting change, done automatically by Black