Skip to content

Commit

Permalink
round the output of the lightroom conversion equation and cast to string
Browse files Browse the repository at this point in the history
  • Loading branch information
conch committed May 17, 2012
1 parent 968ddc8 commit 1e2198a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disco_write_to_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@

def convert_acc_to_lr(angle, focal):
ratio = 4.26959 - (0.225898 * focal) + (0.00472149 * focal * focal) - (0.000023727 * focal * focal * focal)
return (angle * ratio)
return str(int(round(angle * ratio)))

0 comments on commit 1e2198a

Please sign in to comment.