Coverage for src\model2sas\global_vars.py: 100%
8 statements
« prev ^ index » next coverage.py v7.5.0, created at 2024-05-09 17:12 +0800
« prev ^ index » next coverage.py v7.5.0, created at 2024-05-09 17:12 +0800
1import torch
2from art import text2art
4"""KNOWN ISSUES
5- [ ] 在本模块其他文件里使用 from ... import SOME_GLOBAL_VAR 的时候实际在那个文件下有了一个单独的SOME_GLOBAL_VAR,而在外部修改全局彬良就不起作用了
6"""
8PRECISION: torch.dtype = torch.float32
10PRINT_LOG: bool = True
12LOG_LEVEL: int = -1
14LOG_FORMAT_STR: str = '<cyan>{time:YYYY-MM-DD HH:mm:ss.SSS}</cyan> | <level>{level: <8}</level> | <level>{message}</level>'
16WELCOME_MESSAGE = str(text2art("Model2SAS")).rstrip('\n') + '''
17===== Small-angle scattering simulation from 3d models =====
19🏠️ Github: https://github.com/molybd/Model2SAS
20📄 Please cite: Li, Mu and Yin, Panchao, Model2SAS: software for small-angle scattering data calculation from custom shapes., J. Appl. Cryst., 2022, 55, 663-668. https://doi.org/10.1107/S1600576722003600
21'''