ascent icon indicating copy to clipboard operation
ascent copied to clipboard

Multiple actions files

Open yslan opened this issue 2 years ago • 4 comments

Is it possible to have multiple actions files?

-
  action: "add_triggers"
  triggers:
    t1:
      params:
        condition: "cycle % 100 == 0"
        actions_file : "trigger_render1.yaml"
        actions_file : "trigger_render2.yaml"
        actions_file : "trigger_render3.yaml"

I guess the workaround is to have multiple triggers?

  action: "add_triggers"
  triggers:
    t1:
      params:
        condition: "cycle % 100 == 0"
        actions_file : "trigger_render1.yaml"
    t2:
      params:
        condition: "cycle % 100 == 0"
        actions_file : "trigger_render2.yaml"
    t3:
      params:
        condition: "cycle % 100 == 0"
        actions_file : "trigger_render3.yaml"

yslan avatar Oct 24 '23 02:10 yslan

You cannot have multiple action files, without the workaround with triggers you suggest, but you can have multiple actions in one file. What is in your trigger yamls? My guess is they can probably be combined.

Here is a more complicated ascent_actions.yaml as an example. A number of pipelines, some with multiple filters, and then rendering multiple scenes. ascent_actions.yaml.txt

nicolemarsaglia avatar Oct 24 '23 18:10 nicolemarsaglia

Right, I know how to use scenes to plot multiple images.

However, I have 3 images I want to plot and each of the images has more than 10 slices + clip. That's why I really don't want to put everything into a single file.

Just a suggestion here.

yslan avatar Oct 24 '23 18:10 yslan

thanks for the context:

perhaps we can add an actions_files option that takes a list for this case?

cyrush avatar Oct 24 '23 19:10 cyrush

@cyrush That will be nice!

yslan avatar Oct 25 '23 17:10 yslan