Delete Configuration

Open Beginner friendly
#240 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
aws, python
Domain
backend, cloud

Research direction

Start with the wrfcloud.config.delete_config_from_system method and trace how namelists and cached geo_em files are stored for a configuration name. Update the deletion behavior so those artifacts are removed, then verify that deleting and recreating a configuration with the same name does not reuse the old cached file or namelists.

Written by the indexing model from the issue text.

Description

component: API priority: high type: bug

The geo_em file is cached after we run geogrid for the domain once. This way, we avoid running geogrid on the same data multiple times.

However, if a user deletes a model configuration and then creates a new model configuration with the same name, the cached geo_em file is used, but the grid definition has possibly and likely changed.

This causes the system to crash on the real step with mismatched domain grid sizes.

To fix this issue, add code in the wrfcloud.config.delete_config_from_system method to additionally delete namelists and the cached geo_em file.

A better long-term fix would be to generate a configuration ID along with each configuration, then use that ID to store files in S3, rather than the name.

Dominant language
Python
Stars
18
Forks
6
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NCAR/wrfcloud

All issues in NCAR/wrfcloud

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.