Commit 62398b38 authored by Sean Fitzgibbon's avatar Sean Fitzgibbon
Browse files

Add APPLYXFM support to BATCH

parent 07b14343
......@@ -16,7 +16,7 @@
#
import pandas as pd
from slider.slide_reg import register_slide_to_slide
from slider.slide_reg import register_slide_to_slide, apply_slide_xfm
from slider.chart_reg import register_chart_to_slide
def run_batch(csv):
......@@ -41,5 +41,13 @@ def run_batch(csv):
for idx, row in df.iterrows():
register_chart_to_slide(**row)
elif all(item in list(df) for item in ['moving', 'moving_res', 'fixed', 'fixed_res', 'moving_reg', 'fixed_reg']):
# csv is APPLYXFM
print('Batch slider_app.py APPLYXFM')
for idx, row in df.iterrows():
apply_slide_xfm(**row)
else:
raise RuntimeError('Unknown CSV column names')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment