Skip to content

Conversation

@marty-larocque
Copy link
Contributor

@marty-larocque marty-larocque commented Mar 29, 2020

Primarily, this PR addresses issue #186 (test coverage). It adds tests for base.assert_line() and base.assert_lines_of_type(). These tests should also provide coverage for base.get_slope_yintercept().

While working on these tests, a number of other issues were encountered. This PR should also address those:

@marty-larocque
Copy link
Contributor Author

marty-larocque commented Mar 29, 2020

Currently, this PR is not ready to be merged for a few reasons:

@marty-larocque
Copy link
Contributor Author

marty-larocque commented Apr 27, 2020

This PR has been cleaned up a bit:

However:

Finally:

We should wait until Nathan's PR addressing #235 is merged before we consider merging this PR. We should also address #262, one way or another, before we merge this PR.

path_verts = self.ax.transData.inverted().transform(
l._transformed_path.get_fully_transformed_path().vertices
)
# Here we will get the verticies for the line and reformat them in
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets:

  1. Remove xtime as a parameter
  2. Let's make the data extent (boolean) parameter to make this test OPTIONAL

Copy link

@lwasser lwasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here - let's address the issue of making the xlims data test a parameter (boolean)
please also

  1. Update from master (so the pr passes)
  2. Add a change log entry
  3. Add any comments at the end for anything that hasn't been complete!

@codecov
Copy link

codecov bot commented May 4, 2020

Codecov Report

Merging #239 into master will increase coverage by 1.46%.
The diff coverage is 87.32%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #239      +/-   ##
==========================================
+ Coverage   79.95%   81.42%   +1.46%     
==========================================
  Files          19       20       +1     
  Lines        1831     1884      +53     
==========================================
+ Hits         1464     1534      +70     
+ Misses        367      350      -17     
Impacted Files Coverage Δ
matplotcheck/base.py 93.52% <65.38%> (+5.81%) ⬆️
matplotcheck/tests/test_base_lines.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eab6e72...ae7c000. Read the comment docs.

@marty-larocque
Copy link
Contributor Author

@lwasser This PR should be ready to be merged. Just note that #262 still needs to be addressed. That is not anything urgent, and it's a fairly rare edge case, but it should be addressed at some point.

@lwasser
Copy link

lwasser commented May 7, 2020

TODO's here:

  • is there another way in python to calculate a regression line? if so - should we add a test for that approach to ensure this works
  • let's change regression option to linear-regression

think about edge cases...

@nkorinek
Copy link
Contributor

nkorinek commented May 7, 2020

@lwasser this can be closed due to this pr: #274

@lwasser
Copy link

lwasser commented May 8, 2020

ok thanks @nkorinek closing!!

@lwasser lwasser closed this May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants