Skip to content

Conversation

Leguark
Copy link
Member

@Leguark Leguark commented Sep 25, 2025

Description

Added support for name_id_map parameter in add_orientations function to maintain consistent ID mapping between surface points and orientations. Updated the Hecho example to use this parameter and fixed tuple formatting in section_dict. Also enabled validation during serialization in the compute_model call.

Relates to #validation-and-serialization-improvements

Checklist

  • My code uses type hinting for function and method arguments and return values.
  • I have created tests which cover my code.
  • The test code either 1. demonstrates at least one valuable use case (e.g. integration tests)
    or 2. verifies that outputs are as expected for given inputs (e.g. unit tests).
  • New tests pass locally with my changes.

Integrated optional `name_id_map` parameter to the `add_orientation` method for mapping orientation names to IDs. Updated Hecho example with serialization validation and added save/load functionality for models.
…ncing validation

Removed redundant save/load and serialization validation in the Hecho example. Adjusted section grid to ensure consistent tuple formatting and enabled `validate_serialization` in model computation.
Copy link
Member Author

Leguark commented Sep 25, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Leguark Leguark changed the title [ENH] Add name_id_map support in orientation data manipulation [ENH] Add name_id_map parameter to add_orientations and enable serialization validation Sep 25, 2025
@Leguark Leguark marked this pull request as ready for review September 25, 2025 12:19
@graphite-app graphite-app bot added the gempy 3 Will come with the next major update label Sep 25, 2025
Copy link

graphite-app bot commented Sep 25, 2025

Graphite Automations

"Add gempy label" took an action on this PR • (09/25/25)

1 label was added to this PR based on Miguel de la Varga's automation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gempy 3 Will come with the next major update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant