[med-svn] [Git][med-team/heudiconv][master] 4 commits: release

Alexandre Detiste (@detiste-guest) gitlab at salsa.debian.org
Fri May 10 12:01:02 BST 2024



Alexandre Detiste pushed to branch master at Debian Med / heudiconv


Commits:
93cf6f56 by Alexandre Detiste at 2024-05-10T12:56:13+02:00
release

- - - - -
806c816e by Alexandre Detiste at 2024-05-10T12:57:22+02:00
New upstream version 1.1.1
- - - - -
24cc5aee by Alexandre Detiste at 2024-05-10T12:57:43+02:00
Update upstream source from tag 'upstream/1.1.1'

Update to upstream version '1.1.1'
with Debian dir a0d769f1bc3c1c838b6358a831a39f01fa49be7c
- - - - -
a2c6718f by Alexandre Detiste at 2024-05-10T12:59:48+02:00
bump to 1.1.1

- - - - -


5 changed files:

- PKG-INFO
- debian/changelog
- heudiconv.egg-info/PKG-INFO
- heudiconv/_version.py
- heudiconv/dicoms.py


Changes:

=====================================
PKG-INFO
=====================================
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: heudiconv
-Version: 1.1.0
+Version: 1.1.1
 Summary: Heuristic DICOM Converter
 Author: HeuDiConv team and contributors
 License: Apache 2.0


=====================================
debian/changelog
=====================================
@@ -1,7 +1,7 @@
-heudiconv (1.1.0-1) UNRELEASED; urgency=medium
+heudiconv (1.1.1-1) experimental; urgency=medium
 
   * Team upload.
-  * New upstream version 1.1.0
+  * New upstream version 1.1.1
   * update dependencies:
     - python3-mock
     - python3-six
@@ -9,7 +9,7 @@ heudiconv (1.1.0-1) UNRELEASED; urgency=medium
     + python3-inotify
     + python3-tinydb
 
- -- Alexandre Detiste <tchet at debian.org>  Wed, 13 Mar 2024 09:55:43 +0100
+ -- Alexandre Detiste <tchet at debian.org>  Fri, 10 May 2024 12:55:16 +0200
 
 heudiconv (0.13.1-1) experimental; urgency=medium
 


=====================================
heudiconv.egg-info/PKG-INFO
=====================================
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: heudiconv
-Version: 1.1.0
+Version: 1.1.1
 Summary: Heuristic DICOM Converter
 Author: HeuDiConv team and contributors
 License: Apache 2.0


=====================================
heudiconv/_version.py
=====================================
@@ -1 +1 @@
-__version__ = "1.1.0"
+__version__ = "1.1.1"


=====================================
heudiconv/dicoms.py
=====================================
@@ -526,18 +526,18 @@ def get_datetime_from_dcm(dcm_data: dcm.FileDataset) -> Optional[datetime.dateti
     3. SeriesDate & SeriesTime  (0008,0021); (0008,0031)
 
     """
-    acq_date = dcm_data.get("AcquisitionDate")
-    acq_time = dcm_data.get("AcquisitionTime")
-    if not (acq_date is None or acq_time is None):
+    acq_date = dcm_data.get("AcquisitionDate", "").strip()
+    acq_time = dcm_data.get("AcquisitionTime", "").strip()
+    if acq_date and acq_time:
         return strptime_micr(acq_date + acq_time, "%Y%m%d%H%M%S[.%f]")
 
-    acq_dt = dcm_data.get("AcquisitionDateTime")
-    if acq_dt is not None:
+    acq_dt = dcm_data.get("AcquisitionDateTime", "").strip()
+    if acq_dt:
         return strptime_micr(acq_dt, "%Y%m%d%H%M%S[.%f]")
 
-    series_date = dcm_data.get("SeriesDate")
-    series_time = dcm_data.get("SeriesTime")
-    if not (series_date is None or series_time is None):
+    series_date = dcm_data.get("SeriesDate", "").strip()
+    series_time = dcm_data.get("SeriesTime", "").strip()
+    if series_date and series_time:
         return strptime_micr(series_date + series_time, "%Y%m%d%H%M%S[.%f]")
     return None
 



View it on GitLab: https://salsa.debian.org/med-team/heudiconv/-/compare/31593e73151136a85e2e71bc3a94441cdeeefbba...a2c6718f1ffcc240791e76a365730e4403c32368

-- 
View it on GitLab: https://salsa.debian.org/med-team/heudiconv/-/compare/31593e73151136a85e2e71bc3a94441cdeeefbba...a2c6718f1ffcc240791e76a365730e4403c32368
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240510/24cd71b1/attachment-0001.htm>


More information about the debian-med-commit mailing list