Skip to content
Snippets Groups Projects
Commit 587fe31d authored by Andreas Schenk's avatar Andreas Schenk
Browse files

re-added spider import for 2D files

parent 1d84746f
Branches
Tags
No related merge requests found
......@@ -152,7 +152,7 @@ void prep_header(spider_header& header, const img::Size& size, const geom::Vec3&
String date_for_header=time_string.substr(8,2) + "-" + time_string.substr(4,3) + "-" +
time_string.substr(22,4) + " ";
String time_for_header=time_string.substr(11,8);
String title_for_header = "Generated by OST (www.img.org)";
String title_for_header = "Generated by OST (www.openstructure.org)";
header.fNslice = nslice;
header.fNrow = nrow;
......@@ -274,8 +274,8 @@ void header_filler(std::istream& in, spider_header& header)
f.read(header.szITit,160);
if(header.fIform!=3.0) {
throw(ost::io::IOException("spiderRead: can only read 3 (3D volume)\n"));
if(header.fIform!=3.0 && header.fIform!=1.0) {
throw(ost::io::IOException("spiderRead: can only read modes 1 (2D image) or 3 (3D volume)\n"));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment