MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / digit_version

Function digit_version

detrsmpl/__init__.py:6–15  ·  view source on GitHub ↗
(version_str)

Source from the content-addressed store, hash-verified

4
5
6def digit_version(version_str):
7 digit_version = []
8 for x in version_str.split('.'):
9 if x.isdigit():
10 digit_version.append(int(x))
11 elif x.find('rc') != -1:
12 patch_version = x.split('rc')
13 digit_version.append(int(patch_version[0]) - 1)
14 digit_version.append(int(patch_version[1]))
15 return digit_version
16
17
18mmcv_minimum_version = '1.3.17'

Callers 1

__init__.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected