Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/add data checks #179

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open

Fix/add data checks #179

wants to merge 33 commits into from

Conversation

AngRodrigues
Copy link
Member

@AngRodrigues AngRodrigues commented Jan 14, 2025

Description

added data_checks, a series of functions that check the main datatypes in map2loop: Geology, Structure, Faults and Folds. Most of the code was refactored to avoid code repetition between the different functions, but checks that are valid for one single datatype are kept in the same functions

Also changed the config dictionary data checks into this file, and the functionality of not allowing invalid args into project (from issue 162), as it made sense to have these fixes together. Please check PR #171 for more info on this.

Fixes #162
Fixes #138

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Test improvement

How Has This Been Tested?

I am attaching 3 notebooks that show some of the common warnings and errors.
Geology - https://gist.github.com/AngRodrigues/a273380a082d024669699d13fa99a0f8
Structure - https://gist.github.com/AngRodrigues/7e7c5b9bb178cb89f1f815c3392db417
Fault - https://gist.github.com/AngRodrigues/6db7a0eca5421b90f4c79ae6021f69f6

Also checked this with the notebooks from source data and Loop server data and it seems to work well.

Branch: fix/add_data_checks

AngRodrigues and others added 30 commits December 17, 2024 13:29
@AngRodrigues AngRodrigues mentioned this pull request Jan 14, 2025
2 tasks
@AngRodrigues AngRodrigues marked this pull request as ready for review January 14, 2025 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] project allows invalid arguments [Bug] - map2loop crashes if required fields contain null
1 participant