Skip to content
Snippets Groups Projects
Verified Commit 11ff984c authored by Marcus Mohr's avatar Marcus Mohr
Browse files

Changes behaviour of generate_all_hyteg_forms.py

The commit changes the behaviour of generate_all_hyteg_forms.py with respect
to the selection of forms to generate. It introduces a new function

   assemble_list_of_forms_to_generate()

that extracts the list of forms to generate from the list of defined forms
based on the command-line options in the following fashion:

* if neither --geometry, nor --filter is given, all defined forms are
  selected

* if only --filter is given, it is applied to the list of all defined forms,
  which are generated for each geometry they support

* if only --geometry is given, it extracts all forms that support the given
  geometry element type

* if both --filter and --geometry are given, the filter gets applied first;
  then the function removes all froms that do not support the selected
  geometry

The commit touches on MR !48 and issue #45.

As a spin-off the commit makes the FormInfo class sortable.
parent f31b2f91
1 merge request!49Overhaul of form generator
Pipeline #78181 passed with warnings with stages
in 31 minutes and 47 seconds
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