Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InternScience/SciReason
/ get_version
Function
get_version
setup.py:100–104 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
98
99
100
def
get_version():
101
version_file =
'opencompass/__init__.py'
102
with
open(version_file,
'r'
, encoding=
'utf-8'
)
as
f:
103
exec(compile(f.read(), version_file,
'exec'
))
104
return
locals()[
'__version__'
]
105
106
107
def
do_setup():
Callers
1
do_setup
Function · 0.70
Calls
2
open
Function · 0.85
read
Method · 0.45
Tested by
no test coverage detected