Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sean Fitzgibbon
SlideR 🍔
Commits
62398b38
Commit
62398b38
authored
Jun 23, 2021
by
Sean Fitzgibbon
Browse files
Add APPLYXFM support to BATCH
parent
07b14343
Changes
1
Hide whitespace changes
Inline
Side-by-side
slider/batch.py
View file @
62398b38
...
...
@@ -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'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment