Skip to content

Commit

Permalink
Merge pull request #1840 from cryos/tilt-angles-from-emd
Browse files Browse the repository at this point in the history
Don't set the tilt angles on load anymore
  • Loading branch information
cryos authored Apr 5, 2019
2 parents 9c3554f + e29a204 commit 0f095c5
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions tomviz/MainWindow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -569,17 +569,11 @@ void MainWindow::openTilt()
path += "/TiltSeries_NanoParticle_doi_10.1021-nl103400a.emd";
QFileInfo info(path);
if (info.exists()) {
DataSource* source = LoadDataReaction::loadData(info.canonicalFilePath());
auto op = new SetTiltAnglesOperator;
int extents[6];
source->getExtent(extents);
auto numTilts = extents[5] - extents[4] + 1;
QMap<size_t, double> tiltAngles;
for (int i = 0; i < numTilts; ++i) {
tiltAngles[i] = -73 + 2 * i;
}
op->setTiltAngles(tiltAngles);
source->addOperator(op);
LoadDataReaction::loadData(info.canonicalFilePath());
} else {
QMessageBox::warning(
this, "Sample Data not found",
QString("The data file \"%1\" was not found.").arg(path));
}
}

Expand Down

0 comments on commit 0f095c5

Please sign in to comment.