-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Develop #663
Merged
Merged
Develop #663
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Three new methods introduced in test_util.py, of them the first method tests MalformedSpeciesError, second method tests MalformedElementsSymbolError, third method tests MalformedQuantityError. - All 3 classes inherit from an empty MalformedError so MalformedError itself does not need unit test.
- Indentation was kept 3x spaces, increased to 4x. - Parameter 'input' shadowed built-in name input, so rename it to 'int_input'. - Adds param and returns description in docstring, makes the doctests shorter and more precise. - Replaces deprecated style of raising exceptions. - Removes C-style for-in range looping to a better and more pythonic style 'enumerate'.
- numpy, scipy, pandas and matplotlib versions were increased in conda-requirements.
- astropy==1.0.4 and numpy==1.10.0 cannot work together. numpy==1.10.0 is required to solve libgfortran issue, so astropy is changed from 1.0.4 to 1.0.5 - Same case for pytables==3.2 hence is changed to 3.2.2
- Adds testcase for raising MalformedElementSymbolError in element_symbol2atomic_number. - Combines tests for test_parse_quantity into one test, and adds testcases for raising MalformedQuantityError.
- Coverage for various exceptions raised by the species_string_to_tuple method. Similarly for species_tuple_to_string method.
- Rearranged tests in same order as they are in 'tardis/util.py'. - Fixed pep8 violations and the testcases in pytest decorators were reorganized as one per line for better readability.
- Indentation was kept 3x, increased to 4x. - Parameters 'input and 'sum' shadowed built-in names, so changed them to 'roman_input' and 'result'. - Adds 'param' and 'returns' description in the docstring. - Replaces deprecated style of raising exceptions.
wkerzendorf
approved these changes
Nov 11, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.