From b115833d4288862ae9f3dda34dfcca48d1ff284f Mon Sep 17 00:00:00 2001 From: "Christopher J. Wright" Date: Tue, 26 Feb 2019 15:03:40 -0500 Subject: [PATCH] WIP: build pdfmorph pipeline --- xpdtools/pipelines/qoi.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xpdtools/pipelines/qoi.py b/xpdtools/pipelines/qoi.py index 18100a4..a5a6282 100644 --- a/xpdtools/pipelines/qoi.py +++ b/xpdtools/pipelines/qoi.py @@ -21,6 +21,11 @@ def max_gr_mean(pdf, **kwargs): return locals() +def pdfmorph_pipeline(data, ref, **kwargs): + data_ref = data.combine_latest(ref, emit_on=0) + pdfmorph_res = data_ref.starmap(lambda x, y: (*x, *y)).starmap(pdfmorph) + return locals() + """ r = pdf.pluck(0) true_pdf = pdf.pluck(1)