dcicutils 8.13.3.1b23__py3-none-any.whl → 8.13.3.1b24__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
dcicutils/misc_utils.py CHANGED
@@ -1005,16 +1005,12 @@ _MULTIPLIER_T = 1000 * _MULTIPLIER_G
1005
1005
 
1006
1006
  _MULTIPLIER_SUFFIXES = {
1007
1007
  "K": _MULTIPLIER_K,
1008
- "Kb": _MULTIPLIER_K,
1009
1008
  "KB": _MULTIPLIER_K,
1010
1009
  "M": _MULTIPLIER_M,
1011
- "Mb": _MULTIPLIER_M,
1012
1010
  "MB": _MULTIPLIER_M,
1013
1011
  "G": _MULTIPLIER_G,
1014
- "Gb": _MULTIPLIER_G,
1015
1012
  "GB": _MULTIPLIER_G,
1016
1013
  "T": _MULTIPLIER_T,
1017
- "Tb": _MULTIPLIER_T,
1018
1014
  "TB": _MULTIPLIER_T
1019
1015
  }
1020
1016
 
@@ -1051,8 +1047,9 @@ def to_number(value: str,
1051
1047
  return fallback
1052
1048
 
1053
1049
  if allow_multiplier_suffix is True:
1050
+ value_upper = value.upper()
1054
1051
  for suffix in _MULTIPLIER_SUFFIXES:
1055
- if value.endswith(suffix):
1052
+ if value_upper.endswith(suffix):
1056
1053
  value_multiplier *= _MULTIPLIER_SUFFIXES[suffix]
1057
1054
  if not (value := value[:-len(suffix)].strip()):
1058
1055
  return fallback
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dcicutils
3
- Version: 8.13.3.1b23
3
+ Version: 8.13.3.1b24
4
4
  Summary: Utility package for interacting with the 4DN Data Portal and other 4DN resources
5
5
  Home-page: https://github.com/4dn-dcic/utils
6
6
  License: MIT
@@ -45,7 +45,7 @@ dcicutils/license_policies/park-lab-gpl-pipeline.jsonc,sha256=vLZkwm3Js-kjV44nug
45
45
  dcicutils/license_policies/park-lab-pipeline.jsonc,sha256=9qlY0ASy3iUMQlr3gorVcXrSfRHnVGbLhkS427UaRy4,283
46
46
  dcicutils/license_utils.py,sha256=2Yxnh1T1iuMe6wluwbvpFO_zYSGPxB4-STAMc-vz-YM,47202
47
47
  dcicutils/log_utils.py,sha256=7pWMc6vyrorUZQf-V-M3YC6zrPgNhuV_fzm9xqTPph0,10883
48
- dcicutils/misc_utils.py,sha256=GwabwKfZvv8tXcEtPBwzNHPbOfzgAbRswTkYDoW6pFE,112984
48
+ dcicutils/misc_utils.py,sha256=IIppGKxdEZmKQKFQnUFylLZIg1YUYjAkMslnUhA4h54,112926
49
49
  dcicutils/obfuscation_utils.py,sha256=fo2jOmDRC6xWpYX49u80bVNisqRRoPskFNX3ymFAmjw,5963
50
50
  dcicutils/opensearch_utils.py,sha256=V2exmFYW8Xl2_pGFixF4I2Cc549Opwe4PhFi5twC0M8,1017
51
51
  dcicutils/portal_object_utils.py,sha256=Az3n1aL-PQkN5gOFE6ZqC2XkYsqiwKlq7-tZggs1QN4,11062
@@ -75,8 +75,8 @@ dcicutils/trace_utils.py,sha256=g8kwV4ebEy5kXW6oOrEAUsurBcCROvwtZqz9fczsGRE,1769
75
75
  dcicutils/validation_utils.py,sha256=cMZIU2cY98FYtzK52z5WUYck7urH6JcqOuz9jkXpqzg,14797
76
76
  dcicutils/variant_utils.py,sha256=2H9azNx3xAj-MySg-uZ2SFqbWs4kZvf61JnK6b-h4Qw,4343
77
77
  dcicutils/zip_utils.py,sha256=_Y9EmL3D2dUZhxucxHvrtmmlbZmK4FpSsHEb7rGSJLU,3265
78
- dcicutils-8.13.3.1b23.dist-info/LICENSE.txt,sha256=qnwSmfnEWMl5l78VPDEzAmEbLVrRqQvfUQiHT0ehrOo,1102
79
- dcicutils-8.13.3.1b23.dist-info/METADATA,sha256=ENxCidpL5wyavgS1kKnIj09sMPK42qj0Q9sl1s8WAoU,3440
80
- dcicutils-8.13.3.1b23.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
81
- dcicutils-8.13.3.1b23.dist-info/entry_points.txt,sha256=W6kEWdUJk9tQ4myAgpehPdebcwvCAZ7UgB-wyPgDUMg,335
82
- dcicutils-8.13.3.1b23.dist-info/RECORD,,
78
+ dcicutils-8.13.3.1b24.dist-info/LICENSE.txt,sha256=qnwSmfnEWMl5l78VPDEzAmEbLVrRqQvfUQiHT0ehrOo,1102
79
+ dcicutils-8.13.3.1b24.dist-info/METADATA,sha256=Z2pf6DW_2O_gZWUcenMJmDRknNzA3BpQ6C63aybr-kk,3440
80
+ dcicutils-8.13.3.1b24.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
81
+ dcicutils-8.13.3.1b24.dist-info/entry_points.txt,sha256=W6kEWdUJk9tQ4myAgpehPdebcwvCAZ7UgB-wyPgDUMg,335
82
+ dcicutils-8.13.3.1b24.dist-info/RECORD,,