Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Print result in center_of_mass test#242

Merged
leouieda merged 2 commits into
masterfrom
center_of_mass-test
Dec 3, 2015
Merged

Print result in center_of_mass test#242
leouieda merged 2 commits into
masterfrom
center_of_mass-test

Conversation

@leouieda

@leouieda leouieda commented Dec 3, 2015

Copy link
Copy Markdown
Member

The doctest in fatiando.gravmag.tensor.center_of_mass was checking the
result (a numpy array) without printing it with a given precision. This
was causing the test to fail unpredictably in different computers.

The test now prints the result with .1f. This should fix the failures.

Fixes #241

Checklist:

  • Make tests for new code
  • Create/update docstrings
  • Include relevant equations and citations in docstrings
  • Code follows PEP8 style conventions
  • Code and docs have been spellchecked
  • Include new dependencies in docs, requirements.txt, README, and .travis.yml
  • Documentation builds properly
  • All tests pass
  • Can be merged
  • Changelog entry (leave for last)

The doctest in fatiando.gravmag.tensor.center_of_mass was checking the
result (a numpy array) without printing it with a given precision. This
was causing the test to fail unpredictably in different computers.

The test now prints the result with `.1f`. This should fix the failures.

Fixes #241
leouieda added a commit that referenced this pull request Dec 3, 2015
Print result in center_of_mass test
@leouieda leouieda merged commit e2cacd1 into master Dec 3, 2015
@leouieda leouieda deleted the center_of_mass-test branch December 3, 2015 19:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make test error in gravmag.tensor.center_of_mass

1 participant