Skip to content

Plane construction and extraction.#16

Merged
lispandfound merged 4 commits intomainfrom
planes
Dec 5, 2024
Merged

Plane construction and extraction.#16
lispandfound merged 4 commits intomainfrom
planes

Conversation

@lispandfound
Copy link
Copy Markdown
Contributor

Enhancements to Plane class:

  • Added new properties strike, strike_nztm, dip_dir, and dip_dir_nztm to the Plane class to handle different coordinate systems and bearings. (source_modelling/sources.py) [1] [2]
  • Refactored the from_centroid_strike_dip method to include additional parameters such as strike_nztm and dip_dir_nztm and added comprehensive validation checks for input consistency. (source_modelling/sources.py) [1] [2]

SRF Module:

  • Added a new property planes to the segments method to extract planes from SRF segments. (source_modelling/srf.py)

Test Coverage:

  • Added new test cases to validate the construction of Plane objects, including failure cases for invalid input combinations and parameter derivations. (tests/test_sources.py) [1] [2] [3]
  • Updated existing test cases to reflect the changes in the Plane class and its methods. (tests/test_sources.py) [1] [2] [3]
  • Added assertions to verify the consistency of SRF header data with the newly introduced planes property. (tests/test_srf.py) [1] [2]

…ency

- Add a `planes` property to the SRFFile class to get geometry of SRF
- Added `strike_nztm` and `dip_dir_nztm` properties to `Plane` class.
- Implemented validation for depth consistency in `Plane.from_centroid_strike_dip`.
- Updated tests to cover new properties and validation logic.
@lispandfound lispandfound merged commit 5a60ee5 into main Dec 5, 2024
@lispandfound lispandfound mentioned this pull request Dec 9, 2024
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