fix __version_as_int__ for >10 minor/patch release vers (resolves #1982) #1993
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bug
#1982
Description of the Change
Uses 1000 base, to fix
6.12.2
__version_as_int__
being larger than one from release7.2.1
.Alternate Designs
already discussed in #1982
Possible Drawbacks
If for some reason int16 was used to store the version number it could be a problem, but glance at subtensor code seems to indicate, int32 was used there.
Verification Process
Manual + added simple asserts to prevent similar problems from ever occurring in the future (it will basically immediately explode on import)
Release Notes
bittensor.__version_as_int__
from release 6.12.x being higher number than one from7.x
line by encoding it using 1000 base instead of 10.bittensor.version_split
- usebittensor.__version__
,bittensor.__version_info__
orbittensor.__version_as_int__
instead