Skip to content

Commit

Permalink
add example test jupyter+snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMVale committed Oct 14, 2023
1 parent d8ab24f commit 41a31d8
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
65 changes: 65 additions & 0 deletions docs/reference/physprops/antoine.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"from polykin.physprops import Antoine"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"# Parameters: https://webbook.nist.gov/cgi/cbook.cgi?ID=C7732185&Mask=4&Type=ANTOINE&Plot=on\n",
"Pvap_water = Antoine(\n",
" A=4.6543, B=1435.264, C=-64.848, Tmin=255.9, Tmax=373.15, unit='bar')"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.9975085850422554"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"Pvap_water(100,'C')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.10"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
16 changes: 16 additions & 0 deletions docs/reference/physprops/vapor_pressure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# polykin.physprops

::: polykin.physprops.vapor_pressure
options:
members:
- Antoine
- Wagner

## Example to check snippet+jupyter

Jupyter notebook as link (this works): [link](antoine.ipynb)

Jupyter notebook as snippet (this does not work):

--8<-- "reference/physprops/antoine.ipynb"

0 comments on commit 41a31d8

Please sign in to comment.