structureFilepath, tft, paeFilepath, false,
ssFromStructure, false, viewerType);
- if (headless)
+ if (sv==null)
+ {
+ Console.error("Failed to import and open structure view.");
+ continue;
+ }
+ while (sv.isBusy())
{
- sv.setAsync(false);
+ try {
+ Thread.sleep(25);
+ }
+ catch (Exception x)
+ {
+
+ }
}
String structureImageFilename = ArgParser.getValueFromSubValOrArg(
if (sview instanceof AppJmol)
{
AppJmol jmol = (AppJmol) sview;
- jmol.makePDBImage(structureImageFile, imageType, renderer,
+ try {
+ jmol.makePDBImage(structureImageFile, imageType, renderer,
userBis);
+ }
+ catch (ImageOutputException ioexc)
+ {
+ Console.warn("Unexpected error whilst exporting image to "+structureImageFile,ioexc);
+ }
+
}
break;
default: