Skip to content

Conversation

@Thomas-Ulrich
Copy link
Contributor

allow group filter on mesh:

seissol_output_extractor tmp/Myanmar_gebco_down2_with_fault_m11_bm_1.xdmf --regionFilter "0,2" --var group --time "0"

now works.
Apply isort.

Copy link
Contributor

@davschneller davschneller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


if regionFilter:
available = self.ReadAvailableDataFields()
if "fault-tag" in available:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point it might be useful to make this section e.g.

possible_varnames = ['fault-tag', 'locationFlag', 'group']
region_varname = None
for candidate in possible_varnames:
    if candidate in available: region_varname = candidate
if region_varname is None:
    raise ValueError("...")

to avoid some typos when adding new region variables (e.g. if someone were to look at the global-ids for whatever reason?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants