diff --git a/ai4ts/__init__.py b/ai4ts/__init__.py index 781d9f8..4c49348 100644 --- a/ai4ts/__init__.py +++ b/ai4ts/__init__.py @@ -13,7 +13,7 @@ "__version__", ] -if sys.stdout.encoding == "utf-8": +if sys.stdout.encoding.lower() == "utf-8": # for Unix-like systems (macOS and Linux) that can decode chars like ═ and ╝ logo = f"""\u001b[34m ████████╗██╗███╗ ███╗███████╗ ███████╗███████╗██████╗ ██╗███████╗███████╗ █████╗ ██╗ @@ -22,8 +22,7 @@ ██║ ██║██║╚██╔╝██║██╔══╝╚════╝╚════██║██╔══╝ ██╔══██╗██║██╔══╝ ╚════██║ ██╔══██║██║ ██║ ██║██║ ╚═╝ ██║███████╗ ███████║███████╗██║ ██║██║███████╗███████║██╗██║ ██║██║ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝╚═╝ -v{0.1} - building AI for unified time-series analysis, https://time-series.ai -\u001b[0m +ai4ts v{__version__} - building AI for unified time-series analysis, https://time-series.ai \u001b[0m """ else: # for Windows platform @@ -33,8 +32,8 @@ ██ ██ ██ ████ ██ █████ █████ ███████ █████ ██████ ██ █████ ███████ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███████ ███████ ███████ ██ ██ ██ ███████ ███████ ██ ██ ██ ██ -v{0.1} - building AI for unified time-series analysis, https://time-series.ai -\u001b[0m +ai4ts v{__version__} - building AI for unified time-series analysis, https://time-series.ai \u001b[0m """ + logo = logo.encode("utf-8").decode(sys.stdout.encoding, errors="ignore") -print(logo.encode("utf8").decode(sys.stdout.encoding, errors="ignore")) +print(logo) diff --git a/ai4ts/version.py b/ai4ts/version.py index f623f66..3a3ced1 100644 --- a/ai4ts/version.py +++ b/ai4ts/version.py @@ -21,4 +21,4 @@ # # Dev branch marker is: 'X.Y.dev' or 'X.Y.devN' where N is an integer. # 'X.Y.dev0' is the canonical version of 'X.Y.dev' -__version__ = "0.0.2" +__version__ = "0.0.3"