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

Replace hello_world by a more representative/practical example for climate scientists #3

Open
kathoef opened this issue Aug 19, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@kathoef
Copy link
Member

kathoef commented Aug 19, 2019

staying with a string-type example: we could use a function that is supposed to act only on a certain type and/or group of certain file types?

@willirath willirath added the enhancement New feature or request label Aug 19, 2019
@willirath
Copy link
Member

So we could go for

def get_filename(dataset_name, file_type):
    """Return `dataset`.`file_type`."""
    return dataset + "." + file_type

with possible extensions to

  • check for string inputs
  • ensure that there's a dot in there
  • ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants