lib/vasputils/xdatcar.rb in vasputils-0.1.3 vs lib/vasputils/xdatcar.rb in vasputils-0.1.4

- old
+ new

@@ -41,10 +41,10 @@ #line 3-5: axes (3x3 Array of float) axes = [] 3.times do |i| #each axis of a, b, c. vec = io.readline.strip.split(/\s+/) #in x,y,z directions - axes << vec.collect! { |i| i.to_f * scale } #multiply scaling factor + axes << vec.collect! { |j| j.to_f * scale } #multiply scaling factor end vals = io.readline.strip.split(/\s+/) elements = nil if vals[0].to_i == 0