Skip to content

Commit

Permalink
Merge pull request #118 from ImagingDataCommons/fix-v3-customization
Browse files Browse the repository at this point in the history
BUG: fix viewer series selection parameter
  • Loading branch information
fedorov authored Aug 28, 2024
2 parents e571555 + e718bfc commit a0fb26c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions idc_index/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def get_viewer_URL(
ohif_v2, ohif_v3, or slim. If not provided, default viewers will be used.
Returns:
string containing the IDC viewer URL for the given SeriesInstanceUID
string containing the IDC viewer URL for the requested selection
"""

if seriesInstanceUID is None and studyInstanceUID is None:
Expand Down Expand Up @@ -581,7 +581,7 @@ def get_viewer_URL(
if seriesInstanceUID is None:
viewer_url = f"https://viewer.imaging.datacommons.cancer.gov/v3/viewer/?StudyInstanceUIDs={studyInstanceUID}"
else:
viewer_url = f"https://viewer.imaging.datacommons.cancer.gov/v3/viewer/?StudyInstanceUIDs={studyInstanceUID}&SeriesInstanceUID={seriesInstanceUID}"
viewer_url = f"https://viewer.imaging.datacommons.cancer.gov/v3/viewer/?StudyInstanceUIDs={studyInstanceUID}&SeriesInstanceUIDs={seriesInstanceUID}"
elif viewer_selector == "volview":
# TODO! Not implemented yet
viewer_url = None
Expand Down

0 comments on commit a0fb26c

Please sign in to comment.