dicube 0.2.0__cp310-cp310-win_amd64.whl → 0.2.2__cp310-cp310-win_amd64.whl

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.
dicube/core/io.py CHANGED
@@ -239,6 +239,12 @@ class DicomCubeImageIO:
239
239
  intercept = meta.get_shared_value(CommonTags.RescaleIntercept)
240
240
  wind_center = meta.get_shared_value(CommonTags.WindowCenter)
241
241
  wind_width = meta.get_shared_value(CommonTags.WindowWidth)
242
+ try:
243
+ wind_center = float(wind_center)
244
+ wind_width = float(wind_width)
245
+ except:
246
+ wind_center = None
247
+ wind_width = None
242
248
 
243
249
  # Create pixel_header
244
250
  pixel_header = PixelDataHeader(
@@ -246,8 +252,8 @@ class DicomCubeImageIO:
246
252
  RescaleIntercept=float(intercept) if intercept is not None else 0.0,
247
253
  OriginalPixelDtype=str(images[0].dtype),
248
254
  PixelDtype=str(images[0].dtype),
249
- WindowCenter=float(wind_center) if wind_center is not None else None,
250
- WindowWidth=float(wind_width) if wind_width is not None else None,
255
+ WindowCenter=wind_center,
256
+ WindowWidth=wind_width,
251
257
  )
252
258
 
253
259
  # Validate PixelDataHeader initialization success
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: dicube
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Medical Image Storage Library with DICOM compatibility
5
5
  Author: Fangzhou Liao
6
6
  License: MIT
@@ -38,6 +38,7 @@ Requires-Dist: mypy>=1.0.0; extra == "dev"
38
38
  Requires-Dist: build>=0.8.0; extra == "dev"
39
39
  Requires-Dist: pylibjpeg>=2.0; extra == "dev"
40
40
  Requires-Dist: pylibjpeg-openjpeg>=2.0; extra == "dev"
41
+ Requires-Dist: nibabel>=3.2.0; extra == "dev"
41
42
  Provides-Extra: all
42
43
  Requires-Dist: pybind11>=2.10.0; extra == "all"
43
44
  Requires-Dist: nibabel>=3.2.0; extra == "all"
@@ -2,21 +2,15 @@ dicube/__init__.py,sha256=XI_Zeif8FOQ-i_G7LabwVFpubzDniXSFb-8H_WdYW8c,5059
2
2
  dicube/codecs/__init__.py,sha256=Tqw2vmQML-pcaNtnyTtj4W4kBqGhV2FTiVAT5bW5FgA,3905
3
3
  dicube/codecs/jph/__init__.py,sha256=pWYkTNWYeGZx3khsJBAKRdB2Vgyr0BX5aLDKaanfe_o,407
4
4
  dicube/codecs/jph/codec.py,sha256=BMZM3ReemQheraSIYn19aqH-1NrbjQTPAx3iCTms7KU,5620
5
- dicube/codecs/jph/ojph_complete.cp310-win32.pyd,sha256=OQXH1naFlfAvI8YxSyVTBp283w2Rutcdf9VVQBk-syk,507904
6
- dicube/codecs/jph/ojph_complete.cp310-win_amd64.pyd,sha256=_CWtaFatb_fKoho6VniTI7rrHkaYZvgV9LJBQY3ZvO4,601600
7
- dicube/codecs/jph/ojph_complete.cp38-win32.pyd,sha256=Y3Nterl5act9QSkyfny-K0u6OkJnDg6KVMob14XdzQs,507904
8
- dicube/codecs/jph/ojph_complete.cp38-win_amd64.pyd,sha256=vjlAPdq-rTif10Ya8hRuj1KUrlU7djCMrwz3i1Z9egY,601600
9
- dicube/codecs/jph/ojph_complete.cp39-win32.pyd,sha256=kEecz7Uixzn3CMawNsaYWQfyu0asV4hCNIMnvE2zjkw,507904
10
- dicube/codecs/jph/ojph_complete.cp39-win_amd64.pyd,sha256=ddRbfp0hZsgtvZocoUi_-VThW6IRC652C-NtsCXXqTs,601600
11
- dicube/codecs/jph/ojph_decode_complete.cp310-win32.pyd,sha256=mhGLqPbJ5CmrfM22Azb769s2HgY-jzJ9Qp3eqR2Uu3U,543744
12
- dicube/codecs/jph/ojph_decode_complete.cp310-win_amd64.pyd,sha256=5XQMaFven0b_3mks6FW8uV4XcJhO4C4uwvrOWkDAJ4o,639488
13
- dicube/codecs/jph/ojph_decode_complete.cp38-win32.pyd,sha256=Drd29pmHMr6xKAEOYHbxIOzvvKi7HwUqphVFkBDUDcY,543232
14
- dicube/codecs/jph/ojph_decode_complete.cp38-win_amd64.pyd,sha256=KxoPWOvvtfNJD0mhiTLL6rjiGHRDS5tNTLz3gygYEiY,639488
15
- dicube/codecs/jph/ojph_decode_complete.cp39-win32.pyd,sha256=_VR1xg2e90wHJQNoH50JDiEy2ZjGRU3SYU50DWMuxbE,543232
16
- dicube/codecs/jph/ojph_decode_complete.cp39-win_amd64.pyd,sha256=3G4xvyYCFAjzssGskezMAjzMMiexSr2P2r1v539CmC8,638976
5
+ dicube/codecs/jph/ojph_complete.cp310-win_amd64.pyd,sha256=5WeheXwI28J6Xh8MltyoUsxcjFJSCiZWe9W-qKvOaqI,601600
6
+ dicube/codecs/jph/ojph_complete.cp38-win_amd64.pyd,sha256=5A8LW4oiuxFKTgM8g5QXcgFA1Jp8gT0-5Ag2n3JIWWw,601600
7
+ dicube/codecs/jph/ojph_complete.cp39-win_amd64.pyd,sha256=p8dd-h1i6sOMWsn_KFIAMwCN3wDCcMrFUQk6dRLDNbI,601600
8
+ dicube/codecs/jph/ojph_decode_complete.cp310-win_amd64.pyd,sha256=ZmnsCcu2FASt6QXpPVPUsyGw3FKesqR7H8FaFU4MsFQ,639488
9
+ dicube/codecs/jph/ojph_decode_complete.cp38-win_amd64.pyd,sha256=ZsXsgMf-j47XI4gk0XiiyeLdLddvwM_PyYUjrqbrXj0,639488
10
+ dicube/codecs/jph/ojph_decode_complete.cp39-win_amd64.pyd,sha256=nCm7fjGl6gmOiTj1P8Pu8MWWmskHMdxe8CAn0ckbqrM,638976
17
11
  dicube/core/__init__.py,sha256=TJBS1xA2qVS7xxH6vZKPrd7YiQYtyLfNSs48tlmBCD8,676
18
12
  dicube/core/image.py,sha256=WR9GKat0st0ior7zw1wi_5Bpd5cZoHWvsPzjYJAwpcg,14525
19
- dicube/core/io.py,sha256=kMGiT20Gmkb55tFXxIDiU6RS3owHkqF7xk4IVq78eNU,15915
13
+ dicube/core/io.py,sha256=htVflYmSgB--2CSKftfEfNLEtIJ7Jrg02A1MveW3Xs8,16036
20
14
  dicube/core/pixel_header.py,sha256=gikXfkjTGVQUqTWUk8Q2xAPsDfWm0iRPcwdIxIImr94,4124
21
15
  dicube/dicom/__init__.py,sha256=OGnAHS3pCbb94Vpsc0x3d2gjv5UBAM9oUR3mxQVruYQ,383
22
16
  dicube/dicom/dcb_streaming.py,sha256=6b50m5SEHFkdkWYKl6_ClzvPZZJKlJlVNR08sWF-Xdo,9335
@@ -32,6 +26,6 @@ dicube/storage/dcb_file.py,sha256=tt7aYi4x_gxf4s6De6tSkpiwyoCp1ZcG-Piixai1Jw8,32
32
26
  dicube/storage/pixel_utils.py,sha256=_KrsMoKHsgGc9QFSkmpx5YlDNcTOYPkCSu-zGt3WS7k,10017
33
27
  dicube/utils/__init__.py,sha256=r4wAqNWphzYWaeYN9fcoFCX7mTcOtNACzZ4O-dDCQ10,154
34
28
  dicube/validation.py,sha256=aFu2lKW9NDl13eKedYhOjw1g50uOf_x0wx3y3g9cLsA,12857
35
- dicube-0.2.0.dist-info/METADATA,sha256=xDYbYiX9NKyLH0bAbBNOsziAxvXHyyQyELP8RlGA5ys,10581
36
- dicube-0.2.0.dist-info/WHEEL,sha256=dD8EM_eb3pZmEbkvPEPxqrbrFtr3mwlecsbXbps1z7Y,106
37
- dicube-0.2.0.dist-info/RECORD,,
29
+ dicube-0.2.2.dist-info/METADATA,sha256=nBhXpfkqIUhGO2LUB-HmTwmDIolxcvd-cr8tW4CJNzM,10627
30
+ dicube-0.2.2.dist-info/WHEEL,sha256=dD8EM_eb3pZmEbkvPEPxqrbrFtr3mwlecsbXbps1z7Y,106
31
+ dicube-0.2.2.dist-info/RECORD,,
File without changes