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

Add Support for Multiple Pressure Level Requests in 'create_filename' #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MclTTI
Copy link
Contributor

@MclTTI MclTTI commented Nov 28, 2024

Summary of Changes:

  1. Function Update: The create_filename function has been updated to support multiple pressure level requests. It now handles cases where levelout is a list of pressure levels, formatting them properly and appending the unit of measure accordingly.
  2. New Validation Function: A new function validate_levelout_get_unit has been added to the config.py module. This function checks whether the levelout specified in the configuration file is valid and returns the appropriate unit of measure.
  3. Integration with create_filename: The output of the new validation function is used in create_filename to manage cases where the user requests multiple pressure levels, provided as a list.
  4. Updated User Config Template: The config.tmpl file has been updated to explicitly indicate that users can specify multiple pressure levels as a list.

Docstrings have been added where necessary.

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