Skip to content

Commit

Permalink
Merge pull request #276 from inbo/split_notpresent
Browse files Browse the repository at this point in the history
Split notpresent

ignoring the coverage error - which seems incorrect
  • Loading branch information
johanvdw committed Mar 28, 2022
2 parents 527049a + 69a250f commit ecfdf48
Show file tree
Hide file tree
Showing 7 changed files with 499 additions and 2,085 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,7 @@ docs/_build

# pyCharm files
.idea

# test and doc build files
tests/_*
docs/_*
38 changes: 37 additions & 1 deletion docs/advanced_usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,37 @@
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Create detailed absence/presence plots\n",
"\n",
"Rather than just showing if a certain vegetation type is present or not present, it is possible to show a more detailed analysis on the reason a vegetation type is present or not present. This follows the the steps of the niche analysis: ie if soil type is possible, mxw checks are done and finally other input grids are matched."
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'full' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m/tmp/ipykernel_112934/1467200067.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0max\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mfull\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mplot\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m7\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0max\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mfull\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mplot_detail\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m7\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mNameError\u001b[0m: name 'full' is not defined"
]
}
],
"source": [
"ax = full.plot(7)\n",
"ax = full.plot_detail(7)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -279,6 +310,11 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
Expand All @@ -289,7 +325,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
"version": "3.9.2"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit ecfdf48

Please sign in to comment.