Skip to content

[WIP] Adding initial changes to drop simulations that don't have a full set… #538

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

claalmve
Copy link
Collaborator

… of WL data to return for a given WL

Summary of changes and related issue

[What's changed in this PR?]

Relevant motivation and context

[Why did you change this and what applicable context is needed to understand why this change is needed?]

How to test

[How should reviewers test the changes?]

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • None of the above

To-Do

  • Unit tests
    • Existing unit tests are passing
    • If relevant, new unit tests are written (required 80% unit test coverage)
  • Documentation
  • Naming conventions followed
    • Helper functions hidden with _ before the name
  • Any notebooks known to utilize the affected functions are still working
  • Black formatting has been utilized
  • Tagged/notified 2 reviewers for this PR

sims_to_drop = warming_data.all_sims.where(is_null_sim_mask, drop=True)

if len(sims_to_drop.all_sims.values) > 1:
print(f"These are the following simulations and their given SSPs to be dropped since they do not reach return a full set of WL data for this given WL: {sims_to_drop.all_sims.values}")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Add WL number in print statement, in case this call creates a DataArray across multiple warming levels

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.

1 participant