Commit
5a0925ec9ef531b13ea75df95c5a281c911b9a05
Exists in
master
and in
62 other branches
3d_inter_style, MIPs, brush_pix, canvas_reeng, canvas_text, casmoothing_cython, clean, command-line, cython_threshold, debian_cython, editor_improvements, ff_mask, ff_mask_improv, ffill_gui, ffill_segmentation, fill_holes_auto, fixes_pre_beta5, floodfill, get_pixel, import_mesh, interactor_style, inv3.0.1, mactoolbar, mactoolbar_bkp, manual_v3.1, mask_boolean_op, mask_boolean_op_bkp, mask_copy, mask_greatest_component, measure, measure_canvas, measure_improvements, measure_placement_test, measure_spacing, phoenix, region_growing_confidence, remote, remove_local_wxpython, rmatsuda-fix_ref_MTC, rmatsuda-fix_remove_marker_bug, rmatsuda-trigger_bug_fix, rotvol, segmentation_menu, select_part, smoothing_bin, smoothing_bin_pll, surface_area, user_guide_en, usp-navegador, vti, vtk6, watershed, watershed_improvements, watershed_improvements_bkp, watershed_merge, workdir, wwwlgui, wx2.9_mac, wxgtk3, wxgtk3_b5, wxgtk3_bkp, xmartlabs-command-line
Set ImageType to empty when there is not this tag in dicom
| @@ -811,6 +811,10 @@ class Parser(): |
| @@ -811,6 +811,10 @@ class Parser(): |
811
| data = self.data_image[str(0x008)][str(0x008)] |
811
| data = self.data_image[str(0x008)][str(0x008)] |
812
| except(IndexError): |
812
| except(IndexError): |
813
| return [] |
813
| return [] |
| |
814
| + # TODO: Check if set image type to empty is the right way of handling |
| |
815
| + # the cases where there is not this tag. |
| |
816
| + except KeyError: |
| |
817
| + return [] |
814
| |
818
| |
815
| if (data): |
819
| if (data): |
816
| try: |
820
| try: |