Skip to content

Adding NZVM3p01 files for upcoming simulations#8

Open
Ayushi-EQ wants to merge 47 commits intomainfrom
NZVM3p01
Open

Adding NZVM3p01 files for upcoming simulations#8
Ayushi-EQ wants to merge 47 commits intomainfrom
NZVM3p01

Conversation

@Ayushi-EQ
Copy link

Adding this new branch for a unified grid approach for several tomography models. Kindly review this.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Ayushi-EQ, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request integrates several new and updated New Zealand Velocity Model (NZVM) tomography models, specifically EP2017, EP2022, and revised versions of EP2010, EP2020, and EP2025. These additions and modifications are essential for supporting upcoming simulations that will leverage a unified grid approach, thereby enhancing the consistency and scope of seismic velocity modeling efforts.

Highlights

  • New Tomography Models Added: Introduced two new tomography models, EP2017 and EP2022, expanding the available seismic velocity data for New Zealand.
  • Existing Model Updates: Updated the EP2010, EP2020, and EP2025 tomography models, including changes to their file paths, and for EP2025, updated elevation data, title, and URL.
  • New Data Files: Added several new .h5 data files, managed by Git LFS, corresponding to the new and updated tomography models, facilitating a unified grid approach for simulations.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds several new tomography models (EP2017, EP2022) and updates existing ones (EP2010, EP2020, EP2025) in the nzcvm_registry.yaml file. It also adds the corresponding HDF5 data files, which are tracked with Git LFS.

My review focuses on the changes in nzcvm_registry.yaml. I've left a few comments regarding formatting inconsistencies and a potential issue with an invalid URL value. Addressing these will improve the consistency and robustness of the configuration file.

A few additional points:

  • The file tomography/EP2022/EP2022_Merge.h5 is added to the repository but doesn't seem to be referenced in nzcvm_registry.yaml. If this file is not used, it might be worth removing it to keep the repository clean.
  • The old data files (ep2010.h5, ep2020.h5, ep2025.h5) are now unreferenced in the registry but are not removed from the repository in this PR. If they are no longer needed, they should probably be removed in a future cleanup effort.

title: New Zealand Wide model 2.2 seismic velocity and Qs and Qp models for New Zealand
url: n/a
title: New Zealand Wide model 3.1 seismic velocity and Qs and Qp models for New Zealand
url: Through Email
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The value 'Through Email' is not a valid URL. This could cause issues for any automated scripts or tools that consume this file and expect a URL. If a URL is not available, consider omitting the url key entirely for this entry, or using a standardized placeholder that your tools can handle, like null or an empty string.

    url: 

Copy link
Member

Choose a reason for hiding this comment

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

"Personal communication (pending publication)" could be more formal. You could request Donna and get a URL.

title: New Zealand Wide model 2.2 seismic velocity and Qs and Qp models for New Zealand
url: n/a
title: New Zealand Wide model 3.1 seismic velocity and Qs and Qp models for New Zealand
url: Through Email
Copy link
Member

Choose a reason for hiding this comment

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

"Personal communication (pending publication)" could be more formal. You could request Donna and get a URL.

- name: EP2010
elev: [ 15, 1, -3, -8, -15, -23, -30, -38, -48, -65, -85, -105, -130, -155, -185, -225, -275, -370, -620, -750 ]
path: tomography/EP2010/ep2010.h5
path: tomography/EP2010/EP2010_New.h5
Copy link
Member

Choose a reason for hiding this comment

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

Let's make the name a bit more descriptive.
Also we need README.md for each of EP models describing the data set

Ayushi-EQ and others added 16 commits December 17, 2025 14:16
- Increase upper bound for vp from 10.0 to 11.0
- Increase upper bound for vs from 6.0 to 6.5
- Add note clarifying values are not physically derived
- Add Basin, Vs30, and Submodel TypedDicts for schema validation
- Parametrize tests for basin, vs30, and submodel entries from registry
- Add tests for basin boundaries, surfaces, smoothing, and containment
- Add tests for vs30 file existence, HDF5 validity, and gridpoint checks
- Add tests for submodel data existence and content validation
- Improve test coverage and robustness for registry-driven datasets
…ntry

- Update Canterbury basement file paths to use correct lowercase naming
- Fix spacing in Wellington basement file path
- Remove invalid Gisborne basement image reference from registry
…tion

- expand elevation arrays to multiline lists for all tomography models
- align indentation and list formatting throughout basin and submodel sections
- fix inconsistent spacing and minor alignment issues in nested structures
- improve overall YAML readability without changing data content
- Remove duplicate and unused imports in test_registry.py
- Decorate test_nzcvm_registry_schema with @no_type_check for type checking bypass
- Eliminate redundant and commented-out test code for basin smoothing boundaries
- Remove unused variables and streamline vs30 tests for readability
@lispandfound
Copy link
Contributor

Type checking and ruff will fail because they check @sungeunbae's tools code for the time being. We can refactor that stuff later.

@github-actions
Copy link

yamllint Failed

Show Output
::group::./nzcvm_registry.yaml
::error file=./nzcvm_registry.yaml,line=323,col=2::323:2 syntax error: expected chomping or indentation indicators, but found '>' (syntax)
::endgroup::

Workflow: Yamllint GitHub Actions, Action: __karancode_yamllint-github-action, Lint: .

@github-actions
Copy link

yamllint Failed

Show Output
::group::./nzcvm_registry.yaml
::error file=./nzcvm_registry.yaml,line=323,col=2::323:2 syntax error: expected chomping or indentation indicators, but found '>' (syntax)
::endgroup::

Workflow: Yamllint GitHub Actions, Action: __karancode_yamllint-github-action, Lint: .

@github-actions
Copy link

yamllint Failed

Show Output
::group::./nzcvm_registry.yaml
::error file=./nzcvm_registry.yaml,line=323,col=2::323:2 syntax error: expected chomping or indentation indicators, but found '>' (syntax)
::endgroup::

Workflow: Yamllint GitHub Actions, Action: __karancode_yamllint-github-action, Lint: .

@github-actions
Copy link

yamllint Failed

Show Output
::group::./nzcvm_registry.yaml
::error file=./nzcvm_registry.yaml,line=323,col=2::323:2 syntax error: expected chomping or indentation indicators, but found '>' (syntax)
::endgroup::

Workflow: Yamllint GitHub Actions, Action: __karancode_yamllint-github-action, Lint: .

@github-actions
Copy link

yamllint Failed

Show Output
::group::./nzcvm_registry.yaml
::error file=./nzcvm_registry.yaml,line=323,col=2::323:2 syntax error: expected chomping or indentation indicators, but found '>' (syntax)
::endgroup::

Workflow: Yamllint GitHub Actions, Action: __karancode_yamllint-github-action, Lint: .

lispandfound and others added 7 commits December 18, 2025 13:45
…phy section

- Remove leftover conflict markers from EP2022 and EP2025 entries
- Ensure consistent formatting for elevation arrays and paths
- Clean up whitespace for improved readability
- Check now asserts the basin *boundary* contains the smoothing
boundary, instead of the basin *polygon* (which includes the interior).
@lispandfound
Copy link
Contributor

🎉

@github-actions
Copy link

yamllint Failed

Show Output
::group::./nzcvm_registry.yaml
::error file=./nzcvm_registry.yaml,line=170,col=201::170:201 [line-length] line too long (389 > 200 characters)
::endgroup::

Workflow: Yamllint GitHub Actions, Action: __karancode_yamllint-github-action, Lint: .

@github-actions
Copy link

yamllint Failed

Show Output
::group::./nzcvm_registry.yaml
::error file=./nzcvm_registry.yaml,line=171,col=201::171:201 [line-length] line too long (218 > 200 characters)
::endgroup::

Workflow: Yamllint GitHub Actions, Action: __karancode_yamllint-github-action, Lint: .

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