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

Fix bug when adding a missing at_grid field #1286

Merged
merged 1 commit into from
Mar 19, 2021

Conversation

mcflugen
Copy link
Member

This pull request fixes a bug when testing a landlab component that has a missing at_grid field that is expected—by way of the _info attribute—to be something other than an int. Before this fix, if a component was missing a field, a new field—of type int—was added to the component and as a result, if some other type was expected an exception was raised. I've changed it so that now the new field is created with the type specified in _info.

I also cleaned up the component tests. All I really did was break up the single large test into smaller targeted tests where each test just tests one thing.

@mcflugen mcflugen merged commit 0a3d6f4 into master Mar 19, 2021
@mcflugen mcflugen deleted the mcflugen/fix-component-tester-at-grid-error branch March 19, 2021 23:44
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