Becksteinlab / kda

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

MAINT: Simplify `generate_directional_partial_diagrams()` and change to "directional diagrams" #41

Closed nawtrey closed 2 years ago

nawtrey commented 2 years ago
codecov[bot] commented 2 years ago

Codecov Report

Merging #41 (36ef689) into master (f9d0d14) will decrease coverage by 0.02%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #41      +/-   ##
==========================================
- Coverage   98.01%   97.99%   -0.03%     
==========================================
  Files           9        9              
  Lines         757      747      -10     
==========================================
- Hits          742      732      -10     
  Misses         15       15              
Impacted Files Coverage Δ
kda/calculations.py 99.52% <100.00%> (ø)
kda/diagrams.py 100.00% <100.00%> (ø)
nawtrey commented 2 years ago

I think the verification script still needs to be updated.

nawtrey commented 2 years ago

I don't care about the drop in coverage as this is a pretty obvious code simplification. I should also note that for the return_edges=True case, this does run slightly faster now. There was basically a graph being copied for no reason, so removing that brought the runtime down about 8% for a 117K directional diagram case. Not huge, but worth noting.

Tests are passing, so I'm gonna merge this.