Becksteinlab / kda

Python package used for the analysis of biochemical kinetic diagrams.
GNU General Public License v3.0
3 stars 1 forks source link

ENH, TST: Cleans up `plotting.py` and adds new tests for `graph_utils.py` #33

Closed nawtrey closed 3 years ago

nawtrey commented 3 years ago

Description

Status

codecov[bot] commented 3 years ago

Codecov Report

Merging #33 (fe4da3e) into master (6941f9b) will increase coverage by 2.21%. The diff coverage is 100.00%.

nawtrey commented 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.

nawtrey commented 3 years ago

Okay, all the tests are passing and I've fixed all of the issues within the scope of this PR.

nawtrey commented 3 years ago

Merging.