-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify codes about version info #189
Conversation
__version__
__version__
__version__
__version__
and check mmcv version
__version__
and check mmcv version
Codecov Report
@@ Coverage Diff @@
## master #189 +/- ##
==========================================
- Coverage 85.87% 85.81% -0.06%
==========================================
Files 77 78 +1
Lines 4849 4871 +22
Branches 765 768 +3
==========================================
+ Hits 4164 4180 +16
- Misses 559 564 +5
- Partials 126 127 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
CU-4dnmw1 |
Task linked: CU-4dnmw1 MMAction2 |
Task linked: CU-4dnmxx MMAction2 |
NUM_HASHES = 7 | ||
|
||
|
||
def get_short_git_hash(num_hashes=7): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this function be moved to mmcv?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's do it in a separate pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc. @hellock
short_version = __version__ | ||
|
||
|
||
def parse_version_info(version_str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should also go to mmcv
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc. @hellock
|
||
import mmaction | ||
|
||
NUM_HASHES = 7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not needed any more
|
||
def collect_env(): | ||
env_info = collect_basic_env() | ||
env_info['MMAction2'] = mmaction.__version__ | ||
env_info['MMAction2'] = ( | ||
mmaction.__version__ + '+' + get_short_git_hash(NUM_HASHES)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
This PR modifies codes related with some version information.
__version__
.mmcv
version.