jetpytools 1.6.0__py3-none-any.whl → 1.6.2__py3-none-any.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.
Potentially problematic release.
This version of jetpytools might be problematic. Click here for more details.
- jetpytools/_metadata.py +1 -1
- jetpytools/functions/normalize.py +3 -3
- {jetpytools-1.6.0.dist-info → jetpytools-1.6.2.dist-info}/METADATA +1 -1
- {jetpytools-1.6.0.dist-info → jetpytools-1.6.2.dist-info}/RECORD +6 -6
- {jetpytools-1.6.0.dist-info → jetpytools-1.6.2.dist-info}/WHEEL +0 -0
- {jetpytools-1.6.0.dist-info → jetpytools-1.6.2.dist-info}/licenses/LICENSE +0 -0
jetpytools/_metadata.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Collection of stuff that's useful in general python programming"""
|
|
2
2
|
|
|
3
|
-
__version__ = "1.6.
|
|
3
|
+
__version__ = "1.6.2"
|
|
4
4
|
|
|
5
5
|
__author_name__, __author_email__ = "Jaded Encoding Thaumaturgy", "jaded.encoding.thaumaturgy@gmail.com"
|
|
6
6
|
__maintainer_name__, __maintainer_email__ = __author_name__, __author_email__
|
|
@@ -123,7 +123,7 @@ def normalize_list_to_ranges(flist: Iterable[int], min_length: int = 0, exclusiv
|
|
|
123
123
|
for n in sorted(set(flist)):
|
|
124
124
|
if prev_n + 1 != n and flist3:
|
|
125
125
|
flist2.append(flist3)
|
|
126
|
-
flist3
|
|
126
|
+
flist3 = []
|
|
127
127
|
flist3.append(n)
|
|
128
128
|
prev_n = n
|
|
129
129
|
|
|
@@ -207,7 +207,7 @@ def normalize_ranges(
|
|
|
207
207
|
if any(
|
|
208
208
|
[
|
|
209
209
|
start < 0 and end < 0,
|
|
210
|
-
start >= length and end
|
|
210
|
+
start >= length and end + (not exclusive) > length,
|
|
211
211
|
start >= end + (not exclusive),
|
|
212
212
|
]
|
|
213
213
|
):
|
|
@@ -225,7 +225,7 @@ def normalize_ranges(
|
|
|
225
225
|
)
|
|
226
226
|
exceptions.append(exception)
|
|
227
227
|
continue
|
|
228
|
-
if end
|
|
228
|
+
if end + (not exclusive) > length:
|
|
229
229
|
exception = CustomOverflowError(
|
|
230
230
|
f"End frame `{end}` in range `{r}` with length `{length}` could not be normalized!",
|
|
231
231
|
normalize_ranges,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jetpytools
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.2
|
|
4
4
|
Summary: Collection of stuff that's useful in general python programming
|
|
5
5
|
Project-URL: Source Code, https://github.com/Jaded-Encoding-Thaumaturgy/jetpytools
|
|
6
6
|
Project-URL: Contact, https://discord.gg/XTpc6Fa9eB
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
jetpytools/__init__.py,sha256=ha_pCOMqfeIbipDRrtqKOqH3NQEpX4KwN2SskpsCGb4,114
|
|
2
|
-
jetpytools/_metadata.py,sha256=
|
|
2
|
+
jetpytools/_metadata.py,sha256=bZL3zsBNZJM09j0oh5drgBXZLPabwXwgiwhkfOuGDfI,414
|
|
3
3
|
jetpytools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
jetpytools/enums/__init__.py,sha256=TvEt3TWmnzf2TWS_Gd6llyyXAGDKxdhdJsDgSvT7xys,41
|
|
5
5
|
jetpytools/enums/base.py,sha256=L5dk6UAsQ3V6GVj0vulKaiJsholnh0Ftyh1FZFM9zwI,2034
|
|
@@ -12,7 +12,7 @@ jetpytools/exceptions/generic.py,sha256=5LYQHdSLM2wu5fv40PTrjkW9v0iq8R-QlQzhVsiL
|
|
|
12
12
|
jetpytools/exceptions/module.py,sha256=hjkpvTPZALRvo1Q5y7D1wEAsssjyRZSZSf98gks3lKw,1231
|
|
13
13
|
jetpytools/functions/__init__.py,sha256=jCw3-aaOGxIzi6iyFInWPOxOFbzZg8IZhoSuGYaNgLA,67
|
|
14
14
|
jetpytools/functions/funcs.py,sha256=lcdWaJtslhXZNfNu_y-Badgz2uy0bVaoA3D_lLo_GNI,5286
|
|
15
|
-
jetpytools/functions/normalize.py,sha256=
|
|
15
|
+
jetpytools/functions/normalize.py,sha256=czliT8iyYPdiJG3C7wHppFrOxeVP5OOWZGdRPHFvEi8,8594
|
|
16
16
|
jetpytools/functions/other.py,sha256=P_NdrtFxR_Sosn9QblU-Ea4mKEyWY7AegQzmiQPSVLk,407
|
|
17
17
|
jetpytools/types/__init__.py,sha256=oP1cm6LtRpjPXQ0M4JnKH4RkzrBxBPos_xLHaITrgSs,154
|
|
18
18
|
jetpytools/types/builtins.py,sha256=4uAutpHlkcKM3K_6BbWomqR2QgWNt6294FHE3Ck_ZIA,2067
|
|
@@ -27,7 +27,7 @@ jetpytools/utils/file.py,sha256=um4ow7_UEH1UxOV74w6F1u4s0wC4zh98LrcwBYjed50,1057
|
|
|
27
27
|
jetpytools/utils/funcs.py,sha256=2qhFyLD0OLvenjzOu2wu1ZWoZGzQ8aPmvbkAI1i9Gvk,914
|
|
28
28
|
jetpytools/utils/math.py,sha256=I56OeHDDJl3X8EFXMWVEiXGAD16AKcn8KVnFuP5fFes,3445
|
|
29
29
|
jetpytools/utils/ranges.py,sha256=glxypgmuzauV6KCSNujNHOdWkNEUNylOUAPS618jnIg,2559
|
|
30
|
-
jetpytools-1.6.
|
|
31
|
-
jetpytools-1.6.
|
|
32
|
-
jetpytools-1.6.
|
|
33
|
-
jetpytools-1.6.
|
|
30
|
+
jetpytools-1.6.2.dist-info/METADATA,sha256=N-C9np7REQrTxlSHiU5raRNWEDdLb6FSN8yrY9lHWQU,1198
|
|
31
|
+
jetpytools-1.6.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
32
|
+
jetpytools-1.6.2.dist-info/licenses/LICENSE,sha256=l0PN-qDtXcgOB5aXP_nSUsvCK5V3o9pQCGsTzyZhKL0,1071
|
|
33
|
+
jetpytools-1.6.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|