Skip to content

Commit

Permalink
Fix a bug in read_f_tv
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Sep 4, 2023
1 parent 581d938 commit 9e797e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function read_f_tv(path)
iterable = File(path; delim=" ", header=1, ignorerepeated=true)
header = columnnames(iterable) # Only read header
iterator = Iterators.Stateful(iterable)
volumes = Pressure(map(Base.Fix1(parse, Float64) string, header[2:end]))
volumes = Volume(map(Base.Fix1(parse, Float64) string, header[2:end]))
temperatures, data = Float64[], Vector{Float64}[]
for row in iterator
temperature, datum... = [only(getcolumn(row, col)) for col in header]
Expand Down

0 comments on commit 9e797e9

Please sign in to comment.