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:
parent
507fa7dbdc
commit
e41f869d18
1 changed files with 4 additions and 1 deletions
|
@ -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__}\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue