Skip to content

Commit

Permalink
Support both "bidirection" and "bidirectional" as keys
Browse files Browse the repository at this point in the history
We should switch to just "bidirectional" but old files may be written 
this way.
  • Loading branch information
timholy committed Oct 9, 2019
1 parent f267dd6 commit a615525
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ImagineFormat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ writeMHz(io,x) = nothing

const write_dict = Dict{String,Function}(
"bidirectional" => (io,x)->x ? print(io, 1) : print(io, 0),
"bidirection" => (io,x)->x ? print(io, 1) : print(io, 0),
"start position" => writeum,
"stop position" => writeum,
"vertical shift speed" => (io,x)->(writeus(io,x); print(io,'\n')),
Expand Down

0 comments on commit a615525

Please sign in to comment.