コード例 #1
0
UnitCell PoldiPeakCollection::unitCellFromString(
    const std::string &unitCellString) const {
  UnitCell cell;

  try {
    cell = strToUnitCell(unitCellString);
  } catch (const std::runtime_error &) {
    // do nothing
  }

  return cell;
}
コード例 #2
0
/// Sets the unit cell from a string with either 6 or 3 space-separated numbers.
void PawleyFunction::setUnitCell(const std::string &unitCellString) {
  m_pawleyParameterFunction->setParametersFromUnitCell(
      strToUnitCell(unitCellString));
}