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

Use migrated functions from Solvis #54

Merged
merged 12 commits into from
Jul 4, 2024

Conversation

DrCuriosity
Copy link
Collaborator

@DrCuriosity DrCuriosity commented Jun 21, 2024

For #51

Since we're hauling up some dependency versions here (notably nzshm-model, nzshm-common), currently linked through to the pre-release branches of solvis and solvis-store. These should see a full release when Solvis has some improved documentation coverage.

Noting in passing: test_cached_ruptures_without_store in the rupture sorting function tests fails when run by itself, so I'm suspicious of whether it's providing the coverage it's supposed to.

In this PR:

Upgrades

  • nzshm-model to ^0.6.0
  • nzshm-common to ^0.7.0
  • solvis to pre-release
  • solvis-store to pre-release

Changes

  • filter_set_logic_operations:

    • Graphene type derived from Solvis enum
    • _solvis_join() helper to convert filter_set_options to native Solvis enum
  • composite_rupture_sections: fixed an easy deprecation warning

  • cached:

    • get_rupture_ids_for_location_radius calls solvis version with a deprecation warning
    • get_rupture_ids_for_fault_names calls solvis version with a deprecation warning
    • update calls to both of the above to use their respective solvis versions

Fixes

And some linting.

closes #55

…pre-release.

- filter_set_logic_operations:
    - Graphene type derived from Solvis enum
    - _solvis_join() helper to convert filter_set_options to native Solvis enum

- composite_rupture_sections: fixed an easy deprecation warning

- cached:
    - get_rupture_ids_for_location_radius calls solvis version with a deprecation warning
    - get_rupture_ids_for_fault_names calls solvis version with a deprecation warning
    - update calls to both of the above to use their respective solvis versions
Update nzshm-model to 0.6
Update nzshm-common to 0.7
Update solvis to pre-release branch (0.12.0.alpha.1)
Update solvis-store to pre-release branch

For nzshm-model 0.6: get_rupture_ids_for_location_radius_stored now getting
rupture_set_id values from branch inversion sources
@DrCuriosity DrCuriosity requested a review from chrisbc June 21, 2024 04:52
@DrCuriosity DrCuriosity self-assigned this Jun 21, 2024
Copy link
Member

@chrisbc chrisbc left a comment

Choose a reason for hiding this comment

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

@DrCuriosity two minor changes for you to look at but overall looks great, thanks

@chrisbc chrisbc changed the base branch from pre-release to deploy-test June 23, 2024 22:31
This makes it clearer in the code that we're not using the native
Python typing module.

(Also filtering out `if TYPE_CHECKING:` blocks from coverage tests,
while I'm here.)
@chrisbc chrisbc merged commit 49fcd37 into deploy-test Jul 4, 2024
1 check passed
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.

2 participants