@@ -25,11 +25,8 @@ ShapeScalarJob::ShapeScalarJob(QSharedPointer<Session> session, QString target_f
2525
2626// ---------------------------------------------------------------------------
2727void ShapeScalarJob::run () {
28- // SW_DEBUG("Running shape scalar job");
29-
3028 try {
3129 py::module np = py::module::import (" numpy" );
32-
3330 py::module sw = py::module::import (" shapeworks" );
3431
3532 if (job_type_ == JobType::MSE_Plot) {
@@ -54,7 +51,6 @@ void ShapeScalarJob::run() {
5451 image.loadFromData ((const uchar*)png_raw_bytes.data (), png_raw_bytes.size (), " PNG" );
5552 plot_ = QPixmap::fromImage (image);
5653 }
57- // SW_DEBUG("End shape scalar job");
5854
5955 } catch (const std::exception& e) {
6056 SW_ERROR (" Exception in shape scalar job: {}" , e.what ());
@@ -83,7 +79,6 @@ Eigen::VectorXd ShapeScalarJob::predict_shape(QSharedPointer<Session> session, Q
8379Eigen::VectorXd ShapeScalarJob::predict (QSharedPointer<Session> session, QString target_feature,
8480 Eigen::MatrixXd target_values, Direction direction) {
8581 // blocking call to predict scalars for given target particles
86-
8782 auto job = QSharedPointer<ShapeScalarJob>::create (session, target_feature, target_values, JobType::Predict);
8883 job->set_quiet_mode (true );
8984 job->set_direction (direction);
@@ -92,7 +87,6 @@ Eigen::VectorXd ShapeScalarJob::predict(QSharedPointer<Session> session, QString
9287
9388 std::atomic_bool finished (false );
9489 connect (job.data (), &ShapeScalarJob::finished, [&] {
95- SW_DEBUG (" shape scalar predict job finished" );
9690 prediction = job->get_prediction ();
9791 finished = true ;
9892 });
0 commit comments