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

Reorder attribte updates in basicobject.load #98

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

jokva
Copy link

@jokva jokva commented Apr 22, 2019

There are far more scalar elements than boolean elements, so it makes
sense to in the if-else chain check the scalar first.

On top of that, raise a ValueError should the value type of the
attribute not be one of the three blessed values.

@jokva jokva added the review label Apr 22, 2019
@jokva jokva force-pushed the reorder-attribute-update branch from d2654b1 to ef42df3 Compare April 22, 2019 16:49
There are far more scalar elements than boolean elements, so it makes
sense to in the if-else chain check the scalar first.

On top of that, raise a ValueError should the value type of the
attribute not be one of the three blessed values.
@jokva jokva force-pushed the reorder-attribute-update branch from ef42df3 to 56a1ec2 Compare April 22, 2019 16:53
@jokva jokva merged commit 211e89d into equinor:master Apr 26, 2019
@jokva jokva removed the review label Apr 26, 2019
@jokva jokva deleted the reorder-attribute-update branch April 26, 2019 11:54
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