Skip to content

Commit 81e77d6

Browse files
committed
update
1 parent 8e337d5 commit 81e77d6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ begin # water vapor demand
245245
local V = 8.5 # initial volume of humid air is
246246
(state5.W - state1.W) * (V / state1.v)
247247
end
248-
using PrettyTables
249-
begin
248+
try # PrettyTables is not included in Psychrometrics!
249+
using PrettyTables
250250
local table = [name for name in fieldnames(Psychrometrics.HumidAir)]
251251
for i in (state1, state2, state3, state4, state5)
252252
table = [table [getfield(i, field) for field in 1:nfields(i)]]
@@ -255,6 +255,7 @@ begin
255255
"Parameter", "State 1", "State 2", "State 3", "State 4", "State 5"
256256
]
257257
pretty_table(table, header=header)
258+
catch
258259
end
259260
```
260261

src/psychro.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ julia> begin # water vapor demands
212212
end
213213
0.1871046008688284
214214
215-
julia> using PrettyTables
215+
julia>
216216
217-
julia> begin
217+
julia> try # PrettyTables is not included in Psychrometrics!
218+
using PrettyTables
218219
local table = [name for name in fieldnames(Psychrometrics.HumidAir)]
219220
for i in (state1, state2, state3, state4, state5)
220221
table = [table [getfield(i, field) for field in 1:nfields(i)]]
@@ -223,6 +224,7 @@ julia> begin
223224
"Parameter", "State 1", "State 2", "State 3", "State 4", "State 5"
224225
]
225226
pretty_table(table, header=header)
227+
catch
226228
end
227229
```
228230
"""

0 commit comments

Comments
 (0)