Skip to content

Conversation

@gloriayma
Copy link
Collaborator

No description provided.

gloriayma and others added 2 commits October 16, 2025 01:43
…/treedata/nx.digraph. backend logic uses nx.digraphs. added helper functions working on nx.digraphs to critique_utilities.py. added tests in compare_tree_test.py for the new triplets_correct function
@codecov
Copy link

codecov bot commented Oct 16, 2025

Codecov Report

❌ Patch coverage is 84.76821% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.91%. Comparing base (2d024f1) to head (1f6fb2b).
⚠️ Report is 42 commits behind head on 3.0.0.

Files with missing lines Patch % Lines
src/cassiopeia/critique/critique_utilities.py 80.18% 21 Missing ⚠️
src/cassiopeia/critique/compare.py 95.55% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            3.0.0     #273      +/-   ##
==========================================
+ Coverage   84.94%   86.91%   +1.96%     
==========================================
  Files          76       76              
  Lines        5773     5922     +149     
==========================================
+ Hits         4904     5147     +243     
+ Misses        869      775      -94     
Files with missing lines Coverage Δ
src/cassiopeia/critique/compare.py 95.78% <95.55%> (+41.76%) ⬆️
src/cassiopeia/critique/critique_utilities.py 82.20% <80.18%> (+71.09%) ⬆️

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mattjones315 mattjones315 self-requested a review October 16, 2025 18:35
Copy link
Collaborator

@mattjones315 mattjones315 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @gloriayma! Left a few comments that we should resolve.

High level comment is that there are a lot of helper functions that we can reduce and refactorize. Also worthwhile to use pre-existing implementations rather than manually implement things like DFS/BFS. In general we can clean up things this way - writing way less code. Check out William's pycea implementation of get_depth, for example: https://github.com/YosefLab/pycea/blob/main/src/pycea/pp/setup_tree.py

Copy link
Collaborator

@colganwi colganwi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting close @gloriayma! Most of my comments are formatting and removing redundant code.

ChatGPT is excellent at doing this! Try copy and pasting this code and asking for a cleaned up and simplified version. You probably won't want to use its output directly but it will give you some ideas of where to trim.

@mattjones315 mattjones315 merged commit dcf56f3 into 3.0.0 Nov 4, 2025
9 checks passed
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.

4 participants