Skip to content

Commit

Permalink
new keys and values have been added. (#18)
Browse files Browse the repository at this point in the history
* new keys and values have been added.
"x translation in pixels"
"y translation in pixels"
"rotation angle in degree"

* A parse type for "rotation angle in degree" has been changed from Int to Float64.
  • Loading branch information
mdhe1248 committed Dec 9, 2017
1 parent 6ecc906 commit 8e540ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ImagineFormat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ const field_key_dict = Dict{AbstractString,Function}(
"hend" => x->parse(Int,x),
"vstart" => x->parse(Int,x),
"vend" => x->parse(Int,x),
"angle from horizontal (deg)" => float64_or_empty)
"angle from horizontal (deg)" => float64_or_empty,
"x translation in pixels" => x->parse(Int,x) != 0,
"y translation in pixels" => x->parse(Int,x) != 0,
"rotation angle in degree" => x->parse(Float64,x) != 0)


function parse_header(s::IOStream)
headerdict = Dict{String, Any}()
Expand Down

0 comments on commit 8e540ed

Please sign in to comment.