-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path__init__.py
More file actions
58 lines (49 loc) · 1.52 KB
/
__init__.py
File metadata and controls
58 lines (49 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# -*- coding: utf-8 -*-
"""AnyPyTools library."""
import logging
import os
import platform
import sys
if "FOR_DISABLE_CONSOLE_CTRL_HANDLER" not in os.environ:
os.environ["FOR_DISABLE_CONSOLE_CTRL_HANDLER"] = "1"
from anypytools import macro_commands
from anypytools.abcutils import AnyPyProcess, execute_anybodycon
from anypytools.macroutils import AnyMacro
from anypytools.tools import (
ABOVE_NORMAL_PRIORITY_CLASS,
BELOW_NORMAL_PRIORITY_CLASS,
IDLE_PRIORITY_CLASS,
NORMAL_PRIORITY_CLASS,
)
logger = logging.getLogger("abt.anypytools")
logger.addHandler(logging.NullHandler())
__all__ = [
"datautils",
"h5py_wrapper",
"AnyPyProcess",
"AnyMacro",
"macro_commands",
"print_versions",
"execute_anybodycon",
"ABOVE_NORMAL_PRIORITY_CLASS",
"BELOW_NORMAL_PRIORITY_CLASS",
"IDLE_PRIORITY_CLASS",
"NORMAL_PRIORITY_CLASS",
]
__version__ = "1.20.4"
def print_versions():
"""Print all the versions of software that AnyPyTools relies on."""
import numpy as np
import scipy as sp
print("-=" * 38)
print(f"AnyPyTools version: {__version__}")
print(f"NumPy version: {np.__version__}")
print(f"SciPy version: {sp.__version__}")
print(f"Python version: {sys.version}")
(sysname, _, release, version, machine, processor) = platform.uname()
print(f"Platform: {sysname}-{release}-{machine} ({version})")
if not processor:
processor = "not recognized"
print(f"Processor: {processor}")
print(f"Byte-ordering: {sys.byteorder}")
print("-=" * 38)