mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
feat: print_config function added to help with debugging.
This commit is contained in:
parent
d8fb683262
commit
8ed5ce9569
2 changed files with 22 additions and 2 deletions
|
@ -465,4 +465,4 @@ from . import linalg
|
||||||
from . import mpm
|
from . import mpm
|
||||||
from . import roots
|
from . import roots
|
||||||
|
|
||||||
from .version import __version__
|
from .version import __version__, print_config
|
||||||
|
|
|
@ -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}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue