UnitCell PoldiPeakCollection::unitCellFromString( const std::string &unitCellString) const { UnitCell cell; try { cell = strToUnitCell(unitCellString); } catch (const std::runtime_error &) { // do nothing } return cell; }
/// 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)); }