1
0
Fork 0
mirror of https://github.com/fjosw/pyerrors.git synced 2025-03-15 14:50:25 +01:00

docs: version guard added to combined fit example.

This commit is contained in:
Fabian Joswig 2023-03-09 13:38:51 +00:00
parent 507fa7dbdc
commit e41f869d18
No known key found for this signature in database

View file

@ -9,7 +9,10 @@
"source": [
"import pyerrors as pe\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt"
"import matplotlib.pyplot as plt\n",
"from packaging import version\n",
"if version.parse(pe.__version__) < version.parse(\"2.6.0\"):\n",
" raise Exception(f\"v2.6.0 or newer is required for this example, you are using {pe.__version__}\")"
]
},
{