throwstd::runtime_error("Could not locate the CCD components.cif file, please make sure the software is installed properly and/or use the update-dictionary-script to fetch the data.");
std::unique_ptr<std::istream>ccd;
if(mCompoundsFile.empty())
{
ccd=cif::loadResource("components.cif");
if(notccd)
throwstd::runtime_error("Could not locate the CCD components.cif file, please make sure the software is installed properly and/or use the update-dictionary-script to fetch the data.");
// reload the resource, perhaps this should be improved...
ccd=cif::loadResource("components.cif");
if(mCompoundsFile.empty())
{
ccd=cif::loadResource("components.cif");
if(notccd)
throwstd::runtime_error("Could not locate the CCD components.cif file, please make sure the software is installed properly and/or use the update-dictionary-script to fetch the data.");