mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
docs: version guard added to combined fit example.
This commit is contained in:
parent
507fa7dbdc
commit
e41f869d18
1 changed files with 4 additions and 1 deletions
|
@ -9,7 +9,10 @@
|
||||||
"source": [
|
"source": [
|
||||||
"import pyerrors as pe\n",
|
"import pyerrors as pe\n",
|
||||||
"import numpy as np\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__}\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue