Commit ebda1724e8342014640cd9c25ac31c6dc916ebb4
1 parent
476e792b
Exists in
master
and in
67 other branches
FIX: Fixed problem open promed 141 case
Showing
1 changed file
with
2 additions
and
15 deletions
Show diff stats
invesalius/reader/dicom.py
@@ -852,21 +852,6 @@ class Parser(): | @@ -852,21 +852,6 @@ class Parser(): | ||
852 | return data | 852 | return data |
853 | return "" | 853 | return "" |
854 | 854 | ||
855 | - def GetSeriesDescription(self): | ||
856 | - """ | ||
857 | - Return string containing Series description. | ||
858 | - | ||
859 | - DICOM tag (0x0008, 0x1030). Cannot be edited. | ||
860 | - """ | ||
861 | - try: | ||
862 | - data = self.data_image[0x0008][0x1030] | ||
863 | - except(KeyError): | ||
864 | - return "" | ||
865 | - | ||
866 | - if (data): | ||
867 | - return data | ||
868 | - return "" | ||
869 | - | ||
870 | def GetStudyInstanceUID(self): | 855 | def GetStudyInstanceUID(self): |
871 | """ | 856 | """ |
872 | Return string containing Unique Identifier of the | 857 | Return string containing Unique Identifier of the |
@@ -1529,6 +1514,8 @@ class Parser(): | @@ -1529,6 +1514,8 @@ class Parser(): | ||
1529 | return _("unnamed") | 1514 | return _("unnamed") |
1530 | if (data): | 1515 | if (data): |
1531 | return data | 1516 | return data |
1517 | + else: | ||
1518 | + return _("unnamed") | ||
1532 | except(KeyError): | 1519 | except(KeyError): |
1533 | return _("unnamed") | 1520 | return _("unnamed") |
1534 | 1521 |