qmenta-anon 2.2.0.dev384__tar.gz → 2.2.1.dev385__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: qmenta-anon
3
- Version: 2.2.0.dev384
3
+ Version: 2.2.1.dev385
4
4
  Summary: The qmenta-anon library is used to anonymize files before transferring them to the QMENTA platform.
5
5
  Author: QMENTA
6
6
  Author-email: dev@qmenta.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "qmenta-anon"
3
- version = "2.2.0.dev384"
3
+ version = "2.2.1.dev385"
4
4
  description = "The qmenta-anon library is used to anonymize files before transferring them to the QMENTA platform."
5
5
  authors = ["QMENTA <dev@qmenta.com>"]
6
6
  classifiers = [
@@ -330,7 +330,7 @@ def anonymise_dicom_dataset(dcm, actions=None):
330
330
 
331
331
 
332
332
  def anonymise(filename, actions=None):
333
- header = pydicom.read_file(filename)
333
+ header = pydicom.read_file(filename, force=True)
334
334
 
335
335
  actions = actions or DICOM_ANON_MIN_SUPP_55
336
336
  anonymise_dicom_dataset(header, actions)
@@ -559,7 +559,7 @@ class RelativeTimeAnonymiser:
559
559
  when trying to anonymise multiple DICOM headers of which the
560
560
  datetimes to anonymise span more than 24h.
561
561
  """
562
- header = pydicom.read_file(filename)
562
+ header = pydicom.read_file(filename, force=True)
563
563
  self.anonymise_datetime(header)
564
564
 
565
565
  actions = actions or DICOM_ANON_MIN_SUPP_55