repo.or.cz
/
memoirecycle.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Correction d'une faute d'orthographe
[memoirecycle.git]
/
refpropext.py
blob
5d04893b384df1008bb193a75d2a06372ac56198
1
import
refprop
2
import
sys
3
if
__name__
==
'__main__'
:
4
fluid
=
sys
.
argv
[
1
]
5
try
:
6
while True
:
7
q
=
sys
.
stdin
.
readline
()
8
f
,
a
,
b
=
q
.
split
(
'/'
)
9
sys
.
stdout
.
write
(
str
(
refprop
.
function
(
f
,
float
(
a
),
float
(
b
),
fluid
))+
"
\n
"
)
10
sys
.
stdout
.
flush
()
11
except
:
12
pass