prism-em / prismatic

C++/CUDA package for parallelized simulation of image formation in Scanning Transmission Electron Microscopy (STEM) using the PRISM and multislice algorithms
GNU General Public License v3.0
79 stars 40 forks source link

String parsing error in atoms.cpp #74

Closed prism-em closed 4 years ago

prism-em commented 4 years ago

The last character is dropped when reading in atoms from .xyz input files. Currently testing a fix on dev-colin branch, changing:

line = line.substr(line.find_first_not_of(" \n\t"), line.find_last_not_of(" \n\t")); to line = line.substr(line.find_first_not_of(" \n\t"), line.find_last_not_of(" \n\t"))+1;

prism-em commented 4 years ago

Issue was already fixed