Commit 55b1c566 by maarten

phenix

git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@434 a1961a4f-ab94-4bcc-80e8-33b5a54de466
parent 1c009d48
...@@ -716,8 +716,18 @@ class Ff : public FBase ...@@ -716,8 +716,18 @@ class Ff : public FBase
os << string(os.width() - 4, ' '); os << string(os.width() - 4, ' ');
} }
else else
{
try
{
os << stod(s); os << stod(s);
} }
catch (const exception& ex)
{
cerr << "Failed to write '" << s << "' as a double, this indicates an error in the code for writing PDB files" << endl;
os << s;
}
}
}
}; };
class Fs : public FBase class Fs : public FBase
...@@ -1593,7 +1603,7 @@ void WriteRemark3Phenix(ostream& pdbFile, Datablock& db) ...@@ -1593,7 +1603,7 @@ void WriteRemark3Phenix(ostream& pdbFile, Datablock& db)
<< RM3("") << endl << RM3("") << endl
<< RM3(" B VALUES.") << endl << RM3(" B VALUES.") << endl
<< RM3(" B VALUE TYPE : ", 7, 4) << Ff(refine, "pdbx_TLS_residual_ADP_flag") << endl << RM3(" B VALUE TYPE : ") << Fs(refine, "pdbx_TLS_residual_ADP_flag") << endl
<< RM3(" FROM WILSON PLOT (A**2) : ", 7, 4) << Ff(reflns, "B_iso_Wilson_estimate") << endl << RM3(" FROM WILSON PLOT (A**2) : ", 7, 4) << Ff(reflns, "B_iso_Wilson_estimate") << endl
<< RM3(" MEAN B VALUE (OVERALL, A**2) : ", 7, 4) << Ff(refine, "B_iso_mean") << endl << RM3(" MEAN B VALUE (OVERALL, A**2) : ", 7, 4) << Ff(refine, "B_iso_mean") << endl
<< RM3(" OVERALL ANISOTROPIC B VALUE.") << endl << RM3(" OVERALL ANISOTROPIC B VALUE.") << endl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment