lib/crystalcell/cell.rb in crystalcell-0.0.4 vs lib/crystalcell/cell.rb in crystalcell-0.0.5
- old
+ new
@@ -334,11 +334,11 @@
axes << @axes[ i ]
end
end
@axes = CrystalCell::LatticeAxes.new( axes )
- atoms = []
+ #atoms = []
@atoms.each do |atom|
position = []
3.times do |i|
if i == axis_id
position[i] = atom.position[i] * (-1)
@@ -474,15 +474,15 @@
table[elem]
end
#pp axes_t, poss, types, symprec, angle_tolerance
- spgnum, spg, hallnum, hall_symbol, t_mat, o_shift,
- rotations, translations, wyckoffs =
- #include Getspg
- #pp Getspg.methods.sort
- #Getspg::get_dataset(axes_t, poss, types, symprec, angle_tolerance)
- get_dataset(axes_t, poss, types, symprec, angle_tolerance)
+ #spgnum, spg, hallnum, hall_symbol, t_mat, o_shift,
+ #rotations, translations, wyckoffs =
+ # get_dataset(axes_t, poss, types, symprec, angle_tolerance)
+ dataset = get_dataset(axes_t, poss, types, symprec, angle_tolerance)
+ rotations = dataset[6]
+ translations = dataset[7]
results = []
rotations.size.times do |index|
results << {
:rotation => rotations[index],