Closed nawtrey closed 3 years ago
Overall this PR targeted the plotting.py
module to clean it up, but there is still a lot to do there. At the moment the remaining 7 lines of code that aren't covered (out of 8 total) are for plt.savefig()
calls, which we only really need 3 of in the module. This module should really have functions that handle all of the different cases (plot single, plot multiple, plot panel, etc.) which return the figure objects, and draw_diagrams
/draw_cycles
just handle the function calls and parameter inputs. That's a large task that isn't high priority at the moment, so I'll probably open an issue and deal with it later.
Okay, all the tests are passing and I've fixed all of the issues within the scope of this PR.
Merging.
Description
General cleanup to
plotting.py
:==
comparisonsplotting.draw_cycles()
where subplot scales were heterogeneousmatplotlib
figures so unclosed figures don't accumulateChanges to
test_plotting.py
:test_plot_diagram
totest_plot_diagrams
since these are testing the same functiontest_plot_cycle
andtest_plot_diagrams
to cover a few lines that were not previously being coveredAdds
test_add_attributes
,test_generate_edges_errors
, andtest_ccw
totest_kda.py
Cleans up
graph_utils.is_ccw()
andgraph_utils.get_ccw_cycle()
Status