本文整理汇总了Python中tvb.basic.profile.TvbProfile.is_library_mode方法的典型用法代码示例。如果您正苦于以下问题:Python TvbProfile.is_library_mode方法的具体用法?Python TvbProfile.is_library_mode怎么用?Python TvbProfile.is_library_mode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tvb.basic.profile.TvbProfile
的用法示例。
在下文中一共展示了TvbProfile.is_library_mode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: initialize_profile
# 需要导入模块: from tvb.basic.profile import TvbProfile [as 别名]
# 或者: from tvb.basic.profile.TvbProfile import is_library_mode [as 别名]
""" Return a folder, where all log files are to be stored. """
tmp_path = os.path.join(LibraryProfile.TVB_STORAGE, "logs")
if not os.path.exists(tmp_path):
os.makedirs(tmp_path)
return tmp_path
@classmethod
def initialize_profile(cls):
"""No initialization needed for this particular profile. But useful in general"""
pass
###
### Dependent of the selected profile and framework classes being present or not, load the correct configuration.
###
if TvbProfile.is_library_mode():
## TVB-Simulator-Library is used stand-alone.
TVBSettings = LibraryProfile
else:
## Initialization based on profile is further done in Framework.
from tvb.config.settings import FrameworkSettings
TVBSettings = FrameworkSettings
TVBSettings.initialize_profile()