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

Handle duplicate variables passed to IlambConfigFile #2

Open
mdpiper opened this issue Jan 18, 2018 · 1 comment
Open

Handle duplicate variables passed to IlambConfigFile #2

mdpiper opened this issue Jan 18, 2018 · 1 comment
Assignees

Comments

@mdpiper
Copy link
Member

mdpiper commented Jan 18, 2018

The IlambConfigFile ctr takes an array_like group of CMIP5 variable short names as required input. For example:

x = IlambConfigFile(['gpp', 'lai', 'le'])

Currently, there's nothing stopping a user from passing duplicate variable names. There should be a check that throws an error when this occurs.

@mdpiper
Copy link
Member Author

mdpiper commented Jan 18, 2018

Could convert input to list, then pop if count is greater than one.

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

No branches or pull requests

1 participant