diff options
author | Tomas Farago <sensej007@email.cz> | 2020-03-31 16:28:42 +0200 |
---|---|---|
committer | Tomas Farago <sensej007@email.cz> | 2020-03-31 16:28:42 +0200 |
commit | 3c50547230b9c76ca2a6314f8de06907665a20d8 (patch) | |
tree | 8e5647735f0637e87b8945207afc5c2cf1f675fc | |
parent | b74bd263983a3dc1006ceceaf9552dc322ef8858 (diff) | |
download | ufo-filters-3c50547230b9c76ca2a6314f8de06907665a20d8.tar.gz ufo-filters-3c50547230b9c76ca2a6314f8de06907665a20d8.tar.bz2 ufo-filters-3c50547230b9c76ca2a6314f8de06907665a20d8.tar.xz ufo-filters-3c50547230b9c76ca2a6314f8de06907665a20d8.zip |
GBP: complain if not enough projections come
-rw-r--r-- | src/ufo-general-backproject-task.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ufo-general-backproject-task.c b/src/ufo-general-backproject-task.c index 5ff1c35..e63d841 100644 --- a/src/ufo-general-backproject-task.c +++ b/src/ufo-general-backproject-task.c @@ -1694,7 +1694,13 @@ ufo_general_backproject_task_generate (UfoTask *task, bpp = get_type_size (priv->store_type); g_object_get (task, "num_processed", &count, NULL); - if (count != priv->num_projections || priv->generated >= priv->num_slices) { + if (count != priv->num_projections) { + /* Don't send volume if not enough projections came */ + g_warning ("general-backproject received only %u projections out of %u " + "specified, no outuput will be generated", count, priv->num_projections); + return FALSE; + } + if (priv->generated >= priv->num_slices) { /* Don't send volume if not enough projections came */ return FALSE; } |