Skip to content

Commit

Permalink
Merge pull request #289 from AIM-Harvard/#270
Browse files Browse the repository at this point in the history
IDC supports local download
  • Loading branch information
surajpaib committed Mar 8, 2024
2 parents 15dec3b + 70d745f commit 469d455
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: build

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9"]
python-version: ["3.9", "3.10"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion fmcib/utils/idc_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def download_from_manifest(df, save_dir, samples):
None
"""
# Instantiates a client
storage_client = storage.Client()
storage_client = storage.Client.create_anonymous_client()
logger.info("Downloading DICOM data from IDC (Imaging Data Commons) ...")
(save_dir / "dicom").mkdir(exist_ok=True, parents=True)

Expand Down
28 changes: 14 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ mpmath = "1.3.0"

[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
bandit = "^1.7.1"
bandit = "^1.7.7"
isort = {extras = ["colors"], version = "^5.10.1"}
mypy = "^0.910"
mypy-extensions = "^0.4.3"
Expand All @@ -73,6 +73,7 @@ coverage = "^6.1.2"
coverage-badge = "^1.1.0"
pytest-html = "^3.1.1"
pytest-cov = "^3.0.0"
aiohttp = "^3.9.3"

[tool.black]
# https://github.com/psf/black
Expand Down

0 comments on commit 469d455

Please sign in to comment.