more debug prints
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 15 Jan 2022 18:51:55 +0000 (10:51 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 15 Jan 2022 18:51:55 +0000 (10:51 -0800)
src/language/stats/ctables.c

index 169f8631e78970a6ef272e12fe2d5dfcc11fdf60..08f7a74180a67bab097d1fad9b51d7f9cd76339a 100644 (file)
@@ -2604,6 +2604,19 @@ ctables_execute (struct dataset *ds, struct ctables *ct)
 
       for (size_t j = 0; j < merged.n; j++)
         printf ("%s\n", ctables_summary_function_name (merged.specs[j].function));
+
+      for (size_t j = 0; j < stack->n; j++)
+        {
+          const struct ctables_nest *nest = &stack->nests[j];
+          for (enum ctables_summary_variant sv = 0; sv < N_CSVS; sv++)
+            {
+              const struct ctables_summary_spec_set *specs = &nest->specs[sv];
+              for (size_t k = 0; k < specs->n; k++)
+                printf ("(%s, %zu) ", ctables_summary_function_name (specs->specs[k].function),
+                        specs->specs[k].axis_idx);
+              printf ("\n");
+            }
+        }
     }
 
   struct casereader *input = casereader_create_filter_weight (proc_open (ds),