dbdicom 0.3.10__tar.gz → 0.3.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dbdicom might be problematic. Click here for more details.
- {dbdicom-0.3.10/src/dbdicom.egg-info → dbdicom-0.3.11}/PKG-INFO +1 -1
- {dbdicom-0.3.10 → dbdicom-0.3.11}/pyproject.toml +1 -1
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/api.py +4 -2
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/dbd.py +13 -2
- {dbdicom-0.3.10 → dbdicom-0.3.11/src/dbdicom.egg-info}/PKG-INFO +1 -1
- {dbdicom-0.3.10 → dbdicom-0.3.11}/LICENSE +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/MANIFEST.in +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/README.rst +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/setup.cfg +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/__init__.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/const.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/database.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/dataset.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/__init__.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/__pycache__/__init__.cpython-311.pyc +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/README.md +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/__init__.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/__pycache__/__init__.cpython-311.pyc +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/bin/__init__.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/bin/__pycache__/__init__.cpython-311.pyc +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/bin/deidentify +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/bin/deidentify.bat +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/bin/emf2sf +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/bin/emf2sf.bat +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/etc/__init__.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/etc/emf2sf/__init__.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/etc/emf2sf/log4j.properties +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/__init__.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/commons-cli-1.4.jar +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/dcm4che-core-5.23.1.jar +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/dcm4che-emf-5.23.1.jar +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/dcm4che-tool-common-5.23.1.jar +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/dcm4che-tool-emf2sf-5.23.1.jar +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/log4j-1.2.17.jar +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/macosx-x86-64/libopencv_java.jnilib +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/slf4j-api-1.7.30.jar +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/slf4j-log4j12-1.7.30.jar +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/windows-x86/clib_jiio.dll +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/windows-x86/clib_jiio_sse2.dll +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/windows-x86/clib_jiio_util.dll +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/windows-x86/opencv_java.dll +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/windows-x86-64/opencv_java.dll +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/register.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/sop_classes/ct_image.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/sop_classes/enhanced_mr_image.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/sop_classes/mr_image.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/sop_classes/parametric_map.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/sop_classes/secondary_capture.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/sop_classes/segmentation.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/sop_classes/ultrasound_multiframe_image.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/sop_classes/xray_angiographic_image.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/utils/arrays.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/utils/dcm4che.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/utils/files.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/utils/image.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/utils/pydicom_dataset.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom.egg-info/SOURCES.txt +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom.egg-info/dependency_links.txt +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom.egg-info/requires.txt +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom.egg-info/top_level.txt +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/tests/test_api.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/tests/test_dcm4che.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/tests/test_sop_classes.py +0 -0
- {dbdicom-0.3.10 → dbdicom-0.3.11}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dbdicom
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.11
|
|
4
4
|
Summary: A pythonic interface for reading and writing DICOM databases
|
|
5
5
|
Author-email: Steven Sourbron <s.sourbron@sheffield.ac.uk>, Ebony Gunwhy <e.gunwhy@sheffield.ac.uk>
|
|
6
6
|
Project-URL: Homepage, https://openmiblab.github.io/dbdicom/
|
|
@@ -181,14 +181,16 @@ def copy(from_entity:list, to_entity=None):
|
|
|
181
181
|
return from_entity_copy
|
|
182
182
|
|
|
183
183
|
|
|
184
|
-
def delete(entity:list):
|
|
184
|
+
def delete(entity:list, not_exists_ok=False):
|
|
185
185
|
"""Delete a DICOM entity
|
|
186
186
|
|
|
187
187
|
Args:
|
|
188
188
|
entity (list): entity to delete
|
|
189
|
+
not_exists_ok (bool): By default, an exception is raised when attempting
|
|
190
|
+
to delete an entity that does not exist. Set this to True to pass over this silently.
|
|
189
191
|
"""
|
|
190
192
|
dbd = open(entity[0])
|
|
191
|
-
dbd.delete(entity)
|
|
193
|
+
dbd.delete(entity, not_exists_ok)
|
|
192
194
|
dbd.close()
|
|
193
195
|
|
|
194
196
|
|
|
@@ -72,14 +72,25 @@ class DataBaseDicom():
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
def delete(self, entity):
|
|
75
|
+
def delete(self, entity, not_exists_ok=False):
|
|
76
76
|
"""Delete a DICOM entity from the database
|
|
77
77
|
|
|
78
78
|
Args:
|
|
79
79
|
entity (list): entity to delete
|
|
80
|
+
not_exists_ok (bool): By default, an exception is raised when attempting
|
|
81
|
+
to delete an entity that does not exist. Set this to True to pass over this silently.
|
|
80
82
|
"""
|
|
81
83
|
# delete datasets on disk
|
|
82
|
-
|
|
84
|
+
try:
|
|
85
|
+
removed = register.index(self.register, entity)
|
|
86
|
+
except ValueError:
|
|
87
|
+
if not_exists_ok:
|
|
88
|
+
return self
|
|
89
|
+
else:
|
|
90
|
+
raise ValueError(
|
|
91
|
+
f"The entity you are trying to delete does not exist. \n"
|
|
92
|
+
f"You can set not_exists_ok=True in dbdicom.delete() to avoid this error."
|
|
93
|
+
)
|
|
83
94
|
for index in removed:
|
|
84
95
|
file = os.path.join(self.path, index)
|
|
85
96
|
if os.path.exists(file):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dbdicom
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.11
|
|
4
4
|
Summary: A pythonic interface for reading and writing DICOM databases
|
|
5
5
|
Author-email: Steven Sourbron <s.sourbron@sheffield.ac.uk>, Ebony Gunwhy <e.gunwhy@sheffield.ac.uk>
|
|
6
6
|
Project-URL: Homepage, https://openmiblab.github.io/dbdicom/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/__pycache__/__init__.cpython-311.pyc
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/dcm4che-tool-common-5.23.1.jar
RENAMED
|
File without changes
|
{dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/dcm4che-tool-emf2sf-5.23.1.jar
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/windows-x86/clib_jiio.dll
RENAMED
|
File without changes
|
{dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/windows-x86/clib_jiio_sse2.dll
RENAMED
|
File without changes
|
{dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/windows-x86/clib_jiio_util.dll
RENAMED
|
File without changes
|
{dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/windows-x86/opencv_java.dll
RENAMED
|
File without changes
|
{dbdicom-0.3.10 → dbdicom-0.3.11}/src/dbdicom/external/dcm4che/lib/windows-x86-64/opencv_java.dll
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|