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

WIP: Adding DICOM-RT Dose grid summation w/ interpolation from DVHA code #164

Merged
merged 22 commits into from
Aug 12, 2020
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
60330eb
init commit
cutright Jul 29, 2020
90ff0f3
summation_type attribute
cutright Jul 30, 2020
7ce2a4d
update DICOM tags after dose grid summation
cutright Jul 30, 2020
856255a
test_dose.py init commit, overload multiplication
cutright Aug 2, 2020
cb1d0cd
PEP line length, update doc string format, remove other_factor in sum…
cutright Aug 2, 2020
2393b6a
remove interp_by_block (never worked), GridFrameOffsetVector test, mi…
cutright Aug 2, 2020
a5bd38a
implement proper error/warning raises, attr equality checks per PR co…
cutright Aug 5, 2020
d51c55b
use warnings.warn instead of raising UserWarning
cutright Aug 5, 2020
7a3d77a
Tests: add, mul, & rmul overload, add with attr mismatch. fixed inter…
cutright Aug 5, 2020
b722b9a
Tests: set_dicom_tag_value, add_dicom_sequence, validate_attr_equality
cutright Aug 5, 2020
cff4ddb
test modality check, save_dcm. minor edits.
cutright Aug 6, 2020
1c5fdea
DoseGrid examples
cutright Aug 6, 2020
37c597b
remove points property, raise error on negative doses
cutright Aug 6, 2020
4855d79
rename summation_post_processing to dose_grid_post_processing, minor …
cutright Aug 6, 2020
8d16714
move DoseGrid example from docstring to usage.rst
cutright Aug 6, 2020
b5bafe5
add'l map_coordinates param, direct_sum & interp_sum private
cutright Aug 12, 2020
c45202f
test spline interp, suppress UserWarning in test output
cutright Aug 12, 2020
35f68ac
remove trailing comma for TravisCI
cutright Aug 12, 2020
2b9426a
boundary dose validation and test
cutright Aug 12, 2020
6fc1c25
split max_boundary_value function, finish unit testing
cutright Aug 12, 2020
0c48e0d
simplify error catching assertions
cutright Aug 12, 2020
0dc2f82
simplify array/boolean assertions
cutright Aug 12, 2020
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
15 changes: 15 additions & 0 deletions dicompylercore/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
pil_available = True
shapely_available = True
skimage_available = True
scipy_available = True

if PY2:
import imp
Expand All @@ -29,8 +30,22 @@
imp.find_module('skimage')
except ImportError:
skimage_available = False

try:
imp.find_module('scipy')
except ImportError:
scipy_available = False
else:
import importlib
pil_available = importlib.util.find_spec('PIL') is not None
shapely_available = importlib.util.find_spec('shapely') is not None
skimage_available = importlib.util.find_spec('skimage') is not None
scipy_available = importlib.util.find_spec('scipy') is not None


# DICOM UID prefix
dicompyler_uid_prefix = '1.2.826.0.1.3680043.8.1070.'
dicompyler_uid_prefix_image = dicompyler_uid_prefix + '1.'
dicompyler_uid_prefix_rtstruct = dicompyler_uid_prefix + '2.'
dicompyler_uid_prefix_rtplan = dicompyler_uid_prefix + '3.'
dicompyler_uid_prefix_rtdose = dicompyler_uid_prefix + '4.'
Loading