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

Updated Python Unit Tests and Added Log Functionality to ParseDig #338

Closed
wants to merge 5 commits into from

Conversation

kylesower
Copy link
Contributor

Added some of the basic unit tests in DumpGraphAndScreenCoordinates_test.py (the tests are run when you run pytest). Log functionality in ParseDig.py is limited; I think it should work for four axis points all the time, but it doesn't always work for three axis points if the axis values don't all match up (the graph coordinates need to be in the form (x1, y1), (x1, y2), (x2, y1) (though not in that order necessarily)).

Sower added 5 commits May 29, 2019 13:46
…or message for log plots since we haven't yet defined the conversion for log plots. Created a test file for DumpGraphAndScreenCoordinates that works with pytest. It creates a .dig file using testDigGenerator.py and then uses Engauge to output the data points from that file. It then parses the .dig file and compares the results, throwing an exception if they don't match. testDigGenerator was a modified version of test.py that now works with four data points and different axis scales.
…vor of the modified version, testDigGenerator.py. Resolved conflicts in ParseDig.py to incorporate the infinite slope code and the code that checks for if it's a log plot
@markummitchell
Copy link
Owner

These changes came through as part of the second 6/6 pull request

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.

2 participants