Skip to content
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

BIMCV #7

Merged
merged 30 commits into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
1fa2035
added bimcv
IL98 Nov 10, 2022
9692b31
up
IL98 Nov 10, 2022
1a85885
FEAT: return MIDRC and NSCLC to dev in their current form
BorisShirokikh Nov 11, 2022
6a5e16c
Fixed orientation for MIDRC and NSCLC
francisso Nov 11, 2022
4541fc3
bumped tarn
maxme1 Nov 18, 2022
f022307
loading bicmv dataset from archives directly
IL98 Nov 25, 2022
b2357f3
added an optional `cache` argument to `_populate`
maxme1 Nov 25, 2022
785941b
upd indices in bimcv dataset
IL98 Nov 25, 2022
56127f5
FIX: remove unnecessary typecasting in cc359
BorisShirokikh Nov 25, 2022
4614e46
FIX: remove unnecessary typecasting in EGD, MOOD, and VSSEG
BorisShirokikh Nov 26, 2022
3c2a602
upd ids
IL98 Nov 28, 2022
1d49477
upd preprocesesd dict + ids + image + remove spacing
IL98 Nov 29, 2022
d2e4290
Merge branch 'dev' into valencia
maxme1 Nov 29, 2022
cc08428
optimized bimcv
maxme1 Nov 29, 2022
496d951
added comments for bimcv
maxme1 Nov 29, 2022
8010835
smarter version check during tests
maxme1 Nov 29, 2022
16b5114
got rid of tar get_members, remove private methods with 1 occurence +…
IL98 Nov 29, 2022
94ee0a6
Merge branch 'valencia' of github.com:neuro-ml/amid into valencia
IL98 Nov 29, 2022
f089cba
optional support for unpacked .tar.gz archives for bimcv
maxme1 Dec 1, 2022
4cb74b5
fixed _populate for n_jobs>1
maxme1 Dec 1, 2022
9fbde09
populated all the ids
maxme1 Dec 4, 2022
2924171
Merge pull request #6 from neuro-ml/valencia
maxme1 Dec 4, 2022
71503b5
added linters to ci
maxme1 Dec 4, 2022
2641f2b
formatted with black & isort
maxme1 Dec 5, 2022
3d25e9a
...and flake8
maxme1 Dec 5, 2022
eba437d
added a FIXME
maxme1 Dec 5, 2022
c51b03f
bumped
maxme1 Dec 6, 2022
be6608a
fixed ubuntu version
maxme1 Dec 6, 2022
5426269
typo
maxme1 Dec 6, 2022
cce0e32
compatibility with py36
maxme1 Dec 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[flake8]
# W503: line break before binary operator is actually considered best-practice
# E203: spaces around complex variables in slices are pep-right
# F401: unused imports in __init__.py-s
# I251: allow absolute imports in upper files
# B019: @lru_cache for static methods is fine
# C408: for identifier-like fields dict(x=y) is just more concise
ignore = W503,E203,B019,C408
per-file-ignores =
__init__.py:F401
max-line-length = 120
14 changes: 12 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10' ]
Expand All @@ -19,12 +19,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Check the version and build the package
- name: Check the version
if: "! github.event.pull_request.head.repo.fork "
run: |
VERSION=$(python -c "from pathlib import Path; import runpy; folder, = {d.parent for d in Path().resolve().glob('*/__init__.py') if d.parent.is_dir() and (d.parent / '__version__.py').exists()}; print(runpy.run_path(folder / '__version__.py')['__version__'])")
MATCH=$(pip index versions $MODULE_NAME | grep "Available versions:" | grep $VERSION) || echo
echo $MATCH
if [ "$GITHUB_BASE_REF" = "master" ] && [ "$MATCH" != "" ]; then exit 1; fi
- name: Build the package
run: |
python setup.py sdist

- name: Install
Expand All @@ -39,6 +42,13 @@ jobs:
echo $MODULE_PARENT
echo "MODULE_PARENT=$(echo $MODULE_PARENT)" >> $GITHUB_ENV

- name: Check code style
run: |
pip install -r lint-requirements.txt
flake8 .
isort --check .
black --check .

- name: Create the storage
run: |
mkdir -p ~/.config/amid/ && cp tests/assets/.bev.yml ~/.config/amid/.bev.yml
Expand Down
1 change: 1 addition & 0 deletions amid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

from .__version__ import __version__


unstable_module(__name__)
2 changes: 1 addition & 1 deletion amid/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.3.0'
__version__ = '0.4.0'
Loading