Skip to content

remove_unused_series not functioning as intended #957

@NilsChudalla

Description

@NilsChudalla

Describe the bug
Overall, "remove_unused_series=True", does not work as intended (or understood on my end). I tried multiple examples:

  1. Mapping fewer layers in mapstack, than there are in complete input data => Model computes, but includes all layers, not only the mapped ones
  2. Mapping fewer layers in mapstack, than there are in incomplete input data (orientations only for mapped layer) = >"ValueError: Inconsistent shapes in StacksStructure", furthermore, input points are not remove from model (see screenshot)

In 2., I tried single and multiple layers per series, with same result.

To Reproduce
See attached jupyternotebook in .zip

Expected behavior
Exclusion of formations mentioned in gp.map_stack_to_surfaces() from both, computed surfaces and input data.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • GemPy Version
    • 2024.2.0.2

Additional context
showcase_remove_unused_series.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug?Possible buggempy 3Will come with the next major update

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions