This repository was archived by the owner on May 13, 2020. It is now read-only.
Enhancement acf plot input check #292
Merged
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.
This is a small update for maybe something larger that we should strive for with davitpy routines. Here I've added a first cut at input santiziation/checks for two of the
acfPlot.py
routines. I've also added a few small PEP8 edits from doing a check on this file. Must have missed these earlier.To test this run:
and
which have been shamelessly stolen from the examples in each routine (with a few minor tweaks to break things). I guess conversely, you could run the unit test of
python acfPlot.py
and see that I haven't broken anything. With the example though, you'll see the routines crash at some random point in the develop branch. Whereas with this enhancement, you'll see you get some error messages from the assert lines.