feat: print_config function added to help with debugging.

This commit is contained in:
Fabian Joswig 2023-03-11 21:17:09 +00:00
parent d8fb683262
commit 8ed5ce9569
No known key found for this signature in database
2 changed files with 22 additions and 2 deletions

View file

@ -465,4 +465,4 @@ from . import linalg
from . import mpm
from . import roots
from .version import __version__
from .version import __version__, print_config

View file

@ -1 +1,21 @@
__version__ = "2.7.0+dev"
import platform
import numpy as np
import scipy
import matplotlib
import pandas as pd
__version__ = "2.7.0-dev"
def print_config():
"""Print information about version of python, pyerrors and dependencies."""
config = {"python": platform.python_version(),
"pyerrors": __version__,
"numpy": np.__version__,
"scipy": scipy.__version__,
"matplotlib": matplotlib.__version__,
"pandas": pd.__version__}
for key, value in config.items():
print(f"{key : <10}\t {value}")